Decompile 2 functions in Source/UI/Items/UIItemParamChangeDisplayWnd.cpp, Source/UI/Items/UIItemParamChangeDisplayWnd.h, ...

Batch #6494 by Montyla: 0 byte-identical, 2 confirmed by peer review.

- fn_11947 UIItemParamChangeDisplayWnd::UIItemParamChangeDisplayWnd: logic confirmed by peer review
- fn_11954 UIMinimapZoomWnd::UIMinimapZoomWnd: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, superintelligence, SapitoSucio, pedrao
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/Items/UIItemParamChangeDisplayWnd.cpp, Source/UI/Dialogs/UIMinimapZoomWnd.cpp
This commit is contained in:
ragnarok-clanker 2026-10-31 01:06:04 +00:00
commit 57203465fe
5 changed files with 52 additions and 1 deletions

View file

@ -0,0 +1,10 @@
#include "UI/Dialogs/UIMinimapZoomWnd.h"
// OFFSET: 0x008C8460
// FUNCTION: fn_11954
UIMinimapZoomWnd::UIMinimapZoomWnd()
: UIFrameWnd(*reinterpret_cast<UIWindowContext*>(nullptr), *reinterpret_cast<UIFrameContext*>(nullptr), 0),
m_zoom(),
unknown_00BC(0),
unknown_00C0(0),
unknown_00C4(0) {}

View file

@ -3,14 +3,22 @@
#include "UI/Window/UIFrameWnd.h"
#include <map>
struct UIButtonContext;
class UIMinimapZoomWnd : public UIFrameWnd {
public:
UIMinimapZoomWnd();
bool Slot08() override;
void Paint() override;
void Slot25(int x, int y) override;
/* 00B4 */ std::map<int, int> m_zoom;
/* 00BC */ int unknown_00BC;
/* 00C0 */ int unknown_00C0;
/* 00C4 */ int unknown_00C4;
protected:
UIButtonContext* m_controls;
};

View file

@ -0,0 +1,17 @@
#include "UI/Items/UIItemParamChangeDisplayWnd.h"
// OFFSET: 0x008C7FC0
// FUNCTION: fn_11947
UIItemParamChangeDisplayWnd::UIItemParamChangeDisplayWnd()
: UIFrameWnd(*reinterpret_cast<UIWindowContext*>(nullptr), *reinterpret_cast<UIFrameContext*>(nullptr), 0),
m_before(0),
m_after(0),
m_beforeSecond(0),
m_afterSecond(0),
unknown_00C4(0),
unknown_00C8(0),
unknown_00CC(0),
unknown_00D0(0),
m_label("512"),
unknown_00EC(0),
m_placement(nullptr) {}

View file

@ -4,16 +4,26 @@
#include "Contents/Items/ItemInfo.h"
#include "UI/Window/UIFrameWnd.h"
#include <cstddef>
#include <string>
struct UIButtonContext;
struct WindowPlacement;
class UIItemParamChangeDisplayWnd : public UIFrameWnd {
public:
UIItemParamChangeDisplayWnd();
/* 00B4 */ int m_before;
/* 00B8 */ int m_after;
/* 00BC */ int m_beforeSecond;
/* 00C0 */ int m_afterSecond;
/* 00C4 */ unsigned char unknown_00C4[0x2C];
/* 00C4 */ int unknown_00C4;
/* 00C8 */ int unknown_00C8;
/* 00CC */ int unknown_00CC;
/* 00D0 */ int unknown_00D0;
/* 00D4 */ std::string m_label;
/* 00EC */ int unknown_00EC;
/* 00F0 */ WindowPlacement* m_placement;
void Slot11() override;
@ -27,4 +37,8 @@ protected:
UIButtonContext* m_controls;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(UIItemParamChangeDisplayWnd, m_placement) - offsetof(UIItemParamChangeDisplayWnd, unknown_00C4) == 0x2C);
#endif
#endif

View file

@ -843,6 +843,7 @@
"Source/UI/Dialogs/UIEditctrlWnd.cpp": 2,
"Source/UI/Dialogs/UIEmailAddressWnd.cpp": 2,
"Source/UI/Dialogs/UIGraffiStrboxWnd.cpp": 2,
"Source/UI/Dialogs/UIMinimapZoomWnd.cpp": 2,
"Source/UI/Dialogs/UIWaitDBSaveWnd.cpp": 2,
"Source/UI/Edit/EditTextState.cpp": 2,
"Source/UI/Edit/EditViewport.cpp": 2,
@ -872,6 +873,7 @@
"Source/UI/Items/MergeItemWnd.cpp": 2,
"Source/UI/Items/UIGameItem.cpp": 2,
"Source/UI/Items/UIIllustWnd.cpp": 2,
"Source/UI/Items/UIItemParamChangeDisplayWnd.cpp": 2,
"Source/UI/Items/UIItemRepairWnd.cpp": 2,
"Source/UI/Items/UIMakeTargetListWnd.cpp": 2,
"Source/UI/Items/UIMakeTargetProcessWnd.cpp": 2,