forked from Stellaris-code/hollyhock-fork
-
Notifications
You must be signed in to change notification settings - Fork 11
/
longLabel.hpp
40 lines (30 loc) · 841 Bytes
/
longLabel.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "util.hpp"
/// @private
struct GUILongLabel_Wrapped_VTable {
VTABLE_FAKE_ENTRY(9, 0);
VTableFunction<void> Refresh;
VTABLE_FAKE_ENTRY(33, 1);
// Args: text
VTableFunction<void, const char *> SetText;
};
/// @private
struct GUILongLabel_Wrapped {
uint8_t unknown0[0x4C];
struct GUILongLabel_Wrapped_VTable *vtable;
uint8_t unknown1[0x5C];
};
static_assert(sizeof(struct GUILongLabel_Wrapped) == 0xAC);
class GUILongLabel : public GUIElement {
public:
GUILongLabel(
uint16_t leftX, uint16_t topY, uint16_t rightX, uint16_t bottomY,
const char *text
);
void SetText(const char *text);
void Refresh();
};
/// @cond INTERNAL
extern "C"
void *GUILongLabel_ctor(void *longLabel, uint16_t bounds[4], int unk0, int unk1, const char *text, int unk2);
/// @endcond