diff --git a/Source/UI/Text/UIStaticText_LF.cpp b/Source/UI/Text/UIStaticText_LF.cpp index 6373ab3b..a452d24c 100644 --- a/Source/UI/Text/UIStaticText_LF.cpp +++ b/Source/UI/Text/UIStaticText_LF.cpp @@ -1,5 +1,25 @@ #include "UI/Text/UIStaticText_LF.h" +#include +#include + +// OFFSET: 0x0094ECF0 +// FUNCTION: fn_12915 +void UIStaticText_LF::Paint() { + this->ClearSurface(0xFFFF00FF); + this->sub_A84400( + 0, 0, + *reinterpret_cast(reinterpret_cast(this) + 0x7C), + this->geometry.width, + *reinterpret_cast(reinterpret_cast(this) + 0x94), + *reinterpret_cast(reinterpret_cast(this) + 0x98), + *reinterpret_cast(reinterpret_cast(this) + 0x9C), + *reinterpret_cast(reinterpret_cast(this) + 0xA0), + *reinterpret_cast(reinterpret_cast(this) + 0xA4), + *reinterpret_cast(reinterpret_cast(this) + 0xA8) + ); +} + // OFFSET: 0x0094EEA0 // FUNCTION: fn_12920 void UIStaticText_LF::Slot25(int x, int y) { diff --git a/Source/UI/Text/UIStaticText_LF.h b/Source/UI/Text/UIStaticText_LF.h index a13d8fbb..0700312d 100644 --- a/Source/UI/Text/UIStaticText_LF.h +++ b/Source/UI/Text/UIStaticText_LF.h @@ -5,6 +5,7 @@ class UIStaticText_LF : public UIWindow { public: + void Paint() override; void Slot25(int x, int y) override; void Slot31(int x, int y) override; void Slot35(int delta) override; diff --git a/Source/UI/Window/UIWindow.h b/Source/UI/Window/UIWindow.h index 18321e7f..f768e1ea 100644 --- a/Source/UI/Window/UIWindow.h +++ b/Source/UI/Window/UIWindow.h @@ -152,6 +152,10 @@ public: ); void DrawFormattedText(int x, int y, const std::string& text, int width, int align, int family, int height, std::uint32_t color, unsigned char bold); void DrawEmboldenedText(int x, int y, const char* text, std::uint32_t color, std::uint32_t secondColor, int bytes, int family, int height); + int sub_A84400( + int x, int y, const std::string& text, int width, int lineSpacing, int align, int family, int height, + std::uint32_t color, unsigned char bold + ); void FlushPrimitives(RenderQueues& queues, bool depthAlpha, float depthStart, float depthEnd); void FillSurface(std::uint32_t color, const tagRECT* rectangle); void DrawBitmapScaled(int x, int y, int width, int height, const BitmapImage* image, int option);