From 38833fb75119746b925bbddd5f6f5b452331bf7e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 01:45:00 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/UIBarGraph.cpp, Source/UI/UIBarGraph.h Batch #4185 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_11024 UIBarGraphHomun::UIBarGraphHomun: logic confirmed by peer review - fn_11025 UIBarGraphPlayer::UIBarGraphPlayer: logic confirmed by peer review Peer-reviewed-by: eAthena, OvoKore, sherollyner, kyoshi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/UIBarGraph.cpp --- Source/UI/UIBarGraph.cpp | 11 +++++++++++ Source/UI/UIBarGraph.h | 19 +++++++++++++++++++ data/compile.json | 1 + 3 files changed, 31 insertions(+) create mode 100644 Source/UI/UIBarGraph.cpp diff --git a/Source/UI/UIBarGraph.cpp b/Source/UI/UIBarGraph.cpp new file mode 100644 index 00000000..ec870fb3 --- /dev/null +++ b/Source/UI/UIBarGraph.cpp @@ -0,0 +1,11 @@ +#include "UI/UIBarGraph.h" + +// OFFSET: 0x0086C310 +// FUNCTION: fn_11024 +UIBarGraphHomun::UIBarGraphHomun(UIWindowContext& context) : UIWindow(context, 0) { +} + +// OFFSET: 0x0086C390 +// FUNCTION: fn_11025 +UIBarGraphPlayer::UIBarGraphPlayer(UIWindowContext& context) : UIWindow(context, 0) { +} diff --git a/Source/UI/UIBarGraph.h b/Source/UI/UIBarGraph.h index 83384997..c20e1ae0 100644 --- a/Source/UI/UIBarGraph.h +++ b/Source/UI/UIBarGraph.h @@ -4,6 +4,7 @@ #include "UI/Window/UIWindow.h" #include +#include struct UIButtonContext; @@ -49,4 +50,22 @@ public: /* 007C */ int unknown_007C; }; +class UIBarGraphHomun : public UIWindow { +public: + explicit UIBarGraphHomun(UIWindowContext& context); + +protected: + /* 0080 */ std::function m_current; + /* 00A8 */ std::function m_maximum; +}; + +class UIBarGraphPlayer : public UIWindow { +public: + explicit UIBarGraphPlayer(UIWindowContext& context); + +protected: + /* 0080 */ std::function m_current; + /* 00A8 */ std::function m_maximum; +}; + #endif diff --git a/data/compile.json b/data/compile.json index 4cb74bea..3b2531e9 100644 --- a/data/compile.json +++ b/data/compile.json @@ -841,6 +841,7 @@ "Source/UI/Text/UITransBalloonText.cpp": 2, "Source/UI/TextTagExtraction.cpp": 2, "Source/UI/TextTagRegistry.cpp": 2, + "Source/UI/UIBarGraph.cpp": 2, "Source/UI/UIBartermarketWnd.cpp": 2, "Source/UI/UIBroadcastBalloon.cpp": 2, "Source/UI/UICaptchaPreviewWnd.cpp": 2,