From f535993c3d0e8047150f7e2989e032135e2e3543 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 13:01:11 +0000 Subject: [PATCH] Decompile 3 functions in Source/UI/StylingShop/UIStylingShopWnd.cpp Batch #16823 by eAthena: 0 byte-identical, 3 confirmed by peer review. - fn_10339 UISlotOfMyStyleWnd::OnCreate: logic confirmed by peer review - fn_10337 UIMyStyleWnd::OnCreate: logic confirmed by peer review - fn_10334 UIBasicStylingWnd::OnCreate: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/StylingShop/UIStylingShopWnd.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/UI/StylingShop/UIStylingShopWnd.cpp b/Source/UI/StylingShop/UIStylingShopWnd.cpp index 6bfac0ee1..80945dcc2 100644 --- a/Source/UI/StylingShop/UIStylingShopWnd.cpp +++ b/Source/UI/StylingShop/UIStylingShopWnd.cpp @@ -1523,16 +1523,16 @@ void UISlotOfMyStyleWnd::OnCreate(int, int) { this->m_display = new (std::nothrow) UIDisplayCharacter(true); CBitmapRes* line = static_cast(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\styleshop\\line_dotted_2px.bmp"))); - this->m_display->SetSize(this->geometry.width - line->image.width, static_cast(roundf(static_cast(this->geometry.height) * 0.73f))); + this->m_display->SetSize(this->geometry.width - line->image.width, static_cast(std::round(static_cast(this->geometry.height) * 0.73f))); this->m_display->Move(0, 0); this->m_display->LoadCostumes(); this->AddChild(this->m_display); this->m_showInfo = new (std::nothrow) UIShowInfoWnd(); - this->m_showInfo->SetSize(this->geometry.width, static_cast(roundf(static_cast(this->geometry.height) * 0.36f))); + this->m_showInfo->SetSize(this->geometry.width, static_cast(std::round(static_cast(this->geometry.height) * 0.36f))); const int layout = 496; this->m_showInfo->ArrangeCheckBoxes(layout); - this->m_showInfo->Move(0, static_cast(roundf(static_cast(this->geometry.height) * 0.8f)) - 10); + this->m_showInfo->Move(0, static_cast(std::round(static_cast(this->geometry.height) * 0.8f)) - 10); this->m_showInfo->m_display = this->m_display; this->AddChild(this->m_showInfo); } @@ -2129,7 +2129,7 @@ void UIMyStyleWnd::OnCreate(int, int) { this->deleteStyleButtons[i]->SetBitmap("유저인터페이스\\styleshop\\btn_delete_over.bmp", 1, 0); this->deleteStyleButtons[i]->SetBitmap("유저인터페이스\\styleshop\\btn_delete_press.bmp", 2, 0); this->deleteStyleButtons[i]->SetSize(this->deleteStyleButtons[i]->BitmapWidth(), this->deleteStyleButtons[i]->BitmapHeight()); - this->deleteStyleButtons[i]->Move(static_cast(roundf(static_cast(this->geometry.width) * 0.5f)) * i + 7, 4); + this->deleteStyleButtons[i]->Move(static_cast(std::round(static_cast(this->geometry.width) * 0.5f)) * i + 7, 4); this->deleteStyleButtons[i]->SetId(201); if (this->m_slots[i] == nullptr) { this->deleteStyleButtons[i]->Enable(0); @@ -2144,7 +2144,7 @@ void UIMyStyleWnd::OnCreate(int, int) { this->rotateLeftButtons[i]->SetBitmap("유저인터페이스\\styleshop\\btn_rotatearrow_l_press.bmp", 2, 0); this->rotateLeftButtons[i]->SetSize(this->rotateLeftButtons[i]->BitmapWidth(), this->rotateLeftButtons[i]->BitmapHeight()); float ratio = static_cast(i) * 0.5f + 0.25f; - this->rotateLeftButtons[i]->Move(static_cast(roundf(static_cast(this->geometry.width) * ratio)) - this->rotateLeftButtons[i]->BitmapWidth(), 213); + this->rotateLeftButtons[i]->Move(static_cast(std::round(static_cast(this->geometry.width) * ratio)) - this->rotateLeftButtons[i]->BitmapWidth(), 213); this->rotateLeftButtons[i]->SetId(227); if (this->m_slots[i] == nullptr) { this->rotateLeftButtons[i]->Enable(0); @@ -2156,7 +2156,7 @@ void UIMyStyleWnd::OnCreate(int, int) { this->rotateRightButtons[i]->SetBitmap("유저인터페이스\\styleshop\\btn_rotatearrow_r_over.bmp", 1, 0); this->rotateRightButtons[i]->SetBitmap("유저인터페이스\\styleshop\\btn_rotatearrow_r_press.bmp", 2, 0); this->rotateRightButtons[i]->SetSize(this->rotateRightButtons[i]->BitmapWidth(), this->rotateRightButtons[i]->BitmapHeight()); - this->rotateRightButtons[i]->Move(static_cast(roundf(static_cast(this->geometry.width) * ratio)), 213); + this->rotateRightButtons[i]->Move(static_cast(std::round(static_cast(this->geometry.width) * ratio)), 213); this->rotateRightButtons[i]->SetId(226); if (this->m_slots[i] == nullptr) { this->rotateRightButtons[i]->Enable(0); @@ -2363,8 +2363,8 @@ void UI2ndCostumeWnd::OnCreate(int, int) { // FUNCTION: fn_10334 void UIBasicStylingWnd::OnCreate(int, int) { this->m_display = new (std::nothrow) UIDisplayCharacter(); - this->m_display->SetSize(static_cast(roundf(static_cast(this->geometry.width) * 0.552f)), - static_cast(roundf(static_cast(this->geometry.height) * 0.8f))); + this->m_display->SetSize(static_cast(std::round(static_cast(this->geometry.width) * 0.552f)), + static_cast(std::round(static_cast(this->geometry.height) * 0.8f))); this->m_display->LoadCostumes(); this->m_display->Move(0, 0); this->AddChild(this->m_display);