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: