Decompile fn_16117 (CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::OnCreate)

Batch #16855 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_16117 CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::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).
This commit is contained in:
ragnarok-clanker 2026-11-11 13:24:11 +00:00
commit 85bcff0735

View file

@ -187,7 +187,8 @@ template <>
void CUIListBoxEx<ProbabilityTable::CUIItem, ProbabilityTable::CItemData>::OnCreate(int width, int height) {
this->scrollBar = new CUIVScrollBar();
this->scrollBar->Show(0);
this->scrollBar->onChange = [this](int position) { this->OnScroll(position); };
const std::function<void(int)> onChange = [this](int position) { this->OnScroll(position); };
this->scrollBar->onChange = onChange;
this->AddChild(this->scrollBar);
}