9 struct GUIDialog_Wrapped_VTable {
26 uint32_t fakeentrypadding[2];
28 VTABLE_FAKE_ENTRY(1, 0);
32 VTableFunction<int, struct GUIDialog_OnEvent_Data *> OnEvent;
34 VTABLE_FAKE_ENTRY(1, 1);
38 VTableFunction<void, void *, int> AddElement;
40 VTABLE_FAKE_ENTRY(4, 2);
42 VTableFunction<void> Refresh;
44 VTABLE_FAKE_ENTRY(23, 3);
47 VTableFunction<int> ShowDialog;
49 VTABLE_FAKE_ENTRY(20, 4);
53 struct GUIDialog_Wrapped {
54 uint8_t unknown0[0x10];
62 uint8_t unknown1[0x34];
64 struct GUIDialog_Wrapped_VTable *vtable;
66 uint8_t unknown2[0x58];
68 static_assert(
sizeof(
struct GUIDialog_Wrapped) == 0xA8);
87 return (type >> 4) - 8;
102 enum Alignment :
int {
108 enum KeyboardState :
int {
109 KeyboardStateNone = 0,
110 KeyboardStateMath1 = 1,
111 KeyboardStateMath2 = 4,
112 KeyboardStateMath3 = 5,
113 KeyboardStateTrig = 6,
114 KeyboardStateVar = 7,
115 KeyboardStateABC = 8,
116 KeyboardStateCatalog = 9,
117 KeyboardStateAdvance = 10,
118 KeyboardStateNumber = 11
121 enum DialogResult :
int {
122 DialogResultOK = 0x3EA,
123 DialogResultCancel = 0x3EB
127 enum Height height,
enum Alignment alignment,
129 enum KeyboardState keyboard
144 struct GUIDialog_Wrapped_VTable *m_oldVTable;
145 struct GUIDialog_Wrapped_VTable m_vtable;
152 struct GUIDialog_Wrapped *GUIDialog_ctor(
154 int height,
int alignment,
156 int unknown2,
int unknown3,
Definition: dialog.hpp:91
uint16_t GetRightX()
Definition: dialog.cpp:74
uint16_t GetBottomY()
Definition: dialog.cpp:83
uint16_t GetLeftX()
Definition: dialog.cpp:56
void Refresh()
Definition: dialog.cpp:102
void AddElement(GUIElement &element)
Definition: dialog.cpp:92
GUIDialog(enum Height height, enum Alignment alignment, const char *title, enum KeyboardState keyboard)
Definition: dialog.cpp:12
DialogResult ShowDialog()
Definition: dialog.cpp:111
uint16_t GetTopY()
Definition: dialog.cpp:65
Definition: dialog.hpp:70
uint16_t data
Arbitary data. Usage dependent on event and element type.
Definition: dialog.hpp:74
constexpr uint16_t GetEventID()
Definition: dialog.hpp:86
void * element
The pointer to the internal GUI element class the event refers to.
Definition: dialog.hpp:77