From aaada7d153aca3e700eff0a3abdc268884c7b45f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 22:19:05 +0000 Subject: [PATCH] Decompile fn_09613 (UIHairStyleButton::Slot15) Batch #6352 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_09613 UIHairStyleButton::Slot15: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, gordaoprogramas Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UINewMakeCharWnd.cpp | 10 ++++++++++ Source/UI/Window/UINewMakeCharWnd.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/Source/UI/Window/UINewMakeCharWnd.cpp b/Source/UI/Window/UINewMakeCharWnd.cpp index 821efd7d..80ff9c32 100644 --- a/Source/UI/Window/UINewMakeCharWnd.cpp +++ b/Source/UI/Window/UINewMakeCharWnd.cpp @@ -17,6 +17,7 @@ #include #include +#include // OFFSET: 0x007DB320 // FUNCTION: fn_09617 @@ -201,3 +202,12 @@ int UIHairStyleButton::SendMsg(UIWindow* sender, int message, std::intptr_t argu } return 0; } + +// OFFSET: 0x007DA290 +// FUNCTION: fn_09613 +void UIHairStyleButton::Slot15(int width, int height) { + this->m_preview = new (std::nothrow) UIHairBitmap(*this->m_context, *this->m_buttonContext); + this->m_preview->SetSize(36, 37); + this->AddChild(this->m_preview); + this->SendMsg(nullptr, 40, 0, 0, 0, 0); +} diff --git a/Source/UI/Window/UINewMakeCharWnd.h b/Source/UI/Window/UINewMakeCharWnd.h index 3251be4a..c007d7bf 100644 --- a/Source/UI/Window/UINewMakeCharWnd.h +++ b/Source/UI/Window/UINewMakeCharWnd.h @@ -6,6 +6,8 @@ class UIHairBitmap : public UIBitmapButton { public: + using UIBitmapButton::UIBitmapButton; + void Slot25(int x, int y) override; void Slot26(int x, int y) override; void Slot27(int x, int y) override; @@ -17,6 +19,7 @@ public: class UIHairStyleButton : public UIBitmapButton { public: + void Slot15(int width, int height) override; int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override; protected: