Decompile 2 functions in Source/UI/Quest/UIRenewQuestUI.cpp, Source/UI/Quest/UIRenewQuestUI.h, ...
Batch #7350 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_16440 CUIEditBoxEx::SetOnSubmit: logic confirmed by peer review - fn_16441 CUITab::SetOnChange: logic confirmed by peer review Peer-reviewed-by: meitogi, gordaoprogramas, aDw 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
4d67f382d6
commit
dddbd5a648
4 changed files with 26 additions and 4 deletions
|
|
@ -82,6 +82,7 @@ public:
|
|||
void SetMask(char value);
|
||||
void SetText(const std::string& text);
|
||||
void SetFocus();
|
||||
void SetOnSubmit(std::function<void()> handler);
|
||||
|
||||
/* 0080 */ std::uint32_t backgroundColor;
|
||||
/* 0084 */ std::uint32_t borderColor;
|
||||
|
|
|
|||
|
|
@ -1097,3 +1097,21 @@ int CUIRenewQuestUI::SendMsg(UIWindow* sender, int message, std::intptr_t a, std
|
|||
|
||||
return CUIFrameWnd::SendMsg(sender, message, a, b, c, d);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A5C380
|
||||
|
||||
// OFFSET: 0x00A63B90
|
||||
// FUNCTION: fn_16440
|
||||
void CUIEditBoxEx::SetOnSubmit(std::function<void()> handler) {
|
||||
this->onSubmit = handler;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A63C00
|
||||
// FUNCTION: fn_16441
|
||||
void CUITab::SetOnChange(std::function<void(CUITabButton*)> handler) {
|
||||
this->onChange = handler;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A665C0
|
||||
|
||||
// OFFSET: 0x00A67290
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@ public:
|
|||
|
||||
void OnSimpleView(bool simpleView);
|
||||
|
||||
/* 00E8 */ unsigned char unknown_00E8[0x04];
|
||||
/* 00E8 */ CUIStaticImage* icon;
|
||||
/* 00EC */ CUIStaticText* unknown_00EC;
|
||||
/* 00F0 */ unsigned char unknown_00F0[0x04];
|
||||
/* 00F4 */ CUIButton* unknown_00F4;
|
||||
/* 00F8 */ CUIButton* unknown_00F8;
|
||||
/* 00F0 */ CUIStaticText* unknown_00F0;
|
||||
/* 00F4 */ CUICheckBox* unknown_00F4;
|
||||
/* 00F8 */ CUICheckBox* unknown_00F8;
|
||||
/* 00FC */ int questType;
|
||||
/* 0100 */ int questId;
|
||||
/* 0104 */ unsigned char pressed;
|
||||
|
|
@ -44,8 +44,10 @@ class CUIQuestList : public CUIControl {
|
|||
public:
|
||||
void Paint() override;
|
||||
void Slot16() override;
|
||||
void BindItem(CUIQuestItem* item, const unsigned long& questId);
|
||||
|
||||
/* 0080 */ CUIListBoxEx<CUIQuestItem, unsigned long>* list;
|
||||
/* 0084 */ int type;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ public:
|
|||
__declspec(noinline) void Select(CUITabButton* button);
|
||||
void SelectPage(UIWindow* page);
|
||||
bool SelectIndex(unsigned int index);
|
||||
void SetOnChange(std::function<void(CUITabButton*)> handler);
|
||||
|
||||
/* 0080 */ CUITabButton* current;
|
||||
/* 0084 */ unsigned char unknown_0084[0x04];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue