Decompile 2 functions in Source/UI/ProbabilityTable/UIProbabilityTableEvents.cpp, Source/UI/ProbabilityTable/UIProbabilityTable.h, ...
Batch #6096 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_16206 CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::RebindIndex: logic confirmed by peer review - fn_16207 CUIProbabilityTable::SendMsg: logic confirmed by peer review Peer-reviewed-by: alisonrag, Lumen, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/ProbabilityTable/UIProbabilityTableEvents.cpp
This commit is contained in:
parent
450a96b337
commit
47a630ce98
4 changed files with 39 additions and 3 deletions
32
Source/UI/ProbabilityTable/UIProbabilityTableEvents.cpp
Normal file
32
Source/UI/ProbabilityTable/UIProbabilityTableEvents.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#include "UI/ProbabilityTable/UIProbabilityTable.h"
|
||||
|
||||
#include "UI/Edit/UIEditBoxEx.h"
|
||||
|
||||
#include <iterator>
|
||||
|
||||
// OFFSET: 0x00A4E3B0
|
||||
// FUNCTION: fn_16206
|
||||
template <>
|
||||
bool CUIListBoxEx<ProbabilityTable::CUIItem, ProbabilityTable::CItemData>::RebindIndex(int index) {
|
||||
if (index != -1) {
|
||||
for (ProbabilityTable::CUIItem* item : this->items) {
|
||||
if (index == item->index) {
|
||||
if (!this->binder) {
|
||||
return false;
|
||||
}
|
||||
this->binder(item, *std::next(this->data.begin(), index));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A4E490
|
||||
// FUNCTION: fn_16207
|
||||
int CUIProbabilityTable::SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) {
|
||||
if (message == 177) {
|
||||
this->m_searchEdit->SetFocus();
|
||||
}
|
||||
return UIFrameWnd::SendMsg(sender, message, argument1, argument2, argument3, argument4);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue