From ce736c44cee80cf8e6916b06363e75c1238b2127 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 03:49:21 +0000 Subject: [PATCH] Decompile fn_09624 (UIHairStyleButton::SendMsg) Batch #17800 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_09624 UIHairStyleButton::SendMsg: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Login/UINewMakeCharWnd.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/UI/Login/UINewMakeCharWnd.cpp b/Source/UI/Login/UINewMakeCharWnd.cpp index ba4aef2fd..99fc036d2 100644 --- a/Source/UI/Login/UINewMakeCharWnd.cpp +++ b/Source/UI/Login/UINewMakeCharWnd.cpp @@ -244,9 +244,9 @@ void UINewMakeCharWnd::OnProcess() { int UIHairStyleButton::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) { switch (message) { case UM_SETSTATE: { - bool previous = this->m_selected; + const bool previous = this->m_selected; this->m_selected = argument1 != 0; - if (previous != (argument1 != 0)) { + if (previous != this->m_selected) { if (argument1) { this->SetBitmap("유저인터페이스\\make_character_ver2\\bt_hairStyle_select.bmp", 0, 0); this->SetBitmap("유저인터페이스\\make_character_ver2\\bt_hairStyle_select.bmp", 1, 0); @@ -273,7 +273,7 @@ int UIHairStyleButton::SendMsg(UIWindow* sender, int message, std::intptr_t argu } this->m_preview->Enable(1); sprintf_s( - name, this->m_sex == 0 ? "유저인터페이스\\make_character_ver2\\img_hairStyle_girl%02d.bmp" : "유저인터페이스\\make_character_ver2\\img_hairStyle%02d.bmp", + name, this->m_sex != 0 ? "유저인터페이스\\make_character_ver2\\img_hairStyle%02d.bmp" : "유저인터페이스\\make_character_ver2\\img_hairStyle_girl%02d.bmp", this->m_style + 1 ); } else if (this->m_race == 1) { @@ -285,10 +285,11 @@ int UIHairStyleButton::SendMsg(UIWindow* sender, int message, std::intptr_t argu return 0; } this->m_preview->Enable(1); - sprintf_s( - name, this->m_sex == 0 ? "유저인터페이스\\make_character_ver2\\img_hairStyle_doramGirl%02d.bmp" : "유저인터페이스\\make_character_ver2\\img_hairStyle_doramBoy%02d.bmp", - this->m_style + 1 - ); + if (this->m_sex == 0) { + sprintf_s(name, "유저인터페이스\\make_character_ver2\\img_hairStyle_doramGirl%02d.bmp", this->m_style + 1); + } else { + sprintf_s(name, "유저인터페이스\\make_character_ver2\\img_hairStyle_doramBoy%02d.bmp", this->m_style + 1); + } } if (this->m_preview) { this->m_preview->SetBitmap(name, 0, 0);