From 09ecea5519df63e256c59249ef9d33b7b52f1c1d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 29 Oct 2026 22:51:00 +0000 Subject: [PATCH] Decompile fn_14668 (CUIStaticImage::SetImage) Batch #3576 by superintelligence: 0 byte-identical, 1 confirmed by peer review. - fn_14668 CUIStaticImage::SetImage: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, ntrl, meitogi, willerthal Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIControl.cpp | 8 ++++++++ Source/UI/Window/UIControl.h | 2 ++ 2 files changed, 10 insertions(+) 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;