Decompile fn_12516 (UIMiniBtnWnd::UIMiniBtnWnd)
Batch #7694 by secret: 0 byte-identical, 1 confirmed by peer review. - fn_12516 UIMiniBtnWnd::UIMiniBtnWnd: logic confirmed by peer review Peer-reviewed-by: eAthena, Tanke 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
c9e9473900
commit
8cbbea0552
21 changed files with 43 additions and 1 deletions
|
|
@ -205,3 +205,5 @@ void UISubChatHisWnd::Slot15(int width, int height) {
|
|||
|
||||
ChatButtonLayout{g_chatInputFlag, this->geometry.width, {&this->m_miniButton, &this->m_stickButton, &this->m_optionButton}}.Apply();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00912340
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef RAGNAROK_SOURCE_UI_CHAT_UISUBCHATHISWND_H
|
||||
#define RAGNAROK_SOURCE_UI_CHAT_UISUBCHATHISWND_H
|
||||
|
||||
#include "Contents/Configuration/ServiceConfiguration.h"
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
#include <string>
|
||||
|
|
@ -29,6 +30,7 @@ class UISubChatHisWnd : public UIFrameWnd {
|
|||
|
||||
public:
|
||||
UISubChatHisWnd();
|
||||
UISubChatHisWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls, UIEditContext& edit, UIListBoxContext& list);
|
||||
void Move(int x, int y) override;
|
||||
void Slot11() override;
|
||||
void Slot15(int width, int height) override;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
class UISubChatMiniWnd : public UIFrameWnd {
|
||||
public:
|
||||
UISubChatMiniWnd(UIWindowContext& windows, UIFrameContext& frames);
|
||||
void Slot15(int width, int height) override;
|
||||
void Paint() override;
|
||||
void Slot25(int x, int y) override;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ extern int g_memorialDunWndY;
|
|||
|
||||
class UIMemorialDunWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIMemorialDunWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
|
||||
void Move(int x, int y) override;
|
||||
void Slot15(int width, int height) override;
|
||||
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
|
||||
|
|
|
|||
|
|
@ -171,3 +171,5 @@ void UIQuickSlotWnd::Slot32(int x, int y) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x009118C0
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ struct QuickSlotWndInfo;
|
|||
|
||||
class UIQuickSlotWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIQuickSlotWnd(UIWindowContext& windows, UIFrameContext& frames, QuickSlotPainting& painting);
|
||||
void Slot10(int x, int y, std::intptr_t argument) override;
|
||||
void Slot11() override;
|
||||
void Slot15(int width, int height) override;
|
||||
|
|
|
|||
|
|
@ -1030,3 +1030,7 @@ bool UINavigationWnd::LoadRoute(int index) {
|
|||
this->SendMsg(this, 6, 190, 0, 0, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00911490
|
||||
|
||||
// OFFSET: 0x00912460
|
||||
|
|
|
|||
|
|
@ -57,3 +57,5 @@ void UIChangeNameWnd::Slot15(int, int) {
|
|||
focus.Set(this->m_edit);
|
||||
this->m_message0 = 184;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00911190
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ class UIBitmapEditCtrl;
|
|||
|
||||
class UIChangeNameWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIChangeNameWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
|
||||
void Slot15(int width, int height) override;
|
||||
void Paint() override;
|
||||
int IsNameWithinLimit(std::string name, int limit);
|
||||
|
|
|
|||
|
|
@ -63,3 +63,5 @@ void UIEscOptionWnd::LayoutButtons() {
|
|||
this->m_buttons[4]->Move(29, this->m_titleHeight + 51);
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00911250
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
#ifndef RAGNAROK_SOURCE_UI_WINDOW_UIESCOPTIONWND_H
|
||||
#define RAGNAROK_SOURCE_UI_WINDOW_UIESCOPTIONWND_H
|
||||
|
||||
#include "Client/Mode/CGameMode.h"
|
||||
#include "Client/Mode/ModeMgr.h"
|
||||
#include "Contents/Skills/ClientSkills.h"
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
class UIButton;
|
||||
|
|
@ -8,6 +11,7 @@ struct UIButtonContext;
|
|||
|
||||
class UIEscOptionWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIEscOptionWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
|
||||
void Paint() override;
|
||||
void Slot15(int width, int height) override;
|
||||
void LayoutButtons();
|
||||
|
|
|
|||
|
|
@ -172,3 +172,5 @@ void UIJobListWnd::RefreshJobs() {
|
|||
this->AddChild(this->m_jobChecks[index]);
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00911410
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ extern std::map<int, bool> g_partyBookingJobs;
|
|||
|
||||
class UIJobListWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIJobListWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
|
||||
void Slot11() override;
|
||||
void Slot15(int width, int height) override;
|
||||
void Paint() override;
|
||||
|
|
@ -25,7 +26,8 @@ protected:
|
|||
/* 00B4 */ UIStaticText* m_title;
|
||||
/* 00B8 */ UICheckBox* m_jobChecks[6];
|
||||
/* 00D0 */ UIBitmapButton* m_okButton;
|
||||
/* 00D4 */ unsigned char unknown_00D4[0x18];
|
||||
/* 00D4 */ unsigned char unknown_00D4[0x14];
|
||||
/* 00E8 */ int unknown_00E8;
|
||||
/* 00EC */ JobListWndInfo* m_saved;
|
||||
UIButtonContext* m_controls;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -60,3 +60,8 @@ void UIMiniBtnWnd::Toggle() {
|
|||
}
|
||||
this->Invalidate();
|
||||
}
|
||||
|
||||
// OFFSET: 0x009114F0
|
||||
// FUNCTION: fn_12516
|
||||
UIMiniBtnWnd::UIMiniBtnWnd(UIWindowContext& windows, UIFrameContext& frames) : UIFrameWnd(windows, frames, 0), m_windowId(-1) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
class UIMiniBtnWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIMiniBtnWnd(UIWindowContext& windows, UIFrameContext& frames);
|
||||
void Paint() override;
|
||||
void Slot25(int x, int y) override;
|
||||
void Toggle();
|
||||
|
|
|
|||
|
|
@ -64,3 +64,5 @@ int UINavigationHelpWnd::SendMsg(UIWindow*, int message, std::intptr_t a, std::i
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: 0x009115B0
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ struct UITextViewerContext;
|
|||
|
||||
class UINavigationHelpWnd : public UIFrameWnd {
|
||||
public:
|
||||
UINavigationHelpWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls, UITextViewerContext& text);
|
||||
void Slot15(int width, int height) override;
|
||||
void Paint() override;
|
||||
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
|
||||
|
|
@ -17,6 +18,7 @@ protected:
|
|||
UIButtonContext* m_controls;
|
||||
UITextViewerContext* m_text;
|
||||
/* 00B4 */ UITextViewer* m_viewer;
|
||||
/* 00B8 */ int unknown_00B8;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -51,3 +51,5 @@ int UIPartyBookingHelpWnd::SendMsg(UIWindow* sender, int message, std::intptr_t
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00911860
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ struct UITextViewerContext;
|
|||
|
||||
class UIPartyBookingHelpWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIPartyBookingHelpWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls, UITextViewerContext& text);
|
||||
void Slot15(int width, int height) override;
|
||||
void Paint() override;
|
||||
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
|
||||
|
|
|
|||
|
|
@ -68,3 +68,5 @@ int UIRebirthWnd::SendMsg(UIWindow* sender, int message, std::intptr_t argument1
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00911950
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ struct UIButtonContext;
|
|||
|
||||
class UIRebirthWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIRebirthWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
|
||||
void Slot15(int width, int height) override;
|
||||
void Paint() override;
|
||||
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue