OpenMW
|
#include <windowmanagerimp.hpp>
Public Types | |
typedef std::pair< std::string, int > | Faction |
typedef std::vector< Faction > | FactionList |
Public Types inherited from MWBase::WindowManager | |
typedef std::vector< int > | SkillList |
Public Member Functions | |
WindowManager (osgViewer::Viewer *viewer, osg::Group *guiRoot, Resource::ResourceSystem *resourceSystem, const std::string &logpath, const std::string &cacheDir, bool consoleOnlyScripts, Translation::Storage &translationDataStorage, ToUTF8::FromType encoding, bool exportFonts, const std::map< std::string, std::string > &fallbackMap, const std::string &versionDescription) | |
virtual | ~WindowManager () |
void | setStore (const MWWorld::ESMStore &store) |
Set the ESMStore to use for retrieving of GUI-related strings. More... | |
void | initUI () |
void | renderWorldMap () |
virtual Loading::Listener * | getLoadingScreen () |
virtual void | playVideo (const std::string &name, bool allowSkipping) |
virtual void | update () |
virtual void | setKeyFocusWidget (MyGUI::Widget *widget) |
Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this. More... | |
virtual void | setNewGame (bool newgame) |
virtual void | pushGuiMode (GuiMode mode) |
virtual void | popGuiMode () |
virtual void | removeGuiMode (GuiMode mode) |
can be anywhere in the stack More... | |
virtual void | goToJail (int days) |
virtual GuiMode | getMode () const |
virtual bool | containsMode (GuiMode mode) const |
virtual bool | isGuiMode () const |
virtual bool | isConsoleMode () const |
virtual void | toggleVisible (GuiWindow wnd) |
virtual void | forceHide (MWGui::GuiWindow wnd) |
virtual void | unsetForceHide (MWGui::GuiWindow wnd) |
virtual void | disallowAll () |
Disallow all inventory mode windows. More... | |
virtual void | allow (GuiWindow wnd) |
Allow one or more windows. More... | |
virtual bool | isAllowed (GuiWindow wnd) const |
virtual MWGui::DialogueWindow * | getDialogueWindow () |
virtual MWGui::InventoryWindow * | getInventoryWindow () |
virtual MWGui::CountDialog * | getCountDialog () |
virtual MWGui::ConfirmationDialog * | getConfirmationDialog () |
virtual MWGui::TradeWindow * | getTradeWindow () |
virtual void | useItem (const MWWorld::Ptr &item) |
Make the player use an item, while updating GUI state accordingly. More... | |
virtual void | updateSpellWindow () |
virtual void | setConsoleSelectedObject (const MWWorld::Ptr &object) |
Set value for the given ID. More... | |
virtual void | setValue (const std::string &id, const MWMechanics::AttributeValue &value) |
Set value for the given ID. More... | |
virtual void | setValue (int parSkill, const MWMechanics::SkillValue &value) |
virtual void | setValue (const std::string &id, const MWMechanics::DynamicStat< float > &value) |
virtual void | setValue (const std::string &id, const std::string &value) |
virtual void | setValue (const std::string &id, int value) |
virtual void | setDrowningTimeLeft (float time, float maxTime) |
virtual void | setPlayerClass (const ESM::Class &class_) |
set current class of player More... | |
virtual void | configureSkills (const SkillList &major, const SkillList &minor) |
configure skill groups, each set contains the skill ID for that group. More... | |
virtual void | updateSkillArea () |
update display of skills, factions, birth sign, reputation and bounty More... | |
virtual void | changeCell (const MWWorld::CellStore *cell) |
change the active cell More... | |
virtual void | setFocusObject (const MWWorld::Ptr &focus) |
virtual void | setFocusObjectScreenCoords (float min_x, float min_y, float max_x, float max_y) |
virtual void | getMousePosition (int &x, int &y) |
virtual void | getMousePosition (float &x, float &y) |
virtual void | setDragDrop (bool dragDrop) |
virtual bool | getWorldMouseOver () |
virtual bool | toggleFogOfWar () |
virtual bool | toggleFullHelp () |
show extra info in item tooltips (owner, script) More... | |
virtual bool | getFullHelp () const |
virtual void | setActiveMap (int x, int y, bool interior) |
set the indices of the map texture that should be used More... | |
virtual void | setDrowningBarVisibility (bool visible) |
sets the visibility of the drowning bar More... | |
virtual void | setHMSVisibility (bool visible) |
sets the visibility of the hud health/magicka/stamina bars More... | |
virtual void | setMinimapVisibility (bool visible) |
sets the visibility of the hud minimap More... | |
virtual void | setWeaponVisibility (bool visible) |
virtual void | setSpellVisibility (bool visible) |
virtual void | setSneakVisibility (bool visible) |
virtual void | activateQuickKey (int index) |
virtual std::string | getSelectedSpell () |
virtual void | setSelectedSpell (const std::string &spellId, int successChancePercent) |
virtual void | setSelectedEnchantItem (const MWWorld::Ptr &item) |
virtual void | setSelectedWeapon (const MWWorld::Ptr &item) |
virtual void | unsetSelectedSpell () |
virtual void | unsetSelectedWeapon () |
virtual void | showCrosshair (bool show) |
virtual bool | getSubtitlesEnabled () |
virtual bool | toggleGui () |
Turn visibility of all GUI elements on or off (HUD and all windows, except the console) More... | |
virtual void | disallowMouse () |
virtual void | allowMouse () |
virtual void | notifyInputActionBound () |
virtual void | addVisitedLocation (const std::string &name, int x, int y) |
virtual void | removeDialog (Layout *dialog) |
Hides dialog and schedules dialog to be deleted. More... | |
virtual void | exitCurrentGuiMode () |
Gracefully attempts to exit the topmost GUI mode. More... | |
virtual void | messageBox (const std::string &message, enum MWGui::ShowInDialogueMode showInDialogueMode=MWGui::ShowInDialogueMode_IfPossible) |
virtual void | staticMessageBox (const std::string &message) |
virtual void | removeStaticMessageBox () |
virtual void | interactiveMessageBox (const std::string &message, const std::vector< std::string > &buttons=std::vector< std::string >(), bool block=false) |
virtual int | readPressedButton () |
returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox) More... | |
virtual void | onFrame (float frameDuration) |
virtual std::map< int, MWMechanics::SkillValue > | getPlayerSkillValues () |
virtual std::map< int, MWMechanics::AttributeValue > | getPlayerAttributeValues () |
virtual SkillList | getPlayerMinorSkills () |
virtual SkillList | getPlayerMajorSkills () |
virtual std::string | getGameSettingString (const std::string &id, const std::string &default_) |
virtual void | processChangedSettings (const Settings::CategorySettingVector &changed) |
virtual void | windowResized (int x, int y) |
virtual void | executeInConsole (const std::string &path) |
virtual void | enableRest () |
virtual bool | getRestEnabled () |
virtual bool | getJournalAllowed () |
virtual bool | getPlayerSleeping () |
virtual void | wakeUpPlayer () |
virtual void | updatePlayer () |
virtual void | showCompanionWindow (MWWorld::Ptr actor) |
virtual void | startSpellMaking (MWWorld::Ptr actor) |
virtual void | startEnchanting (MWWorld::Ptr actor) |
virtual void | startSelfEnchanting (MWWorld::Ptr soulgem) |
virtual void | startTraining (MWWorld::Ptr actor) |
virtual void | startRepair (MWWorld::Ptr actor) |
virtual void | startRepairItem (MWWorld::Ptr item) |
virtual void | startRecharge (MWWorld::Ptr soulgem) |
virtual void | startTravel (const MWWorld::Ptr &actor) |
virtual void | startSpellBuying (const MWWorld::Ptr &actor) |
virtual void | startTrade (const MWWorld::Ptr &actor) |
virtual void | openContainer (const MWWorld::Ptr &container, bool loot) |
virtual void | showBook (const MWWorld::Ptr &item, bool showTakeButton) |
virtual void | showScroll (const MWWorld::Ptr &item, bool showTakeButton) |
virtual void | showSoulgemDialog (MWWorld::Ptr item) |
virtual void | changePointer (const std::string &name) |
virtual void | setEnemy (const MWWorld::Ptr &enemy) |
virtual const Translation::Storage & | getTranslationDataStorage () const |
void | onSoulgemDialogButtonPressed (int button) |
virtual bool | getCursorVisible () |
Should the cursor be visible? More... | |
virtual void | clear () |
Clear all savegame-specific data. More... | |
virtual void | write (ESM::ESMWriter &writer, Loading::Listener &progress) |
virtual void | readRecord (ESM::ESMReader &reader, uint32_t type) |
virtual int | countSavedGameRecords () const |
virtual bool | isSavingAllowed () const |
Does the current stack of GUI-windows permit saving? More... | |
virtual void | exitCurrentModal () |
Send exit command to active Modal window **/. More... | |
virtual void | addCurrentModal (WindowModal *input) |
Sets the current Modal. More... | |
virtual void | removeCurrentModal (WindowModal *input) |
Removes the top Modal. More... | |
virtual void | pinWindow (MWGui::GuiWindow window) |
virtual void | fadeScreenIn (const float time, bool clearQueue) |
Fade the screen in, over time seconds. More... | |
virtual void | fadeScreenOut (const float time, bool clearQueue) |
Fade the screen out to black, over time seconds. More... | |
virtual void | fadeScreenTo (const int percent, const float time, bool clearQueue) |
Fade the screen to a specified percentage of black, over time seconds. More... | |
virtual void | setBlindness (const int percent) |
Darken the screen to a specified percentage. More... | |
virtual void | activateHitOverlay (bool interrupt) |
virtual void | setWerewolfOverlay (bool set) |
virtual void | toggleDebugWindow () |
virtual void | cycleSpell (bool next) |
Cycle to next or previous spell. More... | |
virtual void | cycleWeapon (bool next) |
Cycle to next or previous weapon. More... | |
virtual std::string | correctIconPath (const std::string &path) |
virtual std::string | correctBookartPath (const std::string &path, int width, int height) |
virtual std::string | correctTexturePath (const std::string &path) |
virtual bool | textureExists (const std::string &path) |
void | removeCell (MWWorld::CellStore *cell) |
void | writeFog (MWWorld::CellStore *cell) |
Public Member Functions inherited from MWBase::WindowManager | |
WindowManager () | |
virtual void | processChangedSettings (const std::set< std::pair< std::string, std::string > > &changed)=0 |
Private Member Functions | |
void | trackWindow (Layout *layout, const std::string &name) |
void | onWindowChangeCoord (MyGUI::Window *_sender) |
void | setCursorVisible (bool visible) |
void | cleanupGarbage () |
void | updateVisible () |
void | updateMap () |
void | onRetrieveTag (const MyGUI::UString &_tag, MyGUI::UString &_result) |
void | onCursorChange (const std::string &name) |
void | onKeyFocusChanged (MyGUI::Widget *widget) |
void | onVideoKeyPressed (MyGUI::Widget *_sender, MyGUI::KeyCode _key, MyGUI::Char _char) |
void | sizeVideo (int screenWidth, int screenHeight) |
void | onClipboardChanged (const std::string &_type, const std::string &_data) |
void | onClipboardRequested (const std::string &_type, std::string &_data) |
void | createTextures () |
void | createCursors () |
void | setMenuTransparency (float value) |
typedef std::pair<std::string, int> MWGui::WindowManager::Faction |
typedef std::vector<Faction> MWGui::WindowManager::FactionList |
MWGui::WindowManager::WindowManager | ( | osgViewer::Viewer * | viewer, |
osg::Group * | guiRoot, | ||
Resource::ResourceSystem * | resourceSystem, | ||
const std::string & | logpath, | ||
const std::string & | cacheDir, | ||
bool | consoleOnlyScripts, | ||
Translation::Storage & | translationDataStorage, | ||
ToUTF8::FromType | encoding, | ||
bool | exportFonts, | ||
const std::map< std::string, std::string > & | fallbackMap, | ||
const std::string & | versionDescription | ||
) |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Sets the current Modal.
Used to send exit command to active Modal when Esc is pressed
Implements MWBase::WindowManager.
|
virtual |
Allow one or more windows.
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
private |
|
virtual |
Clear all savegame-specific data.
Implements MWBase::WindowManager.
|
virtual |
configure skill groups, each set contains the skill ID for that group.
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
virtual |
Cycle to next or previous spell.
Implements MWBase::WindowManager.
|
virtual |
Cycle to next or previous weapon.
Implements MWBase::WindowManager.
|
virtual |
Disallow all inventory mode windows.
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
inlinevirtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
Gracefully attempts to exit the topmost GUI mode.
Implements MWBase::WindowManager.
|
virtual |
Send exit command to active Modal window **/.
Implements MWBase::WindowManager.
|
virtual |
Fade the screen in, over time seconds.
Implements MWBase::WindowManager.
|
virtual |
Fade the screen out to black, over time seconds.
Implements MWBase::WindowManager.
|
virtual |
Fade the screen to a specified percentage of black, over time seconds.
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Should the cursor be visible?
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
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.
id | Identifier for the GMST setting, e.g. "aName" |
default | Default value if the GMST setting cannot be used. |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
inlinevirtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
inlinevirtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
void MWGui::WindowManager::initUI | ( | ) |
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Does the current stack of GUI-windows permit saving?
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
virtual |
|
private |
|
private |
Called when MyGUI tries to retrieve a tag's value. Tags must be denoted in #{tag} notation and will be replaced upon setting a user visible text/property. Supported syntax: #{GMSTName}: retrieves String value of the GMST called GMSTName #{setting=CATEGORY_NAME,SETTING_NAME}: retrieves String value of SETTING_NAME under category CATEGORY_NAME from settings.cfg #{sCell=CellID}: retrieves translated name of the given CellID (used only by some Morrowind localisations, in others cell ID is == cell name) #{fontcolour=FontColourName}: retrieves the value of the fallback setting "FontColor_color_<FontColourName>" from openmw.cfg, in the format "r g b a", float values in range 0-1. Useful for "Colour" and "TextColour" properties in skins. #{fontcolourhtml=FontColourName}: retrieves the value of the fallback setting "FontColor_color_<FontColourName>" from openmw.cfg, in the format "#xxxxxx" where x are hexadecimal numbers. Useful in an EditBox's caption to change the color of following text.
void MWGui::WindowManager::onSoulgemDialogButtonPressed | ( | int | button | ) |
|
private |
|
private |
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
returns the index of the pressed button or -1 if no button was pressed (->MessageBoxmanager->InteractiveMessageBox)
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
Removes the top Modal.
Used when one Modal adds another Modal
input | Pointer to the current modal, to ensure proper modal is removed |
Implements MWBase::WindowManager.
|
virtual |
Hides dialog and schedules dialog to be deleted.
Implements MWBase::WindowManager.
|
virtual |
can be anywhere in the stack
Implements MWBase::WindowManager.
|
virtual |
void MWGui::WindowManager::renderWorldMap | ( | ) |
set the indices of the map texture that should be used
Implements MWBase::WindowManager.
|
virtual |
Darken the screen to a specified percentage.
Implements MWBase::WindowManager.
|
virtual |
Set value for the given ID.
Implements MWBase::WindowManager.
|
privatevirtual |
|
virtual |
|
virtual |
sets the visibility of the drowning bar
Implements MWBase::WindowManager.
|
virtual |
Set time left for the player to start drowning (update the drowning bar)
time | time left to start drowning |
maxTime | how long we can be underwater (in total) until drowning starts |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
sets the visibility of the hud health/magicka/stamina bars
Implements MWBase::WindowManager.
|
virtual |
Warning: do not use MyGUI::InputManager::setKeyFocusWidget directly. Instead use this.
Implements MWBase::WindowManager.
|
private |
|
virtual |
sets the visibility of the hud minimap
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
set current class of player
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::WindowManager.
void MWGui::WindowManager::setStore | ( | const MWWorld::ESMStore & | store | ) |
Set the ESMStore to use for retrieving of GUI-related strings.
|
virtual |
Set value for the given ID.
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
show extra info in item tooltips (owner, script)
Implements MWBase::WindowManager.
|
virtual |
Turn visibility of all GUI elements on or off (HUD and all windows, except the console)
Implements MWBase::WindowManager.
|
virtual |
|
private |
|
virtual |
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
Should be called each frame to update windows/gui elements. This could mean updating sizes of gui elements or opening new dialogs.
Implements MWBase::WindowManager.
|
private |
|
virtual |
|
virtual |
update display of skills, factions, birth sign, reputation and bounty
Implements MWBase::WindowManager.
|
virtual |
|
private |
|
virtual |
Make the player use an item, while updating GUI state accordingly.
Implements MWBase::WindowManager.
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |