OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
GUIWindow Class Reference

#include <GUIWindow.h>

Inheritance diagram for GUIWindow:
GUICredits GUIWindow_Book GUIWindow_BooksButtonOverlay GUIWindow_BranchlessDialogue GUIWindow_CharacterRecord GUIWindow_Chest GUIWindow_Dialogue GUIWindow_GameKeyBindings GUIWindow_GameMenu GUIWindow_GameOptions GUIWindow_GameOver GUIWindow_GameVideoOptions GUIWindow_House GUIWindow_Inventory GUIWindow_Load GUIWindow_MainMenu GUIWindow_MessageScroll GUIWindow_PartyCreation GUIWindow_QuickReference GUIWindow_Rest GUIWindow_Save GUIWindow_Spellbook GUIWindow_Transition OnButtonClick OnButtonClick2 OnButtonClick3 OnButtonClick4 OnCancel OnCancel2 OnCancel3 OnSaveLoad TargetedSpellUI

Public Member Functions

 GUIWindow ()
 
 GUIWindow (WindowType windowType, Pointi position, Sizei dimensions, std::string_view hint={})
 
virtual ~GUIWindow ()=default
 
GUIButtonCreateButton (Pointi position, Sizei dimensions, int uButtonType, int uData, UIMessageType msg, unsigned int msg_param, Io::InputAction action=Io::InputAction::Invalid, std::string_view label={}, const std::vector< GraphicsImage * > &textures={})
 
GUIButtonCreateButton (std::string id, Pointi position, Sizei dimensions, int uButtonType, int uData, UIMessageType msg, unsigned int msg_param, Io::InputAction action=Io::InputAction::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 maxHeight=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)
 
GUIButtonGetControl (unsigned int uID)
 
void setKeyboardControlGroup (int buttonsCount, bool msgOnSelect, int selectStep, int initialPosition)
 
virtual void Update ()
 
virtual void Release ()
 
void DeleteButtons ()
 

Static Public Member Functions

static void InitializeGUI ()
 

Public Attributes

int uFrameX = 0
 
int uFrameY = 0
 
int uFrameWidth = 0
 
int uFrameHeight = 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::Mousemouse = nullptr
 

Constructor & Destructor Documentation

◆ GUIWindow() [1/2]

GUIWindow::GUIWindow ( )

◆ GUIWindow() [2/2]

GUIWindow::GUIWindow ( WindowType  windowType,
Pointi  position,
Sizei  dimensions,
std::string_view  hint = {} 
)

◆ ~GUIWindow()

virtual GUIWindow::~GUIWindow ( )
virtualdefault

Member Function Documentation

◆ Contains()

bool GUIWindow::Contains ( unsigned int  x,
unsigned int  y 
)

◆ CreateButton() [1/2]

GUIButton * GUIWindow::CreateButton ( Pointi  position,
Sizei  dimensions,
int  uButtonType,
int  uData,
UIMessageType  msg,
unsigned int  msg_param,
Io::InputAction  action = Io::InputAction::Invalid,
std::string_view  label = {},
const std::vector< GraphicsImage * > &  textures = {} 
)

◆ CreateButton() [2/2]

GUIButton * GUIWindow::CreateButton ( std::string  id,
Pointi  position,
Sizei  dimensions,
int  uButtonType,
int  uData,
UIMessageType  msg,
unsigned int  msg_param,
Io::InputAction  action = Io::InputAction::Invalid,
std::string_view  label = {},
const std::vector< GraphicsImage * > &  textures = {} 
)

◆ DeleteButtons()

void GUIWindow::DeleteButtons ( )

◆ DrawFlashingInputCursor()

void GUIWindow::DrawFlashingInputCursor ( int  uX,
int  uY,
GUIFont a2 
)

◆ DrawMessageBox()

void GUIWindow::DrawMessageBox ( bool  inside_game_viewport)

◆ DrawShops_next_generation_time_string()

void GUIWindow::DrawShops_next_generation_time_string ( Duration  time)

◆ DrawText()

void GUIWindow::DrawText ( GUIFont font,
Pointi  position,
Color  color,
std::string_view  text,
int  maxHeight = 0,
Color  shadowColor = colorTable.Black 
)

◆ 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 
)

◆ GetControl()

GUIButton * GUIWindow::GetControl ( unsigned int  uID)

◆ InitializeGUI()

void GUIWindow::InitializeGUI ( )
static

◆ Release()

void GUIWindow::Release ( )
virtual

◆ setKeyboardControlGroup()

void GUIWindow::setKeyboardControlGroup ( int  buttonsCount,
bool  msgOnSelect,
int  selectStep,
int  initialPosition 
)
Original binary offset:
0x41D08F

◆ Update()

virtual void GUIWindow::Update ( )
inlinevirtual

Member Data Documentation

◆ _msgOnKeyboardSelect

bool GUIWindow::_msgOnKeyboardSelect = true

◆ _selectStep

int GUIWindow::_selectStep = 0

◆ eWindowType

WindowType GUIWindow::eWindowType = WINDOW_null

◆ field_24

int GUIWindow::field_24 = 0

◆ keyboard_input_status

WindowInputStatus GUIWindow::keyboard_input_status = WINDOW_INPUT_NONE

◆ 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

◆ uFrameHeight

int GUIWindow::uFrameHeight = 0

◆ uFrameW

int GUIWindow::uFrameW = 0

◆ uFrameWidth

int GUIWindow::uFrameWidth = 0

◆ uFrameX

int GUIWindow::uFrameX = 0

◆ uFrameY

int GUIWindow::uFrameY = 0

◆ uFrameZ

int GUIWindow::uFrameZ = 0

◆ vButtons

std::vector<GUIButton*> GUIWindow::vButtons

The documentation for this class was generated from the following files: