|
OpenEnroth 90c43ae
|
#include <GUIWindow.h>
Public Member Functions | |
| GUIWindow () | |
| GUIWindow (WindowType windowType, Pointi position, Sizei dimensions, std::string_view hint={}) | |
| virtual | ~GUIWindow ()=default |
| GUIButton * | CreateButton (Pointi position, Sizei dimensions, int uButtonType, int uData, UIMessageType msg, unsigned int msg_param, InputAction action=INPUT_ACTION_INVALID, std::string_view label={}, const std::vector< GraphicsImage * > &textures={}) |
| GUIButton * | CreateButton (std::string id, Pointi position, Sizei dimensions, int uButtonType, int uData, UIMessageType msg, unsigned int msg_param, InputAction action=INPUT_ACTION_INVALID, std::string_view label={}, const std::vector< GraphicsImage * > &textures={}) |
| bool | Contains (unsigned int x, unsigned int y) |
| void | DrawFlashingInputCursor (int uX, int uY, GUIFont *a2) |
| int | DrawTextInRect (GUIFont *font, Pointi position, Color color, std::string_view text, int rect_width, int reverse_text) |
| void | DrawText (GUIFont *font, Pointi position, Color color, std::string_view text, int maxY=0, Color shadowColor=colorTable.Black) |
| void | DrawTitleText (GUIFont *font, int horizontalMargin, int verticalMargin, Color color, std::string_view text, int lineSpacing) |
| void | DrawShops_next_generation_time_string (Duration time) |
| void | DrawMessageBox (bool inside_game_viewport) |
| GUIButton * | GetControl (unsigned int uID) |
| void | setKeyboardControlGroup (int buttonsCount, bool msgOnSelect, int selectStep, int initialPosition) |
| virtual void | Update () |
| virtual void | Release () |
| void | DeleteButtons () |
| Recti | frameRect () const |
Static Public Member Functions | |
| static void | InitializeGUI () |
Public Attributes | |
| int | uFrameWidth = 0 |
| int | uFrameHeight = 0 |
| int | uFrameX = 0 |
| int | uFrameY = 0 |
| int | uFrameZ = 0 |
| int | uFrameW = 0 |
| WindowType | eWindowType = WINDOW_null |
| int | field_24 = 0 |
| int | pNumPresenceButton = 0 |
| int | pCurrentPosActiveItem = 0 |
| bool | _msgOnKeyboardSelect = true |
| int | _selectStep = 0 |
| int | pStartingPosActiveItem = 0 |
| WindowInputStatus | keyboard_input_status = WINDOW_INPUT_NONE |
| bool | receives_keyboard_input = false |
| std::string | sHint |
| std::vector< GUIButton * > | vButtons |
| std::shared_ptr< Io::Mouse > | mouse = nullptr |
| GUIWindow::GUIWindow | ( | ) |
| GUIWindow::GUIWindow | ( | WindowType | windowType, |
| Pointi | position, | ||
| Sizei | dimensions, | ||
| std::string_view | hint = {} |
||
| ) |
|
virtualdefault |
| bool GUIWindow::Contains | ( | unsigned int | x, |
| unsigned int | y | ||
| ) |
| GUIButton * GUIWindow::CreateButton | ( | Pointi | position, |
| Sizei | dimensions, | ||
| int | uButtonType, | ||
| int | uData, | ||
| UIMessageType | msg, | ||
| unsigned int | msg_param, | ||
| InputAction | action = INPUT_ACTION_INVALID, |
||
| std::string_view | label = {}, |
||
| const std::vector< GraphicsImage * > & | textures = {} |
||
| ) |
| GUIButton * GUIWindow::CreateButton | ( | std::string | id, |
| Pointi | position, | ||
| Sizei | dimensions, | ||
| int | uButtonType, | ||
| int | uData, | ||
| UIMessageType | msg, | ||
| unsigned int | msg_param, | ||
| InputAction | action = INPUT_ACTION_INVALID, |
||
| std::string_view | label = {}, |
||
| const std::vector< GraphicsImage * > & | textures = {} |
||
| ) |
| void GUIWindow::DeleteButtons | ( | ) |
| void GUIWindow::DrawFlashingInputCursor | ( | int | uX, |
| int | uY, | ||
| GUIFont * | a2 | ||
| ) |
| void GUIWindow::DrawMessageBox | ( | bool | inside_game_viewport | ) |
| void GUIWindow::DrawShops_next_generation_time_string | ( | Duration | time | ) |
| void GUIWindow::DrawText | ( | GUIFont * | font, |
| Pointi | position, | ||
| Color | color, | ||
| std::string_view | text, | ||
| int | maxY = 0, |
||
| Color | shadowColor = colorTable.Black |
||
| ) |
| int GUIWindow::DrawTextInRect | ( | GUIFont * | font, |
| Pointi | position, | ||
| Color | color, | ||
| std::string_view | text, | ||
| int | rect_width, | ||
| int | reverse_text | ||
| ) |
| void GUIWindow::DrawTitleText | ( | GUIFont * | font, |
| int | horizontalMargin, | ||
| int | verticalMargin, | ||
| Color | color, | ||
| std::string_view | text, | ||
| int | lineSpacing | ||
| ) |
|
inline |
| GUIButton * GUIWindow::GetControl | ( | unsigned int | uID | ) |
|
static |
|
virtual |
Reimplemented in GUIWindow_Book, GUIWindow_BranchlessDialogue, GUIWindow_Dialogue, GUIWindow_GameOver, GUIWindow_House, GUIWindow_Spellbook, and GUIWindow_Transition.
| void GUIWindow::setKeyboardControlGroup | ( | int | buttonsCount, |
| bool | msgOnSelect, | ||
| int | selectStep, | ||
| int | initialPosition | ||
| ) |
|
inlinevirtual |
Reimplemented in OnButtonClick, OnButtonClick2, OnButtonClick3, OnButtonClick4, OnSaveLoad, OnCancel, OnCancel2, OnCancel3, GUIWindow_AutonotesBook, GUIWindow_CalendarBook, GUIWindow_JournalBook, GUIWindow_LloydsBook, GUIWindow_MapBook, GUIWindow_QuestBook, GUIWindow_TownPortalBook, GUIWindow_BooksButtonOverlay, GUIWindow_BranchlessDialogue, GUIWindow_CharacterRecord, GUIWindow_Chest, GUICredits, GUIWindow_Dialogue, GUIWindow_GameMenu, GUIWindow_GameOptions, GUIWindow_GameKeyBindings, GUIWindow_GameVideoOptions, GUIWindow_GameOver, GUIWindow_House, GUIWindow_Inventory, GUIWindow_Inventory_CastSpell, GUIWindow_MainMenu, GUIWindow_MessageScroll, GUIWindow_PartyCreation, GUIWindow_QuickReference, GUIWindow_Rest, GUIWindow_Save, GUIWindow_Load, GUIWindow_Spellbook, GUIWindow_Travel, and GUIWindow_IndoorEntryExit.
| bool GUIWindow::_msgOnKeyboardSelect = true |
| int GUIWindow::_selectStep = 0 |
| WindowType GUIWindow::eWindowType = WINDOW_null |
| int GUIWindow::field_24 = 0 |
| WindowInputStatus GUIWindow::keyboard_input_status = WINDOW_INPUT_NONE |
| std::shared_ptr<Io::Mouse> GUIWindow::mouse = nullptr |
| int GUIWindow::pCurrentPosActiveItem = 0 |
| int GUIWindow::pNumPresenceButton = 0 |
| int GUIWindow::pStartingPosActiveItem = 0 |
| bool GUIWindow::receives_keyboard_input = false |
| std::string GUIWindow::sHint |
| int GUIWindow::uFrameHeight = 0 |
| int GUIWindow::uFrameW = 0 |
| int GUIWindow::uFrameWidth = 0 |
| int GUIWindow::uFrameX = 0 |
| int GUIWindow::uFrameY = 0 |
| int GUIWindow::uFrameZ = 0 |
| std::vector<GUIButton*> GUIWindow::vButtons |