Decompile fn_11057 (UIListBoxID::UIListBoxID)

Batch #7850 by secret: 0 byte-identical, 1 confirmed by peer review.

- fn_11057 UIListBoxID::UIListBoxID: logic confirmed by peer review

Peer-reviewed-by: eAthena, pedrao
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-31 12:21:25 +00:00
commit 4dbdfe9a68
2 changed files with 17 additions and 0 deletions

View file

@ -1264,3 +1264,16 @@ int UITreeView::RemoveChildNode(UITreeNode* parent, int id, bool keepButtons) {
bool UIGage::CanHitTest() {
return false;
}
// OFFSET: 0x0086DBD0
// FUNCTION: fn_11057
UIListBoxID::UIListBoxID()
: UIWindow(*reinterpret_cast<UIWindowContext*>(nullptr), 0), lines(), selected(0), topLine(0), horizontalOffset(0), contentWidth(0), verticalOverflow(0),
bottomMargin(0), verticalBar(nullptr), horizontalBar(nullptr), transparent(0), lineHeight(16) {
int* background = reinterpret_cast<int*>(this->unknown_007C);
background[0] = 255;
background[1] = 255;
background[2] = 255;
const SkinPaletteCell cell = {3, 2};
this->selectionColor = SkinPaletteColor(ResourceMgr::Instance(), cell, g_skinInfo.Selected());
}

View file

@ -5,6 +5,10 @@
#include <string>
#include "Contents/SkinMgr.h"
#include "Resource/SkinPalette.h"
#include "UI/Lists/UIListBoxID.h"
class CBitmapRes;
class UIScrollBar2 : public UIScrollBar {