diff --git a/Source/UI/Window/UIControl.cpp b/Source/UI/Window/UIControl.cpp index 7cc1656d..1d7bb8be 100644 --- a/Source/UI/Window/UIControl.cpp +++ b/Source/UI/Window/UIControl.cpp @@ -505,6 +505,14 @@ void CUIStaticImage::Slot53(int resolveSkin) { this->image = CResPtr(this->LoadBitmapResource(this->imageName, resolveSkin)); } +// OFFSET: 0x009F0940 +// FUNCTION: fn_14668 +void CUIStaticImage::SetImage(const std::string& name) { + this->imageName = name; + this->Slot53(0); + this->Invalidate(); +} + // OFFSET: 0x009F1BF0 // FUNCTION: fn_14700 void CUITitleBar::Resize(int width, int height) { diff --git a/Source/UI/Window/UIControl.h b/Source/UI/Window/UIControl.h index a82f7418..c6185808 100644 --- a/Source/UI/Window/UIControl.h +++ b/Source/UI/Window/UIControl.h @@ -129,6 +129,8 @@ public: void Paint() override; void Slot53(int resolveSkin) override; + void SetImage(const std::string& name); + /* 0080 */ CResPtr image; /* 0084 */ std::string tooltip; /* 009C */ unsigned char transparent;