OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
GUIWindow.h File Reference
#include <array>
#include <cstdint>
#include <list>
#include <memory>
#include <vector>
#include <string>
#include "Engine/Data/HouseEnums.h"
#include "Engine/PartyEnums.h"
#include "Engine/Objects/NPCEnums.h"
#include "Engine/Objects/ItemEnums.h"
#include "Engine/Time/Time.h"
#include "GUI/GUIEnums.h"
#include "GUI/GUIDialogues.h"
#include "Io/InputAction.h"
#include "Io/KeyboardInputHandler.h"
#include "Library/Platform/Interface/PlatformEnums.h"
#include "Library/Color/ColorTable.h"
#include "Library/Geometry/Size.h"
#include "Library/Geometry/Point.h"
#include "Library/Geometry/Rect.h"
#include "Utility/IndexedArray.h"

Classes

class  GUIWindow
 
class  OnButtonClick
 
class  OnButtonClick2
 
class  OnButtonClick3
 
class  OnButtonClick4
 
class  OnSaveLoad
 
class  OnCancel
 
class  OnCancel2
 
class  OnCancel3
 
class  WindowManager
 

Namespaces

namespace  Io
 

Functions

void draw_leather ()
 
void MainMenuUI_LoadFontsAndSomeStuff ()
 
void UI_Create ()
 
void GameUI_DrawRightPanel ()
 
void GameUI_DrawRightPanelFrames ()
 
void GameUI_DrawRightPanelItems ()
 
void GameUI_DrawFoodAndGold ()
 
void GameUI_DrawLifeManaBars ()
 
void GameUI_DrawHiredNPCs ()
 
void GameUI_DrawPortraits ()
 
void GameUI_DrawMinimap (const Recti &rect, int zoom)
 
std::string GameUI_GetMinimapHintText ()
 
void GameUI_DrawPartySpells ()
 
void GameUI_DrawTorchlightAndWizardEye ()
 
void GameUI_DrawCharacterSelectionFrame ()
 
void CharacterUI_InventoryTab_Draw (Character *player, bool a2)
 
void CharacterUI_DrawPaperdoll (Character *player)
 
void CharacterUI_DrawPaperdollWithRingOverlay (Character *player)
 
void CharacterUI_ReleaseButtons ()
 
Color GetSkillColor (CharacterClass uPlayerClass, CharacterSkillType uPlayerSkillType, CharacterSkillMastery skill_mastery)
 
void UI_OnMouseRightClick (int mouse_x, int mouse_y)
 
void GUI_UpdateWindows ()
 
Color GetConditionDrawColor (Condition uConditionIdx)
 
Color UI_GetHealthManaAndOtherQualitiesStringColor (int current_pos, int base_pos)
 
int GetSizeInInventorySlots (int uNumPixels)
 
GUIButtonGUI_HandleHotkey (PlatformKey hotkey)
 
void GUI_ReplaceHotkey (PlatformKey oldKey, PlatformKey newKey, char bFirstCall)
 
void DrawBuff_remaining_time_string (int uY, GUIWindow *window, Duration remaining_time, GUIFont *Font)
 
void SetUserInterface (PartyAlignment alignment)
 
void CreateMsgScrollWindow (ItemId mscroll_id)
 
void CreateScrollWindow ()
 
void OnPaperdollLeftClick ()
 
void DialogueEnding ()
 
bool isHoldingMouseRightButton ()
 
std::string BuildDialogueString (std::string_view str, int uPlayerID, NPCData *npc, ItemGen *item=nullptr, HouseId houseId=HOUSE_INVALID, ShopScreen shop_screen=SHOP_SCREEN_INVALID, Time *a6=nullptr)
 
std::string NameAndTitle (std::string_view name, std::string_view title)
 
std::string NameAndTitle (std::string_view name, CharacterClass class_type)
 
std::string NameAndTitle (std::string_view name, NpcProfession profession)
 
std::string NameAndTitle (NPCData *npc)
 
std::string GetDisplayName (Actor *actor)
 
void SetCurrentMenuID (MenuType)
 
MenuType GetCurrentMenuID ()
 

Variables

enum WindowType current_character_screen_window
 
std::list< GUIWindow * > lWindowList
 
WindowManager windowManager
 
GUIWindowpPrimaryWindow
 
GUIWindowpDialogueWindow
 
GUIWindow_Housewindow_SpeakInHouse
 
GUIWindow_MessageScrollpGUIWindow_ScrollWindow
 
GUIWindowptr_507BC8
 
GUIWindowpGUIWindow_CurrentMenu
 
GUIWindow_ChestpGUIWindow_CurrentChest
 
TargetedSpellUIpGUIWindow_CastTargetedSpell
 
GUIWindow_GameOverpGameOverWindow
 
GUIWindow_BranchlessDialoguepGUIWindow_BranchlessDialogue
 
Color ui_mainmenu_copyright_color
 
Color ui_character_tooltip_header_default_color
 
Color ui_character_default_text_color
 
Color ui_character_skill_highlight_color
 
Color ui_character_header_text_color
 
Color ui_character_bonus_text_color
 
Color ui_character_bonus_text_color_neg
 
Color ui_character_skill_upgradeable_color
 
Color ui_character_skill_default_color
 
Color ui_character_stat_default_color
 
Color ui_character_stat_buffed_color
 
Color ui_character_stat_debuffed_color
 
Color ui_character_skillinfo_can_learn
 
Color ui_character_skillinfo_can_learn_gm
 
Color ui_character_skillinfo_cant_learn
 
Color ui_character_condition_normal_color
 
Color ui_character_condition_light_color
 
Color ui_character_condition_moderate_color
 
Color ui_character_condition_severe_color
 
std::array< Color, 6 > ui_character_award_color
 
Color ui_game_minimap_outline_color
 
Color ui_game_minimap_actor_friendly_color
 
Color ui_game_minimap_actor_hostile_color
 
Color ui_game_minimap_actor_corpse_color
 
Color ui_game_minimap_decoration_color_1
 
Color ui_game_minimap_projectile_color
 
Color ui_game_minimap_treasure_color
 
Color ui_gamemenu_video_gamma_title_color
 
Color ui_gamemenu_keys_action_name_color
 
Color ui_gamemenu_keys_key_selection_blink_color_1
 
Color ui_gamemenu_keys_key_selection_blink_color_2
 
Color ui_gamemenu_keys_key_default_color
 
Color ui_book_quests_title_color
 
Color ui_book_quests_text_color
 
Color ui_book_autonotes_title_color
 
Color ui_book_autonotes_text_color
 
Color ui_book_map_title_color
 
Color ui_book_map_coordinates_color
 
Color ui_book_calendar_title_color
 
Color ui_book_calendar_time_color
 
Color ui_book_calendar_day_color
 
Color ui_book_calendar_month_color
 
Color ui_book_calendar_year_color
 
Color ui_book_calendar_moon_color
 
Color ui_book_calendar_location_color
 
Color ui_book_journal_title_color
 
Color ui_book_journal_text_color
 
Color ui_book_journal_text_shadow
 
Color ui_game_dialogue_npc_name_color
 
Color ui_game_dialogue_option_highlight_color
 
Color ui_game_dialogue_option_normal_color
 
Color ui_house_player_cant_interact_color
 
GraphicsImageui_exit_cancel_button_background
 
GraphicsImagegame_ui_right_panel_frame
 
GraphicsImagedialogue_ui_x_ok_u
 
GraphicsImagedialogue_ui_x_x_u
 
GraphicsImageui_buttdesc2
 
GraphicsImageui_buttyes2
 
GraphicsImageui_btn_npc_right
 
GraphicsImageui_btn_npc_left
 
GraphicsImageui_ar_dn_dn
 
GraphicsImageui_ar_dn_up
 
GraphicsImageui_ar_up_dn
 
GraphicsImageui_ar_up_up
 
GraphicsImageui_leather_mm6
 
GraphicsImageui_leather_mm7
 
MenuType sCurrentMenuID
 
ScreenType current_screen_type
 
ScreenType prev_screen_type
 
const IndexedArray< Color, CHARACTER_BUFF_FIRST, CHARACTER_BUFF_LASTui_game_character_record_playerbuff_colors
 

Function Documentation

◆ BuildDialogueString()

std::string BuildDialogueString ( std::string_view  str,
int  uPlayerID,
NPCData npc,
ItemGen item = nullptr,
HouseId  houseId = HOUSE_INVALID,
ShopScreen  shop_screen = SHOP_SCREEN_INVALID,
Time a6 = nullptr 
)
Original binary offset:
0x495461

◆ CharacterUI_DrawPaperdoll()

void CharacterUI_DrawPaperdoll ( Character player)

◆ CharacterUI_DrawPaperdollWithRingOverlay()

void CharacterUI_DrawPaperdollWithRingOverlay ( Character player)

◆ CharacterUI_InventoryTab_Draw()

void CharacterUI_InventoryTab_Draw ( Character player,
bool  a2 
)

◆ CharacterUI_ReleaseButtons()

void CharacterUI_ReleaseButtons ( )

◆ CreateMsgScrollWindow()

void CreateMsgScrollWindow ( ItemId  mscroll_id)

◆ CreateScrollWindow()

void CreateScrollWindow ( )

◆ DialogueEnding()

void DialogueEnding ( )

◆ draw_leather()

void draw_leather ( )

◆ DrawBuff_remaining_time_string()

void DrawBuff_remaining_time_string ( int  uY,
GUIWindow window,
Duration  remaining_time,
GUIFont Font 
)

◆ GameUI_DrawCharacterSelectionFrame()

void GameUI_DrawCharacterSelectionFrame ( )

◆ GameUI_DrawFoodAndGold()

void GameUI_DrawFoodAndGold ( )

◆ GameUI_DrawHiredNPCs()

void GameUI_DrawHiredNPCs ( )

◆ GameUI_DrawLifeManaBars()

void GameUI_DrawLifeManaBars ( )

◆ GameUI_DrawMinimap()

void GameUI_DrawMinimap ( const Recti rect,
int  zoom 
)
Parameters
rectScreen rect to draw the minimap at.
zoomThe number of screen pixels a location map should take. Default outdoor zoom level is 512, so that means that an outdoor location map would take 512x512 pixels on screen if not cropped. For indoor locations, this is the number of screen pixels an indoor location the size of a regular outdoor location would take. Note that outdoor location size is 2^16x2^16 in in-game coordinates.

◆ GameUI_DrawPartySpells()

void GameUI_DrawPartySpells ( )

◆ GameUI_DrawPortraits()

void GameUI_DrawPortraits ( )

◆ GameUI_DrawRightPanel()

void GameUI_DrawRightPanel ( )

◆ GameUI_DrawRightPanelFrames()

void GameUI_DrawRightPanelFrames ( )

◆ GameUI_DrawRightPanelItems()

void GameUI_DrawRightPanelItems ( )

◆ GameUI_DrawTorchlightAndWizardEye()

void GameUI_DrawTorchlightAndWizardEye ( )

◆ GameUI_GetMinimapHintText()

std::string GameUI_GetMinimapHintText ( )

◆ GetConditionDrawColor()

Color GetConditionDrawColor ( Condition  uConditionIdx)

◆ GetCurrentMenuID()

MenuType GetCurrentMenuID ( )

◆ GetDisplayName()

std::string GetDisplayName ( Actor actor)

◆ GetSizeInInventorySlots()

int GetSizeInInventorySlots ( int  uNumPixels)

◆ GetSkillColor()

Color GetSkillColor ( CharacterClass  uPlayerClass,
CharacterSkillType  uPlayerSkillType,
CharacterSkillMastery  skill_mastery 
)
Original binary offset:
0x417AD4

◆ GUI_HandleHotkey()

GUIButton * GUI_HandleHotkey ( PlatformKey  hotkey)

◆ GUI_ReplaceHotkey()

void GUI_ReplaceHotkey ( PlatformKey  oldKey,
PlatformKey  newKey,
char  bFirstCall 
)

◆ GUI_UpdateWindows()

void GUI_UpdateWindows ( )

◆ isHoldingMouseRightButton()

bool isHoldingMouseRightButton ( )
Original binary offset:
0x4637E0

◆ MainMenuUI_LoadFontsAndSomeStuff()

void MainMenuUI_LoadFontsAndSomeStuff ( )

◆ NameAndTitle() [1/4]

std::string NameAndTitle ( NPCData npc)

◆ NameAndTitle() [2/4]

std::string NameAndTitle ( std::string_view  name,
CharacterClass  class_type 
)

◆ NameAndTitle() [3/4]

std::string NameAndTitle ( std::string_view  name,
NpcProfession  profession 
)

◆ NameAndTitle() [4/4]

std::string NameAndTitle ( std::string_view  name,
std::string_view  title 
)

◆ OnPaperdollLeftClick()

void OnPaperdollLeftClick ( )

◆ SetCurrentMenuID()

void SetCurrentMenuID ( MenuType  uMenu)

◆ SetUserInterface()

void SetUserInterface ( PartyAlignment  alignment)

◆ UI_Create()

void UI_Create ( )

◆ UI_GetHealthManaAndOtherQualitiesStringColor()

Color UI_GetHealthManaAndOtherQualitiesStringColor ( int  current_pos,
int  base_pos 
)

◆ UI_OnMouseRightClick()

void UI_OnMouseRightClick ( int  mouse_x,
int  mouse_y 
)

Variable Documentation

◆ current_character_screen_window

enum WindowType current_character_screen_window
extern

◆ current_screen_type

ScreenType current_screen_type
extern

◆ dialogue_ui_x_ok_u

GraphicsImage* dialogue_ui_x_ok_u
extern

◆ dialogue_ui_x_x_u

GraphicsImage* dialogue_ui_x_x_u
extern

◆ game_ui_right_panel_frame

GraphicsImage* game_ui_right_panel_frame
extern

◆ lWindowList

std::list<GUIWindow*> lWindowList
extern

◆ pDialogueWindow

GUIWindow* pDialogueWindow
extern

◆ pGameOverWindow

GUIWindow_GameOver* pGameOverWindow
extern

◆ pGUIWindow_BranchlessDialogue

GUIWindow_BranchlessDialogue* pGUIWindow_BranchlessDialogue
extern

◆ pGUIWindow_CastTargetedSpell

TargetedSpellUI* pGUIWindow_CastTargetedSpell
extern

◆ pGUIWindow_CurrentChest

GUIWindow_Chest* pGUIWindow_CurrentChest
extern

◆ pGUIWindow_CurrentMenu

GUIWindow* pGUIWindow_CurrentMenu
extern

◆ pGUIWindow_ScrollWindow

GUIWindow_MessageScroll* pGUIWindow_ScrollWindow
extern

◆ pPrimaryWindow

GUIWindow* pPrimaryWindow
extern

◆ prev_screen_type

ScreenType prev_screen_type
extern

◆ ptr_507BC8

GUIWindow* ptr_507BC8
extern

◆ sCurrentMenuID

MenuType sCurrentMenuID
extern

◆ ui_ar_dn_dn

GraphicsImage* ui_ar_dn_dn
extern

◆ ui_ar_dn_up

GraphicsImage* ui_ar_dn_up
extern

◆ ui_ar_up_dn

GraphicsImage* ui_ar_up_dn
extern

◆ ui_ar_up_up

GraphicsImage* ui_ar_up_up
extern

◆ ui_book_autonotes_text_color

Color ui_book_autonotes_text_color
extern

◆ ui_book_autonotes_title_color

Color ui_book_autonotes_title_color
extern

◆ ui_book_calendar_day_color

Color ui_book_calendar_day_color
extern

◆ ui_book_calendar_location_color

Color ui_book_calendar_location_color
extern

◆ ui_book_calendar_month_color

Color ui_book_calendar_month_color
extern

◆ ui_book_calendar_moon_color

Color ui_book_calendar_moon_color
extern

◆ ui_book_calendar_time_color

Color ui_book_calendar_time_color
extern

◆ ui_book_calendar_title_color

Color ui_book_calendar_title_color
extern

◆ ui_book_calendar_year_color

Color ui_book_calendar_year_color
extern

◆ ui_book_journal_text_color

Color ui_book_journal_text_color
extern

◆ ui_book_journal_text_shadow

Color ui_book_journal_text_shadow
extern

◆ ui_book_journal_title_color

Color ui_book_journal_title_color
extern

◆ ui_book_map_coordinates_color

Color ui_book_map_coordinates_color
extern

◆ ui_book_map_title_color

Color ui_book_map_title_color
extern

◆ ui_book_quests_text_color

Color ui_book_quests_text_color
extern

◆ ui_book_quests_title_color

Color ui_book_quests_title_color
extern

◆ ui_btn_npc_left

GraphicsImage* ui_btn_npc_left
extern

◆ ui_btn_npc_right

GraphicsImage* ui_btn_npc_right
extern

◆ ui_buttdesc2

GraphicsImage* ui_buttdesc2
extern

◆ ui_buttyes2

GraphicsImage* ui_buttyes2
extern

◆ ui_character_award_color

std::array<Color, 6> ui_character_award_color
extern

◆ ui_character_bonus_text_color

Color ui_character_bonus_text_color
extern

◆ ui_character_bonus_text_color_neg

Color ui_character_bonus_text_color_neg
extern

◆ ui_character_condition_light_color

Color ui_character_condition_light_color
extern

◆ ui_character_condition_moderate_color

Color ui_character_condition_moderate_color
extern

◆ ui_character_condition_normal_color

Color ui_character_condition_normal_color
extern

◆ ui_character_condition_severe_color

Color ui_character_condition_severe_color
extern

◆ ui_character_default_text_color

Color ui_character_default_text_color
extern

◆ ui_character_header_text_color

Color ui_character_header_text_color
extern

◆ ui_character_skill_default_color

Color ui_character_skill_default_color
extern

◆ ui_character_skill_highlight_color

Color ui_character_skill_highlight_color
extern

◆ ui_character_skill_upgradeable_color

Color ui_character_skill_upgradeable_color
extern

◆ ui_character_skillinfo_can_learn

Color ui_character_skillinfo_can_learn
extern

◆ ui_character_skillinfo_can_learn_gm

Color ui_character_skillinfo_can_learn_gm
extern

◆ ui_character_skillinfo_cant_learn

Color ui_character_skillinfo_cant_learn
extern

◆ ui_character_stat_buffed_color

Color ui_character_stat_buffed_color
extern

◆ ui_character_stat_debuffed_color

Color ui_character_stat_debuffed_color
extern

◆ ui_character_stat_default_color

Color ui_character_stat_default_color
extern

◆ ui_character_tooltip_header_default_color

Color ui_character_tooltip_header_default_color
extern

◆ ui_exit_cancel_button_background

GraphicsImage* ui_exit_cancel_button_background
extern

◆ ui_game_character_record_playerbuff_colors

const IndexedArray<Color, CHARACTER_BUFF_FIRST, CHARACTER_BUFF_LAST> ui_game_character_record_playerbuff_colors
extern

◆ ui_game_dialogue_npc_name_color

Color ui_game_dialogue_npc_name_color
extern

◆ ui_game_dialogue_option_highlight_color

Color ui_game_dialogue_option_highlight_color
extern

◆ ui_game_dialogue_option_normal_color

Color ui_game_dialogue_option_normal_color
extern

◆ ui_game_minimap_actor_corpse_color

Color ui_game_minimap_actor_corpse_color
extern

◆ ui_game_minimap_actor_friendly_color

Color ui_game_minimap_actor_friendly_color
extern

◆ ui_game_minimap_actor_hostile_color

Color ui_game_minimap_actor_hostile_color
extern

◆ ui_game_minimap_decoration_color_1

Color ui_game_minimap_decoration_color_1
extern

◆ ui_game_minimap_outline_color

Color ui_game_minimap_outline_color
extern

◆ ui_game_minimap_projectile_color

Color ui_game_minimap_projectile_color
extern

◆ ui_game_minimap_treasure_color

Color ui_game_minimap_treasure_color
extern

◆ ui_gamemenu_keys_action_name_color

Color ui_gamemenu_keys_action_name_color
extern

◆ ui_gamemenu_keys_key_default_color

Color ui_gamemenu_keys_key_default_color
extern

◆ ui_gamemenu_keys_key_selection_blink_color_1

Color ui_gamemenu_keys_key_selection_blink_color_1
extern

◆ ui_gamemenu_keys_key_selection_blink_color_2

Color ui_gamemenu_keys_key_selection_blink_color_2
extern

◆ ui_gamemenu_video_gamma_title_color

Color ui_gamemenu_video_gamma_title_color
extern

◆ ui_house_player_cant_interact_color

Color ui_house_player_cant_interact_color
extern

◆ ui_leather_mm6

GraphicsImage* ui_leather_mm6
extern

◆ ui_leather_mm7

GraphicsImage* ui_leather_mm7
extern

◆ ui_mainmenu_copyright_color

Color ui_mainmenu_copyright_color
extern

◆ window_SpeakInHouse

GUIWindow_House* window_SpeakInHouse
extern

◆ windowManager

WindowManager windowManager
extern