Decompile 2 functions in Source/UI/Acceptance/UIChooseSellBuyWnd.cpp, Source/UI/Lists/UIComboBoxWnd.h, ...
Batch #7267 by superintelligence: 0 byte-identical, 2 confirmed by peer review. - fn_12167 UIComboBoxIDWnd::Slot15: logic confirmed by peer review - fn_12139 IsEquipViewHidden: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag 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
fac8b83c93
commit
8ea25363df
4 changed files with 38 additions and 1 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include "UI/Buttons/UIBitmapButton.h"
|
||||
#include "UI/Buttons/UICheckBox.h"
|
||||
#include "UI/Buttons/UISpriteButton.h"
|
||||
#include "UI/Chat/UIChatRoomMakeWnd.h"
|
||||
#include "UI/Chat/UIWhisperWnd.h"
|
||||
#include "UI/Edit/UIEditCtrl.h"
|
||||
#include "UI/Edit/UIItemTagCtrl.h"
|
||||
|
|
@ -69,7 +70,10 @@
|
|||
#include "UI/Items/UIItemParamChangeDisplayWnd.h"
|
||||
#include "UI/Items/UINotifyItemObtainWnd.h"
|
||||
#include "UI/Lists/UIChatHisBox.h"
|
||||
#include "UI/Lists/UIComboBox.h"
|
||||
#include "UI/Lists/UIComboBoxWnd.h"
|
||||
#include "UI/Lists/UIListBoxID.h"
|
||||
#include "UI/Lists/UIScrollBar.h"
|
||||
#include "UI/Lists/UIListBox.h"
|
||||
#include "UI/Party/UIPartySettingWnd.h"
|
||||
#include "UI/Shortcuts/ShortcutVisibility.h"
|
||||
|
|
@ -2729,3 +2733,32 @@ void UIExchangeWnd::Slot15(int, int) {
|
|||
|
||||
this->m_message0 = 600;
|
||||
}
|
||||
|
||||
// OFFSET: 0x008DE400
|
||||
// FUNCTION: fn_12167
|
||||
void UIComboBoxIDWnd::Slot15(int width, int height) {
|
||||
auto* list = new UIComboBoxID();
|
||||
this->m_list = list;
|
||||
list->Configure(0, 0, width, height, 1);
|
||||
this->AddChild(list);
|
||||
}
|
||||
|
||||
// OFFSET: 0x008D9F20
|
||||
// FUNCTION: fn_12139
|
||||
bool IsEquipViewHidden() {
|
||||
if (g_session.unknown_5C1C > 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const std::uint32_t flags = g_session.m_jobFlags;
|
||||
if (StateFlag04(flags) || StateFlag05(flags) || StateFlag19(flags) || StateFlag23(flags) || StateFlag24(flags) || StateFlag25(flags) ||
|
||||
StateFlag26(flags) || StateFlag22(flags)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// OFFSET: 0x008ED080
|
||||
|
||||
// OFFSET: 0x008F64B0
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
class UIChatRoomMakeWnd : public UIFrameWnd {
|
||||
public:
|
||||
UIChatRoomMakeWnd(UIWindowContext& windows, UIFrameContext& frames);
|
||||
void Paint() override;
|
||||
|
||||
/* 00B4 */ std::string m_title;
|
||||
/* 00CC */ unsigned char unknown_00CC[0x2C];
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ public:
|
|||
/* 00EC */ WindowPlacement* m_placement;
|
||||
|
||||
void Slot11() override;
|
||||
void UpdateScroll();
|
||||
void Slot25(int x, int y) override;
|
||||
void Slot26(int x, int y) override;
|
||||
void Slot33(int x, int y) override;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
||||
class UIListBox;
|
||||
class UIListBoxID;
|
||||
|
||||
class UIComboBoxWnd : public UIFrameWnd {
|
||||
public:
|
||||
|
|
@ -19,10 +20,11 @@ public:
|
|||
|
||||
class UIComboBoxIDWnd : public UIFrameWnd {
|
||||
public:
|
||||
/* 00B4 */ UIListBox* m_list;
|
||||
/* 00B4 */ UIListBoxID* m_list;
|
||||
/* 00B8 */ UIWindow* m_owner;
|
||||
|
||||
void Resize(int width, int height) override;
|
||||
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