| OpenEnroth 9cf7432
    | 
#include <array>#include <algorithm>#include <string>#include <utility>#include "Engine/Engine.h"#include "Engine/AssetsManager.h"#include "Engine/EngineIocContainer.h"#include "Engine/Graphics/Sprites.h"#include "Engine/Graphics/Viewport.h"#include "Engine/Graphics/Vis.h"#include "Engine/Graphics/Image.h"#include "Engine/Graphics/Renderer/Renderer.h"#include "Engine/Localization.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/Objects/CharacterEnumFunctions.h"#include "Engine/Objects/MonsterEnumFunctions.h"#include "Engine/Random/Random.h"#include "Engine/Tables/ItemTable.h"#include "Engine/Tables/PortraitFrameTable.h"#include "Engine/Spells/Spells.h"#include "Engine/Party.h"#include "Engine/MapEnumFunctions.h"#include "Engine/Time/Timer.h"#include "Engine/Conditions.h"#include "Engine/Objects/ActorEnumFunctions.h"#include "Engine/Spells/SpellEnumFunctions.h"#include "Io/Mouse.h"#include "GUI/GUIButton.h"#include "GUI/GUIMessageQueue.h"#include "GUI/UI/Books/MapBook.h"#include "GUI/UI/UICharacter.h"#include "GUI/UI/UIPopup.h"#include "ItemGrid.h"#include "GUI/UI/UIGame.h"#include "GUI/UI/UIStatusBar.h"#include "GUI/UI/UIChest.h"#include "GUI/UI/Houses/Shops.h"#include "Media/Audio/AudioPlayer.h"#include "Library/Logger/Logger.h"| Classes | |
| struct | stat_coord | 
| Functions | |
| void | Inventory_ItemPopupAndAlchemy () | 
| Color | GetSpellColor (SpellId spellId) | 
| uint64_t | GetExperienceRequiredForLevel (int level) | 
| static void | CharacterUI_DrawTooltip (std::string_view title, std::string_view content) | 
| void | DrawPopupWindow (unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight) | 
| void | GameUI_DrawItemInfo (Item *inspect_item) | 
| std::pair< int, int > | MonsterPopup_Draw (unsigned int uActorID, GUIWindow *pWindow) | 
| std::string | CharacterUI_GetSkillDescText (int uPlayerID, Skill uPlayerSkillType) | 
| Generating message for skill description popup.  More... | |
| void | CharacterUI_SkillsTab_ShowHint () | 
| void | CharacterUI_StatsTab_ShowHint () | 
| void | DrawSpellDescriptionPopup (SpellId spell_id) | 
| static void | drawBuffPopupWindow () | 
| void | showSpellbookInfo (ItemId spellbook) | 
| void | ShowPopupShopSkills () | 
| void | ShowPopupShopItem () | 
| void | GameUI_CharacterQuickRecord_Draw (GUIWindow *window, int characterIndex) | 
| void | GameUI_DrawNPCPopup (int _this) | 
| void | UI_OnMouseRightClick (Pointi mousePos) | 
| 
 | static | 
| std::string CharacterUI_GetSkillDescText | ( | int | uPlayerID, | 
| Skill | uPlayerSkillType | ||
| ) | 
Generating message for skill description popup.
| uPlayerID | Character identifier. | 
| uPlayerSkillType | Skill type identifier. | 
| void CharacterUI_SkillsTab_ShowHint | ( | ) | 
| void CharacterUI_StatsTab_ShowHint | ( | ) | 
| 
 | static | 
| void DrawPopupWindow | ( | unsigned int | uX, | 
| unsigned int | uY, | ||
| unsigned int | uWidth, | ||
| unsigned int | uHeight | ||
| ) | 
| void DrawSpellDescriptionPopup | ( | SpellId | spell_id | ) | 
| void GameUI_CharacterQuickRecord_Draw | ( | GUIWindow * | window, | 
| int | characterIndex | ||
| ) | 
| void GameUI_DrawItemInfo | ( | Item * | inspect_item | ) | 
| void GameUI_DrawNPCPopup | ( | int | _this | ) | 
| uint64_t GetExperienceRequiredForLevel | ( | int | level | ) | 
| void Inventory_ItemPopupAndAlchemy | ( | ) | 
| std::pair< int, int > MonsterPopup_Draw | ( | unsigned int | uActorID, | 
| GUIWindow * | pWindow | ||
| ) | 
Render the monster info popup
| uActorID | ID of the actor to show info for | 
| pWindow | The window to render into, or nullto measure content only | 
Geometry hardcoded constants
| void ShowPopupShopItem | ( | ) | 
| void ShowPopupShopSkills | ( | ) | 
| void showSpellbookInfo | ( | ItemId | spellbook | ) | 
| void UI_OnMouseRightClick | ( | Pointi | mousePos | ) | 
| bool holdingMouseRightButton = false | 
| bool identifyOrRepairReactionPlayed = false | 
| GraphicsImage* messagebox_border_bottom = nullptr | 
| GraphicsImage* messagebox_border_left = nullptr | 
| GraphicsImage* messagebox_border_right = nullptr | 
| GraphicsImage* messagebox_border_top = nullptr | 
| GraphicsImage* messagebox_corner_w = nullptr | 
| GraphicsImage* messagebox_corner_x = nullptr | 
| GraphicsImage* messagebox_corner_y = nullptr | 
| GraphicsImage* messagebox_corner_z = nullptr | 
| IndexedArray<int, MONSTER_TYPE_FIRST, MONSTER_TYPE_LAST> monster_popup_y_offsets | 
| 
 | staticconstexpr | 
| 
 | staticconstexpr | 
| GraphicsImage* parchment = nullptr | 
| bool rightClickItemActionPerformed = false | 
| std::array<int16_t, 4> RightClickPortraitXmax = {{83, 198, 312, 423}} | 
| std::array<int16_t, 4> RightClickPortraitXmin = {{20, 131, 242, 357}} | 
| std::array<stat_coord, 26> stat_string_coord |