OpenEnroth 73e68f7
|
#include "UICharacter.h"
#include <cstdio>
#include <algorithm>
#include <vector>
#include <string>
#include <array>
#include <unordered_map>
#include "Engine/AssetsManager.h"
#include "Engine/Engine.h"
#include "Engine/EngineGlobals.h"
#include "Engine/Objects/CharacterEnumFunctions.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Graphics/Viewport.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Localization.h"
#include "Engine/Party.h"
#include "Engine/Spells/CastSpellInfo.h"
#include "Engine/Time/Timer.h"
#include "Engine/Tables/ItemTable.h"
#include "Engine/Tables/AwardTable.h"
#include "Engine/Spells/Spells.h"
#include "Engine/Data/AwardEnums.h"
#include "GUI/GUIWindow.h"
#include "GUI/GUIButton.h"
#include "GUI/GUIMessageQueue.h"
#include "GUI/UI/ItemGrid.h"
#include "GUI/UI/UIInventory.h"
#include "Io/Mouse.h"
#include "Media/Audio/AudioPlayer.h"
#include "Utility/MapAccess.h"
Functions | |
void | CharacterUI_LoadPaperdollTextures () |
void | WetsuitOn (int uPlayerID) |
void | WetsuitOff (int uPlayerID) |
void | set_default_ui_skin_colors () |
static int | drawSkillTable (Character *player, int x, int y, const std::initializer_list< CharacterSkillType > skill_list, int right_margin, std::string_view skill_group_name) |
int | GetSizeInInventorySlots (int uNumPixels) |
void | draw_leather () |
void | CharacterUI_DrawPaperdoll (Character *player) |
void | CharacterUI_InventoryTab_Draw (Character *player, bool Cover_Strip) |
static void | CharacterUI_DrawItem (int x, int y, ItemGen *item, int id, GraphicsImage *item_texture, bool doZDraw) |
void | CharacterUI_DrawPaperdollWithRingOverlay (Character *player) |
void | OnPaperdollLeftClick () |
void | CharacterUI_ReleaseButtons () |
bool | ringscreenactive () |
|
static |
void CharacterUI_DrawPaperdoll | ( | Character * | player | ) |
void CharacterUI_DrawPaperdollWithRingOverlay | ( | Character * | player | ) |
void CharacterUI_InventoryTab_Draw | ( | Character * | player, |
bool | Cover_Strip | ||
) |
void CharacterUI_LoadPaperdollTextures | ( | ) |
void CharacterUI_ReleaseButtons | ( | ) |
void draw_leather | ( | ) |
|
static |
int GetSizeInInventorySlots | ( | int | uNumPixels | ) |
void OnPaperdollLeftClick | ( | ) |
bool ringscreenactive | ( | ) |
void set_default_ui_skin_colors | ( | ) |
void WetsuitOff | ( | int | uPlayerID | ) |
Prepare textures of character doll with wetsuit off.
uPlayerID | ID of player, 1-based. |
void WetsuitOn | ( | int | uPlayerID | ) |
Prepare textures of character doll with wetsuit on.
uPlayerID | ID of player, 1-based. |
int bRingsShownInCharScreen |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
const int paperdoll_Armor_Coord[4][17][2] |
const std::unordered_map<ItemId, int> paperdoll_armor_indexByType |
GraphicsImage* paperdoll_armor_texture[4][17][3] |
const std::unordered_map<int, ItemId> paperdoll_armor_typeByIndex = inverted(paperdoll_armor_indexByType) |
const int paperdoll_Belt[4][7][2] |
const std::unordered_map<ItemId, int> paperdoll_belt_indexByType |
GraphicsImage* paperdoll_belt_texture[4][7] |
const std::unordered_map<int, ItemId> paperdoll_belt_typeByIndex = inverted(paperdoll_belt_indexByType) |
const int paperdoll_Boot[4][7][2] |
const std::unordered_map<ItemId, int> paperdoll_boots_indexByType |
GraphicsImage* paperdoll_boots_texture[4][6] |
const std::unordered_map<int, ItemId> paperdoll_boots_typeByIndex = inverted(paperdoll_boots_indexByType) |
const int paperdoll_Cloak[4][10][2] |
GraphicsImage* paperdoll_cloak_collar_texture[4][10] |
const std::unordered_map<ItemId, int> paperdoll_cloak_indexByType |
GraphicsImage* paperdoll_cloak_texture[4][10] |
const std::unordered_map<int, ItemId> paperdoll_cloak_typeByIndex = inverted(paperdoll_cloak_indexByType) |
const int paperdoll_CloakCollar[4][10][2] |
GraphicsImage* paperdoll_dbods[5] |
std::array<GraphicsImage *, 16> paperdoll_dbrds |
GraphicsImage* paperdoll_dlads[4] |
GraphicsImage* paperdoll_dlaus[5] |
GraphicsImage* paperdoll_dlhs[4] |
GraphicsImage* paperdoll_dlhus[4] |
GraphicsImage* paperdoll_drhs[4] |
GraphicsImage* paperdoll_flying_feet[22] |
const int paperdoll_Helm[4][16][2] |
const std::unordered_map<ItemId, int> paperdoll_helm_indexByType |
GraphicsImage* paperdoll_helm_texture[2][16] |
const std::unordered_map<int, ItemId> paperdoll_helm_typeByIndex = inverted(paperdoll_helm_indexByType) |
const int paperdoll_shoulder_coord[4][17][2] |
const int paperdoll_shoulder_second_coord[4][17][2] |
const int paperdoll_Weapon[4][16][2] |
const int pPaperdoll_Beards[4] |
int pPaperdoll_BodyX = 481 |
int pPaperdoll_BodyY = 0 |
const int pPaperdoll_LeftHand[4][2] |
const int pPaperdoll_RightHand[4][2] |
const int pPaperdoll_SecondLeftHand[4][2] |
const int pPaperdollLeftEmptyHand[4][2] |
int savedInventoryLeftClickButtonW |
int savedInventoryLeftClickButtonX |
int savedInventoryLeftClickButtonY |
int savedInventoryLeftClickButtonZ |
|
static |
Color ui_book_autonotes_text_color |
Color ui_book_autonotes_title_color |
Color ui_book_calendar_day_color |
Color ui_book_calendar_location_color |
Color ui_book_calendar_month_color |
Color ui_book_calendar_moon_color |
Color ui_book_calendar_time_color |
Color ui_book_calendar_title_color |
Color ui_book_calendar_year_color |
Color ui_book_journal_text_color |
Color ui_book_journal_text_shadow |
Color ui_book_journal_title_color |
Color ui_book_map_coordinates_color |
Color ui_book_map_title_color |
Color ui_book_quests_text_color |
Color ui_book_quests_title_color |
std::array<Color, 6> ui_character_award_color |
GraphicsImage* ui_character_awards_background = nullptr |
Color ui_character_bonus_text_color |
Color ui_character_bonus_text_color_neg |
Color ui_character_condition_light_color |
Color ui_character_condition_moderate_color |
Color ui_character_condition_normal_color |
Color ui_character_condition_severe_color |
Color ui_character_default_text_color |
Color ui_character_header_text_color |
GraphicsImage* ui_character_inventory_background = nullptr |
GraphicsImage* ui_character_inventory_background_strip = nullptr |
GraphicsImage* ui_character_inventory_magnification_glass = nullptr |
GraphicsImage* ui_character_inventory_paperdoll_background = nullptr |
GraphicsImage* ui_character_inventory_paperdoll_rings_background = nullptr |
Color ui_character_skill_default_color |
Color ui_character_skill_highlight_color |
Color ui_character_skill_upgradeable_color |
Color ui_character_skillinfo_can_learn |
Color ui_character_skillinfo_can_learn_gm |
Color ui_character_skillinfo_cant_learn |
GraphicsImage* ui_character_skills_background = nullptr |
Color ui_character_stat_buffed_color |
Color ui_character_stat_debuffed_color |
Color ui_character_stat_default_color |
GraphicsImage* ui_character_stats_background = nullptr |
Color ui_character_tooltip_header_default_color |
Color ui_game_dialogue_npc_name_color |
Color ui_game_dialogue_option_highlight_color |
Color ui_game_dialogue_option_normal_color |
Color ui_game_minimap_actor_corpse_color |
Color ui_game_minimap_actor_friendly_color |
Color ui_game_minimap_actor_hostile_color |
Color ui_game_minimap_decoration_color_1 |
Color ui_game_minimap_outline_color |
Color ui_game_minimap_projectile_color |
Color ui_game_minimap_treasure_color |
Color ui_gamemenu_keys_action_name_color |
Color ui_gamemenu_keys_key_default_color |
Color ui_gamemenu_keys_key_selection_blink_color_1 |
Color ui_gamemenu_keys_key_selection_blink_color_2 |
Color ui_gamemenu_video_gamma_title_color |
Color ui_house_player_cant_interact_color |
Color ui_mainmenu_copyright_color |