Decompile 4 functions in Source/UI/Shortcuts/ShortcutCooldowns.cpp, Source/UI/Shortcuts/UIQuickSlotWnd.h, ...
Batch #4706 by eAthena: 2 byte-identical, 2 confirmed by peer review. - fn_12783 UIQuickSlotWnd::Slot11: logic confirmed by peer review - fn_12784 UISeekPartyListWnd::Slot11: byte-identical - fn_12785 UISeekPartyMBWnd::Slot11: byte-identical - fn_12786 UISeekPartyWnd::Slot11: logic confirmed by peer review Peer-reviewed-by: willerthal, tayoba, Snow 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
f781bf41ba
commit
76124cd642
5 changed files with 62 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "Client/Session.h"
|
||||
#include "Contents/UserData/NormalItemSlots.h"
|
||||
#include "Resource/Bitmap/BitmapResource.h"
|
||||
#include "Resource/ResourceMgr.h"
|
||||
#include "Resource/SkinPalette.h"
|
||||
|
|
@ -12,6 +13,7 @@
|
|||
#include "UI/Window/UIRebirthWnd.h"
|
||||
#include "UI/Window/UISeekPartyMBWnd.h"
|
||||
#include "UI/Window/UISeekPartyWnd.h"
|
||||
#include "UI/Window/UISeekPartyListWnd.h"
|
||||
#include "Utility/Text/FormatString.h"
|
||||
#include "UI/Shortcuts/ShortcutCooldowns.h"
|
||||
|
||||
|
|
@ -387,3 +389,47 @@ void UISeekPartyWnd::Slot19() {
|
|||
this->Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00940EE0
|
||||
// FUNCTION: fn_12783
|
||||
void UIQuickSlotWnd::Slot11() {
|
||||
if (this->m_saved) {
|
||||
this->m_saved->width = this->geometry.width;
|
||||
this->m_saved->height = this->geometry.height;
|
||||
this->m_saved->x = this->geometry.x;
|
||||
this->m_saved->y = this->geometry.y;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00940F60
|
||||
// FUNCTION: fn_12785
|
||||
void UISeekPartyMBWnd::Slot11() {
|
||||
if (this->m_saved) {
|
||||
this->m_saved->width = this->geometry.width;
|
||||
this->m_saved->height = this->geometry.height;
|
||||
this->m_saved->x = this->geometry.x;
|
||||
this->m_saved->y = this->geometry.y;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00940FA0
|
||||
// FUNCTION: fn_12786
|
||||
void UISeekPartyWnd::Slot11() {
|
||||
if (this->m_saved) {
|
||||
this->m_saved->width = this->geometry.width;
|
||||
this->m_saved->height = this->geometry.height;
|
||||
this->m_saved->x = this->geometry.x;
|
||||
this->m_saved->y = this->geometry.y;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00940F20
|
||||
// FUNCTION: fn_12784
|
||||
void UISeekPartyListWnd::Slot11() {
|
||||
if (this->m_saved) {
|
||||
this->m_saved->width = this->geometry.width;
|
||||
this->m_saved->height = this->geometry.height;
|
||||
this->m_saved->x = this->geometry.x;
|
||||
this->m_saved->y = this->geometry.y;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,8 +35,11 @@ struct QuickSlotEntry {
|
|||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
struct QuickSlotWndInfo;
|
||||
|
||||
class UIQuickSlotWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Slot11() override;
|
||||
void Slot15(int width, int height) override;
|
||||
void Slot19() override;
|
||||
void Paint() override;
|
||||
|
|
@ -45,7 +48,7 @@ public:
|
|||
|
||||
protected:
|
||||
/* 00B4 */ int m_selected;
|
||||
/* 00B8 */ int unknown_00B8;
|
||||
/* 00B8 */ QuickSlotWndInfo* m_saved;
|
||||
/* 00BC */ QuickSlotEntry m_entries[2];
|
||||
QuickSlotPainting* m_painting;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
|
||||
class UICheckBox;
|
||||
class UIScrollBar;
|
||||
struct SeekPartyListWndInfo;
|
||||
|
||||
class UISeekPartyListWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Slot11() override;
|
||||
void Slot25(int x, int y) override;
|
||||
void Slot26(int x, int y) override;
|
||||
void Slot35(int delta) override;
|
||||
|
|
@ -33,6 +35,8 @@ protected:
|
|||
/* 01C4 */ short m_filterLevel;
|
||||
/* 01C6 */ short m_filterMap;
|
||||
/* 01C8 */ short m_filterJob;
|
||||
/* 01CA */ unsigned char unknown_01CA[6];
|
||||
/* 01D0 */ SeekPartyListWndInfo* m_saved;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4,14 +4,18 @@
|
|||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
struct UIButtonContext;
|
||||
struct SeekPartyMBWndInfo;
|
||||
|
||||
class UISeekPartyMBWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Slot11() override;
|
||||
void Paint() override;
|
||||
|
||||
protected:
|
||||
/* 00BC */ unsigned char unknown_00BC[0xAC];
|
||||
/* 0168 */ unsigned char m_minimized;
|
||||
/* 0169 */ unsigned char unknown_0169[0x13];
|
||||
/* 017C */ SeekPartyMBWndInfo* m_saved;
|
||||
UIButtonContext* m_controls;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
#include <cstdint>
|
||||
|
||||
struct UIButtonContext;
|
||||
struct SeekPartyWndInfo;
|
||||
|
||||
class UISeekPartyWnd : public UIFrameWnd {
|
||||
public:
|
||||
void Slot11() override;
|
||||
void Slot19() override;
|
||||
void Paint() override;
|
||||
|
||||
|
|
@ -22,6 +24,8 @@ protected:
|
|||
/* 00D8 */ std::uint32_t m_frameTick;
|
||||
/* 00DC */ unsigned char unknown_00DC[0x108];
|
||||
/* 01E4 */ unsigned char m_minimized;
|
||||
/* 01E5 */ unsigned char unknown_01E5[3];
|
||||
/* 01E8 */ SeekPartyWndInfo* m_saved;
|
||||
UIButtonContext* m_controls;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue