Decompile fn_07685 (UIJobIconButton::UIJobIconButton)

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

- fn_07685 UIJobIconButton::UIJobIconButton: logic confirmed by peer review

Peer-reviewed-by: Yommy, secret
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-10-31 14:51:44 +00:00
commit 293ce469d9
7 changed files with 22 additions and 9 deletions

View file

@ -43,13 +43,6 @@ namespace {
/* 0008 */ int size;
};
struct UIFriendOptionContext {
UIButtonContext& buttons;
int& option0;
int& option1;
int& option2;
};
struct SessionHelper {
const char* sub_DDE770(const char* mapName);
};
@ -83,9 +76,16 @@ public:
/* 0118 */ std::vector<MiniPartyIconPosition> iconPositions;
};
struct UIFriendOptionContext {
UIButtonContext& buttons;
int& option0;
int& option1;
int& option2;
};
class UIFriendOptionWnd : public UIFrameWnd {
public:
UIFriendOptionWnd();
UIFriendOptionWnd(UIWindowContext& windows, UIFrameContext& frames, UIFriendOptionContext& options);
~UIFriendOptionWnd() override;
void Slot11() override;
void Slot15(int width, int height) override;
@ -104,7 +104,7 @@ private:
class UIJobIconButton : public UIBitmapButton {
public:
UIJobIconButton();
UIJobIconButton(UIWindowContext& windows, UIButtonContext& buttons);
~UIJobIconButton() override;
void Paint() override;
void Slot25(int x, int y) override;
@ -586,6 +586,10 @@ void UIFriendOptionWnd::Slot11() {
}
// OFFSET: 0x00739330
// FUNCTION: fn_07685
UIJobIconButton::UIJobIconButton(UIWindowContext& windows, UIButtonContext& buttons) : UIBitmapButton(windows, buttons) {
this->unknown_0120 = 0;
}
// OFFSET: 0x007393E0
// FUNCTION: fn_07686

View file

@ -344,6 +344,8 @@ UIGuildPositionManageWnd::UIGuildPositionManageWnd(UIWindowContext& windows, UIF
}
}
// OFFSET: 0x00953E80
// OFFSET: 0x00956050
// FUNCTION: fn_13035
bool CompareWideText(const char* left, const char* right) {

View file

@ -224,6 +224,7 @@ protected:
class UIGuildSkillWnd : public UIGuildWnd {
public:
UIGuildSkillWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
int Tab() override;
void Slot15(int width, int height) override;
void Paint() override;

View file

@ -356,6 +356,8 @@ void UIRecommededQuestScrollWnd::SetQuest(unsigned int questId) {
this->Invalidate();
}
// OFFSET: 0x007FB4D0
// OFFSET: 0x007FB6C0
// FUNCTION: fn_09959
void UIRenewDetailQuestInfoWnd::Slot15(int, int) {

View file

@ -76,6 +76,7 @@ public:
class UIRenewDetailQuestInfoWnd : public UIFrameWnd {
public:
UIRenewDetailQuestInfoWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
void Slot15(int width, int height) override;
void Paint() override;
void Slot25(int x, int y) override;

View file

@ -1033,6 +1033,8 @@ void UIAchTab::SetLabel(const char* text, int group, int sub) {
this->Refresh();
}
// OFFSET: 0x007BA260
// OFFSET: 0x007BA460
// FUNCTION: fn_09267
bool UIAchTracingWnd::Slot08() {

View file

@ -290,6 +290,7 @@ public:
/* 00B8 */ UITextButton* toggleButtons[3];
/* 00C4 */ UITextButton* openButtons[3];
UIAchTracingWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
bool Slot08() override;
void Slot11() override;
void Slot15(int width, int height) override;