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:
parent
133484deff
commit
85bcff0735
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue