OpenEnroth 73e68f7
|
#include <map>
#include <algorithm>
#include <string>
#include "GUI/UI/UIGame.h"
#include "Application/Game.h"
#include "Engine/AssetsManager.h"
#include "Engine/Engine.h"
#include "Engine/EngineGlobals.h"
#include "Engine/Events/Processor.h"
#include "Engine/Graphics/BSPModel.h"
#include "Engine/Objects/DecorationList.h"
#include "Engine/Objects/Decoration.h"
#include "Engine/Graphics/Outdoor.h"
#include "Engine/Graphics/Indoor.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Graphics/Sprites.h"
#include "Engine/Graphics/Viewport.h"
#include "Engine/Graphics/Vis.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Localization.h"
#include "Engine/MapInfo.h"
#include "Engine/Objects/Actor.h"
#include "Engine/Objects/Chest.h"
#include "Engine/Objects/ObjectList.h"
#include "Engine/Objects/SpriteObject.h"
#include "Engine/Objects/NPC.h"
#include "Engine/OurMath.h"
#include "Engine/Party.h"
#include "Engine/Spells/Spells.h"
#include "Engine/Tables/IconFrameTable.h"
#include "Engine/Tables/PortraitFrameTable.h"
#include "Engine/Time/Timer.h"
#include "Engine/TurnEngine/TurnEngine.h"
#include "GUI/GUIButton.h"
#include "GUI/GUIWindow.h"
#include "GUI/GUIMessageQueue.h"
#include "GUI/UI/Books/LloydsBook.h"
#include "GUI/UI/Books/TownPortalBook.h"
#include "GUI/UI/UICharacter.h"
#include "GUI/UI/UIHouses.h"
#include "GUI/UI/UIStatusBar.h"
#include "GUI/UI/UISpellbook.h"
#include "Io/InputAction.h"
#include "Io/Mouse.h"
#include "Utility/Math/TrigLut.h"
#include "Library/Logger/Logger.h"
Macros | |
#define | RELEASE(img) |
Functions | |
void | GameUI_LoadPlayerPortraitsAndVoices () |
void | GameUI_ReloadPlayerPortraits (int player_id, int face_id) |
static Color | GameMenuUI_GetKeyBindingColor (InputAction action) |
void | GameUI_OnPlayerPortraitLeftClick (int uPlayerID) |
std::string | GameUI_GetMinimapHintText () |
void | GameUI_DrawRightPanelItems () |
void | GameUI_DrawFoodAndGold () |
void | GameUI_DrawLifeManaBars () |
void | GameUI_DrawRightPanel () |
void | GameUI_DrawRightPanelFrames () |
void | GameUI_WritePointedObjectStatusString () |
void | GameUI_DrawCharacterSelectionFrame () |
void | GameUI_DrawPartySpells () |
void | GameUI_DrawPortraits () |
void | GameUI_DrawMinimap (const Recti &rect, int zoom) |
void | GameUI_DrawTorchlightAndWizardEye () |
void | GameUI_DrawHiredNPCs () |
Color | UI_GetHealthManaAndOtherQualitiesStringColor (int actual_value, int base_value) |
Color | GetConditionDrawColor (Condition uConditionIdx) |
std::string | GetReputationString (int reputation) |
void | GameUI_handleHintMessage (UIMessageType type, int param) |
#define RELEASE | ( | img | ) |
|
static |
void GameUI_DrawCharacterSelectionFrame | ( | ) |
void GameUI_DrawFoodAndGold | ( | ) |
void GameUI_DrawHiredNPCs | ( | ) |
void GameUI_DrawLifeManaBars | ( | ) |
void GameUI_DrawMinimap | ( | const Recti & | rect, |
int | zoom | ||
) |
rect | Screen rect to draw the minimap at. |
zoom | The 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. |
void GameUI_DrawPartySpells | ( | ) |
void GameUI_DrawPortraits | ( | ) |
void GameUI_DrawRightPanel | ( | ) |
void GameUI_DrawRightPanelFrames | ( | ) |
void GameUI_DrawRightPanelItems | ( | ) |
void GameUI_DrawTorchlightAndWizardEye | ( | ) |
std::string GameUI_GetMinimapHintText | ( | ) |
void GameUI_handleHintMessage | ( | UIMessageType | type, |
int | param | ||
) |
void GameUI_LoadPlayerPortraitsAndVoices | ( | ) |
void GameUI_OnPlayerPortraitLeftClick | ( | int | uPlayerID | ) |
void GameUI_ReloadPlayerPortraits | ( | int | player_id, |
int | face_id | ||
) |
void GameUI_WritePointedObjectStatusString | ( | ) |
std::string GetReputationString | ( | int | reputation | ) |
Color UI_GetHealthManaAndOtherQualitiesStringColor | ( | int | actual_value, |
int | base_value | ||
) |
bool bFlashAutonotesBook |
bool bFlashHistoryBook |
bool bFlashQuestBook |
|
static |
|
static |
std::array<int, 8> BtnTurnCoord |
|
extern |
|
extern |
GraphicsImage* game_ui_bar_blue = nullptr |
GraphicsImage* game_ui_bar_green = nullptr |
GraphicsImage* game_ui_bar_red = nullptr |
GraphicsImage* game_ui_bar_yellow = nullptr |
GraphicsImage* game_ui_bottomframe = nullptr |
GraphicsImage* game_ui_btn_cast = nullptr |
GraphicsImage* game_ui_btn_quickref = nullptr |
GraphicsImage* game_ui_btn_rest = nullptr |
GraphicsImage* game_ui_btn_settings = nullptr |
GraphicsImage* game_ui_btn_zoomin = nullptr |
GraphicsImage* game_ui_btn_zoomout = nullptr |
GraphicsImage* game_ui_dialogue_background = nullptr |
GraphicsImage* game_ui_evtnpc = nullptr |
GraphicsImage* game_ui_leftframe = nullptr |
GraphicsImage* game_ui_menu_controls = nullptr |
GraphicsImage* game_ui_menu_load = nullptr |
GraphicsImage* game_ui_menu_new = nullptr |
GraphicsImage* game_ui_menu_options = nullptr |
GraphicsImage* game_ui_menu_options_video_background = nullptr |
GraphicsImage* game_ui_menu_options_video_bloodsplats = nullptr |
GraphicsImage* game_ui_menu_options_video_coloredlights = nullptr |
std::array<GraphicsImage *, 10> game_ui_menu_options_video_gamma_positions |
GraphicsImage* game_ui_menu_options_video_tinting = nullptr |
GraphicsImage* game_ui_menu_quit = nullptr |
GraphicsImage* game_ui_menu_resume = nullptr |
GraphicsImage* game_ui_menu_save = nullptr |
GraphicsImage* game_ui_minimap_compass = nullptr |
std::array<GraphicsImage *, 8> game_ui_minimap_dirs |
GraphicsImage* game_ui_minimap_frame = nullptr |
GraphicsImage* game_ui_monster_hp_background = nullptr |
GraphicsImage* game_ui_monster_hp_border_left = nullptr |
GraphicsImage* game_ui_monster_hp_border_right = nullptr |
GraphicsImage* game_ui_monster_hp_green = nullptr |
GraphicsImage* game_ui_monster_hp_red = nullptr |
GraphicsImage* game_ui_monster_hp_yellow = nullptr |
std::array<GraphicsImage *, 5> game_ui_options_controls |
GraphicsImage* game_ui_player_alert_green = nullptr |
GraphicsImage* game_ui_player_alert_red = nullptr |
GraphicsImage* game_ui_player_alert_yellow = nullptr |
GraphicsImage* game_ui_player_face_dead = nullptr |
GraphicsImage* game_ui_player_face_eradicated = nullptr |
std::array<std::array<GraphicsImage *, 56>, 4> game_ui_player_faces |
GraphicsImage* game_ui_player_selection_frame = nullptr |
GraphicsImage* game_ui_playerbuff_bless = nullptr |
GraphicsImage* game_ui_playerbuff_hammerhands = nullptr |
GraphicsImage* game_ui_playerbuff_pain_reflection = nullptr |
GraphicsImage* game_ui_playerbuff_preservation = nullptr |
GraphicsImage* game_ui_rightframe = nullptr |
GraphicsImage* game_ui_statusbar = nullptr |
GraphicsImage* game_ui_tome_autonotes = nullptr |
GraphicsImage* game_ui_tome_calendar = nullptr |
GraphicsImage* game_ui_tome_maps = nullptr |
GraphicsImage* game_ui_tome_quests = nullptr |
GraphicsImage* game_ui_tome_storyline = nullptr |
GraphicsImage* game_ui_topframe = nullptr |
int game_ui_torchLight = -1 |
int game_ui_wizardEye = -1 |
|
extern |
OptionsMenuSkin options_menu_skin |
std::array<int, 4> pHealthBarPos = {{23, 138, 251, 366}} |
|
extern |
std::array<unsigned int, 2> pHiredNPCsIconsOffsetsX = {{489, 559}} |
std::array<unsigned int, 2> pHiredNPCsIconsOffsetsY = {{152, 152}} |
std::array<int, 4> pManaBarPos = {{102, 217, 331, 447}} |
std::array<uint8_t, 14> pPartySpellbuffsUI_smthns |
std::array<std::array<int, 2>, 14> pPartySpellbuffsUI_XYs |
std::array<PartyBuff, 14> spellBuffsAtRightPanel |