#include <GUIWindow.h>
|
| | GUIWindow (WindowType windowType, Pointi position, Sizei dimensions, std::string_view hint={}) |
| |
| virtual | ~GUIWindow () |
| |
| | GUIWindow (const GUIWindow &other)=delete |
| |
| GUIWindow & | operator= (const GUIWindow &other)=delete |
| |
| 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) |
| |
| int | DrawTextInRect (GUIFont *font, Pointi position, Color color, std::string_view text, int rect_width, int reverse_text) |
| |
| void | DrawDialoguePanel (std::string_view text) |
| |
| GUIButton * | GetControl (unsigned int uID) |
| |
| void | setKeyboardControlGroup (int buttonsCount, bool msgOnSelect, int selectStep, int initialPosition) |
| |
| virtual void | Update () |
| |
| void | DeleteButtons () |
| |
|
| static void | InitializeGUI () |
| |
| static void | DrawText (GUIFont *font, Pointi position, Color color, std::string_view text, Recti frameRect, int maxY=0, Color shadowColor=colorTable.Black) |
| |
| static void | DrawTitleText (GUIFont *font, int horizontalMargin, int verticalMargin, Color color, std::string_view text, int lineSpacing, Recti frameRect) |
| |
| static void | DrawFlashingInputCursor (int uX, int uY, GUIFont *a2, Recti frameRect) |
| |
| static void | DrawShops_next_generation_time_string (Duration time, Recti frameRect) |
| |
| static void | DrawMessageBox (bool inside_game_viewport, Recti &frameRect, std::string hint) |
| |
◆ GUIWindow() [1/2]
| GUIWindow::GUIWindow |
( |
WindowType |
windowType, |
|
|
Pointi |
position, |
|
|
Sizei |
dimensions, |
|
|
std::string_view |
hint = {} |
|
) |
| |
◆ ~GUIWindow()
| GUIWindow::~GUIWindow |
( |
| ) |
|
|
virtual |
◆ GUIWindow() [2/2]
| GUIWindow::GUIWindow |
( |
const GUIWindow & |
other | ) |
|
|
delete |
◆ Contains()
| bool GUIWindow::Contains |
( |
unsigned int |
x, |
|
|
unsigned int |
y |
|
) |
| |
◆ CreateButton() [1/2]
◆ CreateButton() [2/2]
◆ DeleteButtons()
| void GUIWindow::DeleteButtons |
( |
| ) |
|
◆ DrawDialoguePanel()
| void GUIWindow::DrawDialoguePanel |
( |
std::string_view |
text | ) |
|
Draws the dialogue panel with background, e.g. for showing Arcomage rules in a tavern. Automatically switches to smaller font if text is too tall.
- Parameters
-
| text | Text to display in the panel. If empty, nothing is drawn. |
◆ DrawFlashingInputCursor()
| void GUIWindow::DrawFlashingInputCursor |
( |
int |
uX, |
|
|
int |
uY, |
|
|
GUIFont * |
a2, |
|
|
Recti |
frameRect |
|
) |
| |
|
static |
◆ DrawMessageBox()
| void GUIWindow::DrawMessageBox |
( |
bool |
inside_game_viewport, |
|
|
Recti & |
frameRect, |
|
|
std::string |
hint |
|
) |
| |
|
static |
◆ DrawShops_next_generation_time_string()
| void GUIWindow::DrawShops_next_generation_time_string |
( |
Duration |
time, |
|
|
Recti |
frameRect |
|
) |
| |
|
static |
◆ DrawText()
| void GUIWindow::DrawText |
( |
GUIFont * |
font, |
|
|
Pointi |
position, |
|
|
Color |
color, |
|
|
std::string_view |
text, |
|
|
Recti |
frameRect, |
|
|
int |
maxY = 0, |
|
|
Color |
shadowColor = colorTable.Black |
|
) |
| |
|
static |
◆ DrawTextInRect()
| int GUIWindow::DrawTextInRect |
( |
GUIFont * |
font, |
|
|
Pointi |
position, |
|
|
Color |
color, |
|
|
std::string_view |
text, |
|
|
int |
rect_width, |
|
|
int |
reverse_text |
|
) |
| |
◆ DrawTitleText()
| void GUIWindow::DrawTitleText |
( |
GUIFont * |
font, |
|
|
int |
horizontalMargin, |
|
|
int |
verticalMargin, |
|
|
Color |
color, |
|
|
std::string_view |
text, |
|
|
int |
lineSpacing, |
|
|
Recti |
frameRect |
|
) |
| |
|
static |
◆ GetControl()
| GUIButton * GUIWindow::GetControl |
( |
unsigned int |
uID | ) |
|
◆ InitializeGUI()
| void GUIWindow::InitializeGUI |
( |
| ) |
|
|
static |
◆ operator=()
◆ setKeyboardControlGroup()
| void GUIWindow::setKeyboardControlGroup |
( |
int |
buttonsCount, |
|
|
bool |
msgOnSelect, |
|
|
int |
selectStep, |
|
|
int |
initialPosition |
|
) |
| |
- Original binary offset:
- 0x41D08F
◆ Update()
| virtual void GUIWindow::Update |
( |
| ) |
|
|
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_CastSpell, GUIWindow_MainMenu, GUIWindow_MessageScroll, GUIWindow_PartyCreation, GUIWindow_QuickReference, GUIWindow_Rest, GUIWindow_Save, GUIWindow_Load, GUIWindow_Spellbook, GUIWindow_Travel, and GUIWindow_IndoorEntryExit.
◆ _msgOnKeyboardSelect
| bool GUIWindow::_msgOnKeyboardSelect = true |
◆ _selectStep
| int GUIWindow::_selectStep = 0 |
◆ eWindowType
◆ field_24
| int GUIWindow::field_24 = 0 |
◆ frameRect
| Recti GUIWindow::frameRect |
◆ keyboard_input_status
◆ mouse
| std::shared_ptr<Io::Mouse> GUIWindow::mouse = nullptr |
◆ pCurrentPosActiveItem
| int GUIWindow::pCurrentPosActiveItem = 0 |
◆ pNumPresenceButton
| int GUIWindow::pNumPresenceButton = 0 |
◆ pStartingPosActiveItem
| int GUIWindow::pStartingPosActiveItem = 0 |
◆ receives_keyboard_input
| bool GUIWindow::receives_keyboard_input = false |
◆ sHint
| std::string GUIWindow::sHint |
◆ vButtons
The documentation for this class was generated from the following files: