Decompile 2 functions in Source/UI/UILapineUpgradeBoxWnd.cpp, Source/UI/UILapineScrollBar.h
Batch #1952 by ragnarok-clanker: 0 byte-identical, 2 confirmed by peer review. - fn_04214 UILapineUpgradeBox_IngredientListWnd::Slot35: logic confirmed by peer review - fn_04223 UILapineUpgradeBox_IngredientListWnd::FindSelected: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
449db892c5
commit
90aee1257f
2 changed files with 26 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ public:
|
|||
void Slot10(int x, int y, std::intptr_t value) override;
|
||||
void Paint() override;
|
||||
void Slot35(int argument) override;
|
||||
UILapineUpgradeBox_IngredientInfoWnd* FindSelected();
|
||||
|
||||
/* 00A8 */ unsigned char unknown_00A8[0x14];
|
||||
/* 00BC */ std::vector<UILapineUpgradeBox_IngredientInfoWnd*> items;
|
||||
|
|
|
|||
|
|
@ -141,8 +141,33 @@ void UILapineUpgradeBox_IngredientListWnd::Paint() {
|
|||
}
|
||||
|
||||
// OFFSET: 0x006041A0
|
||||
// FUNCTION: fn_04214
|
||||
void UILapineUpgradeBox_IngredientListWnd::Slot35(int argument) {
|
||||
if (this->wheelScroll == 1) {
|
||||
if (argument < 0) {
|
||||
this->SendMsg(this->scrollBar, 7, 15, 0, 0, 0);
|
||||
} else {
|
||||
this->SendMsg(this->scrollBar, 7, -15, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00605980
|
||||
// FUNCTION: fn_04223
|
||||
UILapineUpgradeBox_IngredientInfoWnd* UILapineUpgradeBox_IngredientListWnd::FindSelected() {
|
||||
for (UILapineUpgradeBox_IngredientInfoWnd* entry : this->items) {
|
||||
if (entry->selected == 1) {
|
||||
return entry;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// INLINED
|
||||
inline UILapineUpgradeBox_IngredientInfoWnd* UILapineUpgradeBoxWnd::FindSelected() {
|
||||
return this->ingredientList->FindSelected();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00603FE0
|
||||
// FUNCTION: fn_04210
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue