From fa8912b0db364b45e2eb40c1e6e644624db31bda Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 16:39:37 +0000 Subject: [PATCH] Decompile fn_11056 (UIListBoxEx::UIListBoxEx) Batch #10676 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_11056 UIListBoxEx::UIListBoxEx: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, vinnyamancio, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Lists/UIListBoxEx.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/UI/Lists/UIListBoxEx.cpp b/Source/UI/Lists/UIListBoxEx.cpp index 19b28c3b..097b0fbe 100644 --- a/Source/UI/Lists/UIListBoxEx.cpp +++ b/Source/UI/Lists/UIListBoxEx.cpp @@ -1,6 +1,8 @@ #include "Render/DeviceContext/DeviceContext.h" #include "Resource/Bitmap/BitmapResource.h" #include "Resource/ResourceMgr.h" +#include "Resource/SkinPalette.h" +#include "Contents/SkinMgr.h" #include "UI/Text/ColoredText.h" #include "UI/Lists/UIListBox.h" #include "UI/Lists/UIListBoxEx.h" @@ -13,14 +15,8 @@ UIListBoxEx::UIListBoxEx() : UIWindow(0), backgroundRed(255), backgroundGreen(255), backgroundBlue(255), selected(0), topLine(0), horizontalOffset(0), contentWidth(0), verticalOverflow(0), bottomMargin(0), verticalBar(nullptr), horizontalBar(nullptr), transparent(0), lineHeight(16), selectionColor(0) { - constexpr char path[] = "유저인터페이스\\colorchip.bmp"; - const auto* chip = static_cast(ResourceMgr::Instance().Load(path)); - - if (chip) { - const auto& image = chip->image; - const std::uint32_t pixel = image.width > 10 && image.height > 10 ? image.pixels[10 + 10 * image.width] : 0x00FF0000u; - this->selectionColor = ((pixel & 255) << 16) | (pixel & 0xFF00) | ((pixel >> 16) & 255); - } + const SkinPaletteCell cell = {2, 2}; + this->selectionColor = SkinPaletteColor(ResourceMgr::Instance(), cell, g_skinInfo.Selected()); } // OFFSET: 0x00873710