2012-08-12 18:11:09 +02:00
|
|
|
#ifndef GAME_MWBASE_WINDOWMANAGER_H
|
|
|
|
#define GAME_MWBASE_WINDOWMANAGER_H
|
|
|
|
|
2015-02-09 16:37:20 +01:00
|
|
|
#include <stdint.h>
|
2012-08-12 18:11:09 +02:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
2015-02-09 16:23:41 +01:00
|
|
|
#include <set>
|
2012-08-12 18:11:09 +02:00
|
|
|
|
2017-09-22 16:52:39 +02:00
|
|
|
#include <MyGUI_KeyCode.h>
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
#include "../mwgui/mode.hpp"
|
|
|
|
|
2020-04-16 17:31:20 +04:00
|
|
|
#include <components/sdlutil/events.hpp>
|
|
|
|
|
2015-01-31 23:27:34 +01:00
|
|
|
namespace Loading
|
|
|
|
{
|
|
|
|
class Listener;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Translation
|
|
|
|
{
|
|
|
|
class Storage;
|
|
|
|
}
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
namespace MyGUI
|
|
|
|
{
|
|
|
|
class Gui;
|
|
|
|
class Widget;
|
|
|
|
class UString;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
2014-01-25 18:20:17 +01:00
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
2015-01-31 17:50:19 +01:00
|
|
|
struct CellId;
|
2012-08-12 18:11:09 +02:00
|
|
|
}
|
|
|
|
|
2015-02-09 16:23:41 +01:00
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
class AttributeValue;
|
|
|
|
template<typename T>
|
|
|
|
class DynamicStat;
|
|
|
|
class SkillValue;
|
|
|
|
}
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class CellStore;
|
|
|
|
class Ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
2015-05-01 02:09:57 +02:00
|
|
|
class Layout;
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
class Console;
|
|
|
|
class SpellWindow;
|
|
|
|
class TradeWindow;
|
2012-09-26 18:30:47 +02:00
|
|
|
class TravelWindow;
|
2012-09-09 14:10:07 -04:00
|
|
|
class SpellBuyingWindow;
|
2012-08-12 18:11:09 +02:00
|
|
|
class ConfirmationDialog;
|
|
|
|
class CountDialog;
|
|
|
|
class ScrollWindow;
|
|
|
|
class BookWindow;
|
|
|
|
class InventoryWindow;
|
|
|
|
class ContainerWindow;
|
|
|
|
class DialogueWindow;
|
2014-05-27 03:00:31 -04:00
|
|
|
class WindowModal;
|
2015-02-07 04:05:28 +01:00
|
|
|
class JailScreen;
|
2014-02-11 18:26:57 +01:00
|
|
|
|
|
|
|
enum ShowInDialogueMode {
|
|
|
|
ShowInDialogueMode_IfPossible,
|
|
|
|
ShowInDialogueMode_Only,
|
|
|
|
ShowInDialogueMode_Never
|
|
|
|
};
|
2017-07-24 13:25:01 +02:00
|
|
|
|
|
|
|
struct TextColours;
|
2012-08-12 18:11:09 +02:00
|
|
|
}
|
|
|
|
|
2013-01-11 08:27:59 -04:00
|
|
|
namespace SFO
|
|
|
|
{
|
2013-01-12 11:57:29 -04:00
|
|
|
class CursorManager;
|
2013-01-11 08:27:59 -04:00
|
|
|
}
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
namespace MWBase
|
|
|
|
{
|
|
|
|
/// \brief Interface for widnow manager (implemented in MWGui)
|
2020-04-16 17:31:20 +04:00
|
|
|
class WindowManager : public SDLUtil::WindowListener
|
2012-08-12 18:11:09 +02:00
|
|
|
{
|
|
|
|
WindowManager (const WindowManager&);
|
|
|
|
///< not implemented
|
|
|
|
|
|
|
|
WindowManager& operator= (const WindowManager&);
|
|
|
|
///< not implemented
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
typedef std::vector<int> SkillList;
|
|
|
|
|
|
|
|
WindowManager() {}
|
|
|
|
|
|
|
|
virtual ~WindowManager() {}
|
|
|
|
|
2014-03-27 19:10:15 +01:00
|
|
|
/// @note This method will block until the video finishes playing
|
|
|
|
/// (and will continually update the window while doing so)
|
|
|
|
virtual void playVideo(const std::string& name, bool allowSkipping) = 0;
|
|
|
|
|
2013-05-15 17:54:18 +02:00
|
|
|
virtual void setNewGame(bool newgame) = 0;
|
|
|
|
|
2017-09-22 21:26:41 +02:00
|
|
|
virtual void pushGuiMode (MWGui::GuiMode mode, const MWWorld::Ptr& arg) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
virtual void pushGuiMode (MWGui::GuiMode mode) = 0;
|
2017-09-23 00:00:40 +02:00
|
|
|
virtual void popGuiMode(bool noSound=false) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
|
2017-09-23 00:00:40 +02:00
|
|
|
virtual void removeGuiMode (MWGui::GuiMode mode, bool noSound=false) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
///< can be anywhere in the stack
|
|
|
|
|
2015-02-07 04:05:28 +01:00
|
|
|
virtual void goToJail(int days) = 0;
|
|
|
|
|
2013-05-15 17:54:18 +02:00
|
|
|
virtual void updatePlayer() = 0;
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
virtual MWGui::GuiMode getMode() const = 0;
|
2013-01-09 06:09:47 -04:00
|
|
|
virtual bool containsMode(MWGui::GuiMode) const = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
|
|
|
|
virtual bool isGuiMode() const = 0;
|
|
|
|
|
2013-03-18 21:33:12 +01:00
|
|
|
virtual bool isConsoleMode() const = 0;
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
virtual void toggleVisible (MWGui::GuiWindow wnd) = 0;
|
|
|
|
|
2013-08-05 23:15:26 +02:00
|
|
|
virtual void forceHide(MWGui::GuiWindow wnd) = 0;
|
|
|
|
virtual void unsetForceHide(MWGui::GuiWindow wnd) = 0;
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
/// Disallow all inventory mode windows
|
|
|
|
virtual void disallowAll() = 0;
|
|
|
|
|
|
|
|
/// Allow one or more windows
|
|
|
|
virtual void allow (MWGui::GuiWindow wnd) = 0;
|
|
|
|
|
|
|
|
virtual bool isAllowed (MWGui::GuiWindow wnd) const = 0;
|
|
|
|
|
|
|
|
/// \todo investigate, if we really need to expose every single lousy UI element to the outside world
|
|
|
|
virtual MWGui::InventoryWindow* getInventoryWindow() = 0;
|
|
|
|
virtual MWGui::CountDialog* getCountDialog() = 0;
|
|
|
|
virtual MWGui::ConfirmationDialog* getConfirmationDialog() = 0;
|
|
|
|
virtual MWGui::TradeWindow* getTradeWindow() = 0;
|
2015-03-11 20:04:25 +01:00
|
|
|
|
2015-09-07 21:32:28 +02:00
|
|
|
/// Make the player use an item, while updating GUI state accordingly
|
2018-07-09 19:31:40 +04:00
|
|
|
virtual void useItem(const MWWorld::Ptr& item, bool force=false) = 0;
|
2015-09-07 21:32:28 +02:00
|
|
|
|
2015-03-11 20:04:25 +01:00
|
|
|
virtual void updateSpellWindow() = 0;
|
|
|
|
|
2017-09-25 21:03:52 +02:00
|
|
|
virtual void setConsoleSelectedObject(const MWWorld::Ptr& object) = 0;
|
|
|
|
|
2013-08-07 15:34:11 +02:00
|
|
|
/// Set time left for the player to start drowning (update the drowning bar)
|
2014-04-27 04:27:26 +02:00
|
|
|
/// @param time time left to start drowning
|
|
|
|
/// @param maxTime how long we can be underwater (in total) until drowning starts
|
|
|
|
virtual void setDrowningTimeLeft (float time, float maxTime) = 0;
|
2013-08-07 15:34:11 +02:00
|
|
|
|
2016-02-05 00:39:52 +01:00
|
|
|
virtual void changeCell(const MWWorld::CellStore* cell) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
///< change the active cell
|
|
|
|
|
|
|
|
virtual void setFocusObject(const MWWorld::Ptr& focus) = 0;
|
|
|
|
virtual void setFocusObjectScreenCoords(float min_x, float min_y, float max_x, float max_y) = 0;
|
|
|
|
|
2013-01-11 09:32:29 -04:00
|
|
|
virtual void setCursorVisible(bool visible) = 0;
|
2017-09-26 17:44:35 +02:00
|
|
|
virtual void setCursorActive(bool active) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
virtual void getMousePosition(int &x, int &y) = 0;
|
|
|
|
virtual void getMousePosition(float &x, float &y) = 0;
|
|
|
|
virtual void setDragDrop(bool dragDrop) = 0;
|
|
|
|
virtual bool getWorldMouseOver() = 0;
|
|
|
|
|
2021-04-15 15:14:41 +04:00
|
|
|
virtual float getScalingFactor() = 0;
|
|
|
|
|
2014-05-16 09:21:08 +02:00
|
|
|
virtual bool toggleFogOfWar() = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
|
2014-05-16 09:21:08 +02:00
|
|
|
virtual bool toggleFullHelp() = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
///< show extra info in item tooltips (owner, script)
|
|
|
|
|
|
|
|
virtual bool getFullHelp() const = 0;
|
|
|
|
|
2014-05-11 02:27:43 +02:00
|
|
|
virtual void setActiveMap(int x, int y, bool interior) = 0;
|
|
|
|
///< set the indices of the map texture that should be used
|
2012-08-12 18:11:09 +02:00
|
|
|
|
2013-08-07 15:34:11 +02:00
|
|
|
/// sets the visibility of the drowning bar
|
|
|
|
virtual void setDrowningBarVisibility(bool visible) = 0;
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
/// sets the visibility of the hud health/magicka/stamina bars
|
|
|
|
virtual void setHMSVisibility(bool visible) = 0;
|
|
|
|
|
|
|
|
/// sets the visibility of the hud minimap
|
|
|
|
virtual void setMinimapVisibility(bool visible) = 0;
|
|
|
|
virtual void setWeaponVisibility(bool visible) = 0;
|
|
|
|
virtual void setSpellVisibility(bool visible) = 0;
|
2013-08-03 02:45:26 +02:00
|
|
|
virtual void setSneakVisibility(bool visible) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
|
2017-08-18 19:24:34 +04:00
|
|
|
/// activate selected quick key
|
|
|
|
virtual void activateQuickKey (int index) = 0;
|
|
|
|
/// update activated quick key state (if action executing was delayed for some reason)
|
|
|
|
virtual void updateActivatedQuickKey () = 0;
|
2012-08-27 15:51:01 +02:00
|
|
|
|
2013-12-26 22:32:39 +01:00
|
|
|
virtual std::string getSelectedSpell() = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
virtual void setSelectedSpell(const std::string& spellId, int successChancePercent) = 0;
|
2013-04-03 21:14:49 +02:00
|
|
|
virtual void setSelectedEnchantItem(const MWWorld::Ptr& item) = 0;
|
2017-02-15 00:55:35 +01:00
|
|
|
virtual const MWWorld::Ptr& getSelectedEnchantItem() const = 0;
|
2013-04-03 21:14:49 +02:00
|
|
|
virtual void setSelectedWeapon(const MWWorld::Ptr& item) = 0;
|
2017-02-15 00:55:35 +01:00
|
|
|
virtual const MWWorld::Ptr& getSelectedWeapon() const = 0;
|
2018-06-18 13:43:39 +04:00
|
|
|
virtual int getFontHeight() const = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
virtual void unsetSelectedSpell() = 0;
|
|
|
|
virtual void unsetSelectedWeapon() = 0;
|
|
|
|
|
2012-08-27 19:18:55 +02:00
|
|
|
virtual void showCrosshair(bool show) = 0;
|
2012-08-29 11:15:17 +02:00
|
|
|
virtual bool getSubtitlesEnabled() = 0;
|
2017-09-23 12:58:28 +02:00
|
|
|
virtual bool toggleHud() = 0;
|
2012-08-27 19:18:55 +02:00
|
|
|
|
2012-08-13 01:26:15 +02:00
|
|
|
virtual void disallowMouse() = 0;
|
|
|
|
virtual void allowMouse() = 0;
|
|
|
|
virtual void notifyInputActionBound() = 0;
|
|
|
|
|
2012-09-20 18:02:37 +02:00
|
|
|
virtual void addVisitedLocation(const std::string& name, int x, int y) = 0;
|
|
|
|
|
2014-05-26 23:13:37 -04:00
|
|
|
/// Hides dialog and schedules dialog to be deleted.
|
2015-05-01 02:09:57 +02:00
|
|
|
virtual void removeDialog(MWGui::Layout* dialog) = 0;
|
2014-05-26 23:13:37 -04:00
|
|
|
|
|
|
|
///Gracefully attempts to exit the topmost GUI mode
|
2016-12-14 16:39:33 +01:00
|
|
|
/** No guarantee of actually closing the window **/
|
2014-05-26 23:13:37 -04:00
|
|
|
virtual void exitCurrentGuiMode() = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
|
2015-01-10 23:21:39 +01:00
|
|
|
virtual void messageBox (const std::string& message, enum MWGui::ShowInDialogueMode showInDialogueMode = MWGui::ShowInDialogueMode_IfPossible) = 0;
|
2013-05-03 12:44:27 +02:00
|
|
|
virtual void staticMessageBox(const std::string& message) = 0;
|
|
|
|
virtual void removeStaticMessageBox() = 0;
|
2015-01-10 23:21:39 +01:00
|
|
|
virtual void interactiveMessageBox (const std::string& message,
|
|
|
|
const std::vector<std::string>& buttons = std::vector<std::string>(), bool block=false) = 0;
|
2014-05-26 23:13:37 -04:00
|
|
|
|
|
|
|
/// returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
|
2012-08-12 18:11:09 +02:00
|
|
|
virtual int readPressedButton() = 0;
|
|
|
|
|
2020-05-26 16:54:04 +04:00
|
|
|
virtual void update (float duration) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
|
2020-07-11 17:24:20 +04:00
|
|
|
virtual void updateConsoleObjectPtr(const MWWorld::Ptr& currentPtr, const MWWorld::Ptr& newPtr) = 0;
|
|
|
|
|
2012-08-12 18:11:09 +02:00
|
|
|
/**
|
|
|
|
* Fetches a GMST string from the store, if there is no setting with the given
|
|
|
|
* ID or it is not a string the default string is returned.
|
|
|
|
*
|
|
|
|
* @param id Identifier for the GMST setting, e.g. "aName"
|
|
|
|
* @param default Default value if the GMST setting cannot be used.
|
|
|
|
*/
|
2012-10-01 10:03:49 +02:00
|
|
|
virtual std::string getGameSettingString(const std::string &id, const std::string &default_) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
|
2015-02-03 00:53:30 +01:00
|
|
|
virtual void processChangedSettings(const std::set< std::pair<std::string, std::string> >& changed) = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
|
|
|
|
virtual void executeInConsole (const std::string& path) = 0;
|
2012-09-11 16:37:54 +02:00
|
|
|
|
2012-09-15 20:18:41 +02:00
|
|
|
virtual void enableRest() = 0;
|
|
|
|
virtual bool getRestEnabled() = 0;
|
2013-05-16 13:35:28 +02:00
|
|
|
virtual bool getJournalAllowed() = 0;
|
2012-09-19 03:11:23 +02:00
|
|
|
|
|
|
|
virtual bool getPlayerSleeping() = 0;
|
2012-09-29 09:41:34 +02:00
|
|
|
virtual void wakeUpPlayer() = 0;
|
2012-09-23 00:36:20 +02:00
|
|
|
|
2013-03-30 15:51:07 +01:00
|
|
|
virtual void showSoulgemDialog (MWWorld::Ptr item) = 0;
|
|
|
|
|
2013-03-07 12:46:26 +01:00
|
|
|
virtual void changePointer (const std::string& name) = 0;
|
2012-12-31 04:15:47 +04:00
|
|
|
|
2013-07-30 06:00:20 +02:00
|
|
|
virtual void setEnemy (const MWWorld::Ptr& enemy) = 0;
|
|
|
|
|
2018-10-28 11:44:14 +04:00
|
|
|
virtual int getMessagesCount() const = 0;
|
|
|
|
|
2012-12-31 04:15:47 +04:00
|
|
|
virtual const Translation::Storage& getTranslationDataStorage() const = 0;
|
2013-06-16 18:06:55 +02:00
|
|
|
|
2019-06-09 02:08:09 +03:00
|
|
|
/// Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this.
|
|
|
|
virtual void setKeyFocusWidget (MyGUI::Widget* widget) = 0;
|
|
|
|
|
2018-09-04 09:15:07 +04:00
|
|
|
virtual void loadUserFonts() = 0;
|
|
|
|
|
2013-08-27 15:48:13 +02:00
|
|
|
virtual Loading::Listener* getLoadingScreen() = 0;
|
2013-11-20 16:05:24 +01:00
|
|
|
|
|
|
|
/// Should the cursor be visible?
|
|
|
|
virtual bool getCursorVisible() = 0;
|
2014-01-25 13:34:56 +01:00
|
|
|
|
|
|
|
/// Clear all savegame-specific data
|
|
|
|
virtual void clear() = 0;
|
2014-01-25 18:20:17 +01:00
|
|
|
|
2014-04-28 11:29:57 +02:00
|
|
|
virtual void write (ESM::ESMWriter& writer, Loading::Listener& progress) = 0;
|
2015-01-22 19:04:59 +01:00
|
|
|
virtual void readRecord (ESM::ESMReader& reader, uint32_t type) = 0;
|
2014-05-01 21:16:32 +02:00
|
|
|
virtual int countSavedGameRecords() const = 0;
|
2014-05-02 11:20:43 +02:00
|
|
|
|
|
|
|
/// Does the current stack of GUI-windows permit saving?
|
|
|
|
virtual bool isSavingAllowed() const = 0;
|
2014-05-27 03:00:31 -04:00
|
|
|
|
2015-03-11 20:04:25 +01:00
|
|
|
/// Send exit command to active Modal window
|
|
|
|
virtual void exitCurrentModal() = 0;
|
2014-05-27 03:00:31 -04:00
|
|
|
|
|
|
|
/// Sets the current Modal
|
|
|
|
/** Used to send exit command to active Modal when Esc is pressed **/
|
2014-05-27 04:38:13 -04:00
|
|
|
virtual void addCurrentModal(MWGui::WindowModal* input) = 0;
|
|
|
|
|
|
|
|
/// Removes the top Modal
|
|
|
|
/** Used when one Modal adds another Modal
|
|
|
|
\param input Pointer to the current modal, to ensure proper modal is removed **/
|
|
|
|
virtual void removeCurrentModal(MWGui::WindowModal* input) = 0;
|
2014-06-10 17:47:59 +02:00
|
|
|
|
|
|
|
virtual void pinWindow (MWGui::GuiWindow window) = 0;
|
2019-04-26 11:37:57 +04:00
|
|
|
virtual void toggleMaximized(MWGui::Layout *layout) = 0;
|
2014-08-01 16:25:41 +02:00
|
|
|
|
|
|
|
/// Fade the screen in, over \a time seconds
|
2017-09-24 19:15:39 +02:00
|
|
|
virtual void fadeScreenIn(const float time, bool clearQueue=true, float delay=0.f) = 0;
|
2014-08-01 16:25:41 +02:00
|
|
|
/// Fade the screen out to black, over \a time seconds
|
2017-09-24 19:15:39 +02:00
|
|
|
virtual void fadeScreenOut(const float time, bool clearQueue=true, float delay=0.f) = 0;
|
2014-08-01 16:25:41 +02:00
|
|
|
/// Fade the screen to a specified percentage of black, over \a time seconds
|
2017-09-24 19:15:39 +02:00
|
|
|
virtual void fadeScreenTo(const int percent, const float time, bool clearQueue=true, float delay=0.f) = 0;
|
2014-10-12 19:06:40 +02:00
|
|
|
/// Darken the screen to a specified percentage
|
|
|
|
virtual void setBlindness(const int percent) = 0;
|
2014-09-28 17:57:14 +02:00
|
|
|
|
2014-10-11 22:21:48 +02:00
|
|
|
virtual void activateHitOverlay(bool interrupt=true) = 0;
|
2014-10-05 17:53:50 +02:00
|
|
|
virtual void setWerewolfOverlay(bool set) = 0;
|
|
|
|
|
2019-05-16 10:28:56 +04:00
|
|
|
virtual void toggleConsole() = 0;
|
2014-09-28 17:57:14 +02:00
|
|
|
virtual void toggleDebugWindow() = 0;
|
2014-12-15 15:23:03 +01:00
|
|
|
|
|
|
|
/// Cycle to next or previous spell
|
|
|
|
virtual void cycleSpell(bool next) = 0;
|
|
|
|
/// Cycle to next or previous weapon
|
|
|
|
virtual void cycleWeapon(bool next) = 0;
|
2015-05-01 18:37:24 +02:00
|
|
|
|
2018-05-01 16:21:58 +04:00
|
|
|
virtual void playSound(const std::string& soundId, float volume = 1.f, float pitch = 1.f) = 0;
|
2017-07-10 15:48:00 +04:00
|
|
|
|
2015-05-01 18:37:24 +02:00
|
|
|
// In WindowManager for now since there isn't a VFS singleton
|
|
|
|
virtual std::string correctIconPath(const std::string& path) = 0;
|
2017-09-08 22:50:07 +02:00
|
|
|
virtual std::string correctBookartPath(const std::string& path, int width, int height, bool* exists = nullptr) = 0;
|
2015-05-01 18:37:24 +02:00
|
|
|
virtual std::string correctTexturePath(const std::string& path) = 0;
|
2016-03-24 16:52:16 +01:00
|
|
|
virtual bool textureExists(const std::string& path) = 0;
|
2015-05-26 16:40:44 +02:00
|
|
|
|
2019-02-20 13:37:00 +00:00
|
|
|
virtual void addCell(MWWorld::CellStore* cell) = 0;
|
2015-05-26 16:40:44 +02:00
|
|
|
virtual void removeCell(MWWorld::CellStore* cell) = 0;
|
2015-05-28 03:50:44 +02:00
|
|
|
virtual void writeFog(MWWorld::CellStore* cell) = 0;
|
2017-07-24 13:25:01 +02:00
|
|
|
|
|
|
|
virtual const MWGui::TextColours& getTextColours() = 0;
|
2017-09-22 16:52:39 +02:00
|
|
|
|
2018-09-09 23:10:09 +04:00
|
|
|
virtual bool injectKeyPress(MyGUI::KeyCode key, unsigned int text, bool repeat) = 0;
|
2018-09-10 12:55:00 +04:00
|
|
|
virtual bool injectKeyRelease(MyGUI::KeyCode key) = 0;
|
2020-04-16 17:31:20 +04:00
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void windowVisibilityChange(bool visible) override = 0;
|
|
|
|
void windowResized(int x, int y) override = 0;
|
|
|
|
void windowClosed() override = 0;
|
2020-04-16 17:31:20 +04:00
|
|
|
virtual bool isWindowVisible() = 0;
|
2020-06-05 18:22:53 +04:00
|
|
|
|
|
|
|
virtual void watchActor(const MWWorld::Ptr& ptr) = 0;
|
|
|
|
virtual MWWorld::Ptr getWatchedActor() const = 0;
|
2012-08-12 18:11:09 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|