- Fix RsSet render-target upload check (indoor rendering corruption) - Minimap tracking/hover, world map refresh - Bag/bar item moves, swaps, equip, item sounds, spell on cursor - Character info stats, titles, model preview - Unit/player names (PLAYERNAMEDESC render, name strings, raid icons) - Nameplates: CGNamePlateFrame, CGSimpleHealthBar, unit glue, SmartScreenRect overlap solver - Floating combat text: WORLDTEXTSTRING, render batch, PlayerName text slots - Fix unescaped raid-icon texture path in PlayerNameInitialize Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
63 lines
1.8 KiB
C++
63 lines
1.8 KiB
C++
#ifndef WOW_SOURCE_GAME_GAMECLIENT_WORLDTEXT_H
|
|
#define WOW_SOURCE_GAME_GAMECLIENT_WORLDTEXT_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Base/Handle.h"
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
#include "Engine/Source/Tempest/CImVector.h"
|
|
|
|
struct CGxString;
|
|
class CTexture;
|
|
|
|
struct WORLDTEXTTYPE {
|
|
/* 0000 */ float m_ascendDistance;
|
|
/* 0004 */ uint32_t m_fadeInTime;
|
|
/* 0008 */ uint32_t m_fadeOutStart;
|
|
/* 000C */ uint32_t m_duration;
|
|
/* 0010 */ float m_startHeight;
|
|
/* 0014 */ float m_endHeight;
|
|
/* 0018 */ CImVector m_color;
|
|
};
|
|
|
|
struct SWorldTextIcon {
|
|
/* 0000 */ C3Vector m_position;
|
|
/* 000C */ float m_size;
|
|
/* 0010 */ CImVector m_color;
|
|
/* 0014 */ CTexture* m_texture;
|
|
};
|
|
|
|
struct WORLDTEXTSTRING : public CHandleObject {
|
|
/* 0008 */ uint32_t m_type;
|
|
/* 000C */ float m_halfWidth;
|
|
/* 0010 */ float m_halfHeight;
|
|
/* 0014 */ C3Vector m_position;
|
|
/* 0020 */ CImVector m_color;
|
|
/* 0024 */ uint32_t m_startTime;
|
|
/* 0028 */ CGxString* m_string;
|
|
/* 002C */ float m_fontHeight;
|
|
/* 0030 */ C3Vector m_screenPosition;
|
|
/* 003C */ char m_text[64];
|
|
/* 007C */ int32_t m_pvpRank;
|
|
|
|
~WORLDTEXTSTRING() override;
|
|
|
|
WORLDTEXTSTRING();
|
|
void AddIcon();
|
|
float CalculateAscendOffset(uint32_t elapsed);
|
|
void CalculateNewColor(uint32_t elapsed);
|
|
void CalculateTextHeight(uint32_t elapsed);
|
|
void RecreateString();
|
|
bool Update(uint32_t time);
|
|
};
|
|
|
|
void WorldTextAddIcon(WORLDTEXTSTRING* text);
|
|
WORLDTEXTSTRING* WorldTextCreate(uint32_t type, const C3Vector& position, const char* text, const CImVector* color, const int32_t* pvpRank);
|
|
void WorldTextDelete(WORLDTEXTSTRING* text);
|
|
float WorldTextGetAscendDistance(uint32_t type);
|
|
uint32_t WorldTextGetType(WORLDTEXTSTRING* text);
|
|
void WorldTextRenderBatch();
|
|
bool WorldTextUpdate(WORLDTEXTSTRING* text, uint32_t time);
|
|
|
|
#endif
|