-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCGuiFrame.bt
182 lines (162 loc) · 2.71 KB
/
CGuiFrame.bt
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#ifndef _CGUIFRAME
#define _CGUIFRAME
#include "CVector2i.bt"
#include "CColor4f.bt"
#include "CTransform4f.bt"
typedef enum {
kGWT_BaseWidget,
kGWT_Camera,
kGWT_AuiEnergyBar,
kGWT_Group,
kGWT_HeadWidget,
kGWT_AuiImagePane,
kGWT_Light,
kGWT_MapWindow,
kGWT_AuiMeter,
kGWT_Model,
kGWT_SliderGroup,
kGWT_TableGroup,
kGWT_TextPane,
} EGuiWidgetType;
typedef struct {
uint projectionType;
if (projectionType) {
float unk1;
float unk2;
float unk3;
float unk3;
} else {
float unk1;
float unk2;
}
} CGuiCamera;
typedef struct {
uint unk;
} CAuiEnergyBarT01;
typedef struct {
uint unk;
} CGuiGroup;
typedef struct {
} CGuiHeadWidget;
typedef struct {
uint unkIntCount;
uint unkInts[unkIntCount];
uint vecCount;
CVector3f vecs[vecCount];
} CAuiImagePane;
typedef struct {
} CGuiLight;
typedef struct {
uint vecCount;
CVector3f vecs[vecCount];
} CGuiMapWindow;
typedef struct {
CGuiGroup group;
uint unk;
} CAuiMeter;
typedef struct {
uint intCount;
if (intCount) {
uint ints[intCount];
}
uint unk;
} CGuiModel;
typedef struct {
uint unk1;
float unk2;
uint unk3;
float unk4;
} CGuiSliderGroup;
typedef struct {
uint unk1;
uint unk2;
uchar unk3;
} CGuiTableGroup;
typedef struct {
uint fontLen;
char font[fontLen];
uchar unk1;
uchar unk2;
uint unk3;
uint unk4;
float unk5;
CColor4f col1;
CColor4f col2;
CColor4f col3;
uint unk6;
CVector2i unk7;
CVector2i unk8;
CVector2i unk9;
uchar unk10;
} CGuiTextProperties;
typedef struct {
CGuiTextProperties properties;
} CGuiTextSupport;
typedef struct {
uint unkIntCount;
uint unkInts[unkIntCount];
float unk2;
float unk3;
CVector3f unk4;
CGuiTextSupport textSupport;
} CGuiTextPane;
typedef struct {
EGuiWidgetType type;
uint unk1;
uint unk2;
uint unk3;
uint nameLen;
char name[nameLen];
uchar unk4;
uchar unk5;
uchar unk6;
CColor4f color;
uint unk7;
uint unk8;
CTransform4f xf;
switch (type) {
case 0:
break;
case 1:
CGuiCamera camera;
break;
case 2:
CAuiEnergyBarT01 energyBar01;
break;
case 3:
CGuiGroup group;
break;
case 4:
//CGuiHeadWidget headWidget;
break;
case 5:
CAuiImagePane imagePane;
break;
case 6:
//CGuiLight light;
break;
case 7:
CGuiMapWindow mapWindow;
break;
case 8:
CAuiMeter meter;
break;
case 9:
CGuiModel model;
break;
case 10:
CGuiSliderGroup sliderGroup;
break;
case 11:
CGuiTableGroup tableGroup;
break;
case 12:
CGuiTextPane textPane;
}
} CGuiWidget;
typedef struct {
GUID guid;
uint widgetCount;
CGuiWidget widgets[widgetCount] <optimize = false>;
} CGuiFrame;
#endif // _CGUIFRAME