Decompile 4 functions in Source/UI/SelectPackageItemBox/UISelectPackageItemBox.cpp, Source/UI/SelectPackageItemBox/SelectPackageItemBox.h
Batch #4981 by Yommy: 4 byte-identical, 0 confirmed by peer review. - fn_16779 CUISelectPackageItemBox::OnCancel: byte-identical - fn_16782 CUISelectPackageItemBox::OnSelectItem: byte-identical - fn_16784 SelectPackageItemBox::CUIItemInfo::Paint: byte-identical - fn_16787 SelectPackageItemBox::CUITabInfo::Slot16: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
9aad601a95
commit
73c5d38864
2 changed files with 77 additions and 4 deletions
|
|
@ -5,23 +5,55 @@
|
|||
#include "UI/FrameSkin.h"
|
||||
#include "UI/Lists/UIListBoxTemplate.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
|
||||
class CUIGameItem;
|
||||
class CUIStaticImage;
|
||||
class CUITextButton;
|
||||
|
||||
namespace SelectPackageItemBox {
|
||||
class CTabInfoData {
|
||||
public:
|
||||
/* 0000 */ unsigned char unknown_0000[0x08];
|
||||
/* 0008 */ std::string unknown_0008;
|
||||
/* 0000 */ int packageId;
|
||||
/* 0004 */ int tabIndex;
|
||||
/* 0008 */ std::string name;
|
||||
};
|
||||
|
||||
class CUIItemInfo : public CUIListItem {};
|
||||
class CUIItemInfo : public CUIListItem {
|
||||
public:
|
||||
void Slot16() override;
|
||||
void Paint() override;
|
||||
|
||||
class CUITabInfo : public CUIListItem {};
|
||||
/* 00E8 */ CUIStaticImage* image;
|
||||
/* 00EC */ CUIGameItem* gameItem;
|
||||
/* 00F0 */ UIWindow* nameText;
|
||||
};
|
||||
|
||||
class CUITabInfo : public CUIListItem {
|
||||
public:
|
||||
void Slot16() override;
|
||||
|
||||
/* 00E8 */ UIWindow* nameText;
|
||||
};
|
||||
}
|
||||
|
||||
class CUISelectPackageItemBox : public CUIFrameWnd {
|
||||
public:
|
||||
virtual void Slot53();
|
||||
|
||||
void OnCancel();
|
||||
void OnOk();
|
||||
void OnSelectItem(SelectPackageItemBox::CUIItemInfo* item, const ITEM_INFO& data);
|
||||
void OnSelectTab(SelectPackageItemBox::CUITabInfo* tab, const SelectPackageItemBox::CTabInfoData& data);
|
||||
|
||||
/* 00D8 */ UIWindow* title;
|
||||
/* 00DC */ CUIListBoxEx<SelectPackageItemBox::CUITabInfo, SelectPackageItemBox::CTabInfoData>* tabList;
|
||||
/* 00E0 */ CUIListBoxEx<SelectPackageItemBox::CUIItemInfo, ITEM_INFO>* itemList;
|
||||
/* 00E4 */ CUITextButton* okButton;
|
||||
/* 00E8 */ CUITextButton* cancelButton;
|
||||
/* 00EC */ int sourceIndex;
|
||||
/* 00F0 */ int packageId;
|
||||
};
|
||||
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,14 @@
|
|||
#include "UI/SelectPackageItemBox/SelectPackageItemBox.h"
|
||||
#include "Client/Mode/ModeMgr.h"
|
||||
#include "Contents/Items/SelectPackageItemMgr.h"
|
||||
#include "Contents/MessageTable.h"
|
||||
#include "UI/Items/UIGameItem.h"
|
||||
#include "UI/Window/UIWindowMgr.h"
|
||||
#include "UI/Window/WindowDialogs.h"
|
||||
#include "Utility/Text/FormatString.h"
|
||||
|
||||
#include <iterator>
|
||||
#include <new>
|
||||
|
||||
// OFFSET: 0x00A693D0
|
||||
// FUNCTION: fn_16659
|
||||
|
|
@ -35,3 +45,34 @@ void CUISelectPackageItemBox::Slot53() {
|
|||
this->SetSkinColors(0, 0, 0, 0);
|
||||
this->m_buttonBarStyle = 3;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A6FBC0
|
||||
// FUNCTION: fn_16779
|
||||
void CUISelectPackageItemBox::OnCancel() {
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A6FBE0
|
||||
|
||||
// OFFSET: 0x00A6FD00
|
||||
|
||||
// OFFSET: 0x00A6FE10
|
||||
// FUNCTION: fn_16782
|
||||
void CUISelectPackageItemBox::OnSelectItem(SelectPackageItemBox::CUIItemInfo*, const ITEM_INFO&) {
|
||||
}
|
||||
|
||||
namespace SelectPackageItemBox {
|
||||
// OFFSET: 0x00A703A0
|
||||
// FUNCTION: fn_16784
|
||||
void CUIItemInfo::Paint() {
|
||||
this->ClearSurface(0xFFFF00FF);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A703B0
|
||||
|
||||
// OFFSET: 0x00A705E0
|
||||
// FUNCTION: fn_16787
|
||||
void CUITabInfo::Slot16() {
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A709E0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue