-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspaz_spawn.hpp
298 lines (279 loc) · 7.94 KB
/
spaz_spawn.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
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
// Control types
#define CT_STATIC 0
#define CT_BUTTON 1
#define CT_EDIT 2
#define CT_SLIDER 3
#define CT_COMBO 4
#define CT_LISTBOX 5
#define CT_TOOLBOX 6
#define CT_CHECKBOXES 7
#define CT_PROGRESS 8
#define CT_HTML 9
#define CT_STATIC_SKEW 10
#define CT_ACTIVETEXT 11
#define CT_TREE 12
#define CT_STRUCTURED_TEXT 13
#define CT_CONTEXT_MENU 14
#define CT_CONTROLS_GROUP 15
#define CT_SHORTCUTBUTTON 16
#define CT_XKEYDESC 40
#define CT_XBUTTON 41
#define CT_XLISTBOX 42
#define CT_XSLIDER 43
#define CT_XCOMBO 44
#define CT_ANIMATED_TEXTURE 45
#define CT_OBJECT 80
#define CT_OBJECT_ZOOM 81
#define CT_OBJECT_CONTAINER 82
#define CT_OBJECT_CONT_ANIM 83
#define CT_LINEBREAK 98
#define CT_USER 99
#define CT_MAP 100
#define CT_MAP_MAIN 101
#define CT_LISTNBOX 102
// Static styles
#define ST_POS 0x0F
#define ST_HPOS 0x03
#define ST_VPOS 0x0C
#define ST_LEFT 0x00
#define ST_RIGHT 0x01
#define ST_CENTER 0x02
#define ST_DOWN 0x04
#define ST_UP 0x08
#define ST_VCENTER 0x0C
#define ST_GROUP_BOX 96
#define ST_GROUP_BOX2 112
#define ST_ROUNDED_CORNER ST_GROUP_BOX + ST_CENTER
#define ST_ROUNDED_CORNER2 ST_GROUP_BOX2 + ST_CENTER
#define ST_TYPE 0xF0
#define ST_SINGLE 0x00
#define ST_MULTI 0x10
#define ST_TITLE_BAR 0x20
#define ST_PICTURE 0x30
#define ST_FRAME 0x40
#define ST_BACKGROUND 0x50
#define ST_GROUP_BOX 0x60
#define ST_GROUP_BOX2 0x70
#define ST_HUD_BACKGROUND 0x80
#define ST_TILE_PICTURE 0x90
#define ST_WITH_RECT 0xA0
#define ST_LINE 0xB0
#define ST_SHADOW 0x100
#define ST_NO_RECT 0x200
#define ST_KEEP_ASPECT_RATIO 0x800
#define ST_TITLE ST_TITLE_BAR + ST_CENTER
// Slider styles
#define SL_DIR 0x400
#define SL_VERT 0
#define SL_HORZ 0x400
#define SL_TEXTURES 0x10
// progress bar
#define ST_VERTICAL 0x01
#define ST_HORIZONTAL 0
// Listbox styles
#define LB_TEXTURES 0x10
#define LB_MULTI 0x20
// Tree styles
#define TR_SHOWROOT 1
#define TR_AUTOCOLLAPSE 2
// MessageBox styles
#define MB_BUTTON_OK 1
#define MB_BUTTON_CANCEL 2
#define MB_BUTTON_USER 4
class RscText
{
access = 0;
idc = -1;
type = CT_STATIC;
style = ST_LEFT;
colorBackground[] = {0,0,0,0};
colorText[] = {1,1,1,1};
text = "";
shadow = 0;
font = "PuristaLight";
sizeEx = 0.08;
fixedWidth = 0;
x = 0;
y = 0;
h = 0;
w = 0;
};
class RscPicture
{
access = 0;
idc = -1;
type = CT_STATIC;
style = ST_PICTURE;
colorBackground[] = {0,0,0,0};
colorText[] = {1,1,1,1};
font = "PuristaLight";
sizeEx = 0;
lineSpacing = 0;
text = "";
fixedWidth = 0;
shadow = 0;
x = 0;
y = 0;
w = 0.2;
h = 0.15;
};
class RscButton
{
access = 0;
type = CT_BUTTON;
text = "";
colorText[] = {1,1,1,1};
colorDisabled[] = {0.4,0.4,0.4,0};
colorBackground[] = {0,0,0,0.75};
colorBackgroundDisabled[] = {0,0.0,0};
colorBackgroundActive[] = {0.75,0.75,0.75,1};
colorFocused[] = {0.75,0.75,0.75,.5};
colorShadow[] = {0.023529,0,0.0313725,1};
colorBorder[] = {0.023529,0,0.0313725,1};
soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
soundPush[] = {"\ca\ui\data\sound\new1",0,0};
soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
style = 2;
x = 0;
y = 0;
w = 0.055589;
h = 0.039216;
shadow = 2;
font = "PuristaLight";
sizeEx = 0.03921;
offsetX = 0.003;
offsetY = 0.003;
offsetPressedX = 0.002;
offsetPressedY = 0.002;
borderSize = 0;
};
class RscFrame
{
type = CT_STATIC;
idc = -1;
style = ST_FRAME;
shadow = 2;
colorBackground[] = {131,131,131,0.8};
colorText[] = {255,255,255,0.9};
font = "PuristaLight";
sizeEx = 0.03;
text = "";
};
class Box
{
type = CT_STATIC;
idc = -1;
style = ST_CENTER;
shadow = 2;
colorBackground[] = { 0, 0, 0, 0.5 };
colorText[] = {1,1,1,0.9};
font = "PuristaLight";
sizeEx = 0.03;
text = "";
};
class spaz_spawn
{
idd=8332;
movingenable=false;
class controls
{
class spaz_background: Box
{
idc = 1;
text = ""; //--- ToDo: Localize;
x = 0.304109 * safezoneW + safezoneX;
y = 0.246969 * safezoneH + safezoneY;
w = 0.391781 * safezoneW;
h = 0.506063 * safezoneH;
};
class spaz_frame: RscFrame
{
idc = 1800;
text = "Menu by Sparrow"; //--- ToDo: Localize;
x = 0.293799 * safezoneW + safezoneX;
y = 0.224966 * safezoneH + safezoneY;
w = 0.412402 * safezoneW;
h = 0.550068 * safezoneH;
};
class spaz_title: RscText
{
idc = 1000;
text = "Choose Your Spawn"; //--- ToDo: Localize;
x = 0.36597 * safezoneW + safezoneX;
y = 0.25797 * safezoneH + safezoneY;
w = 0.206201 * safezoneW;
h = 0.0550068 * safezoneH;
};
class spaz_map: RscPicture
{
idc = 1200;
text = "";
x = 0.314419 * safezoneW + safezoneX;
y = 0.312977 * safezoneH + safezoneY;
w = 0.278371 * safezoneW;
h = 0.429053 * safezoneH;
};
class spaz_sb1: RscButton
{
idc = 1600;
text = "NORTH"; //--- ToDo: Localize;
x = 0.618565 * safezoneW + safezoneX;
y = 0.323978 * safezoneH + safezoneY;
w = 0.0618602 * safezoneW;
h = 0.0440055 * safezoneH;
action = "closedialog 0; _nil=[] spawn {call SPAZ_SPAWN_N;};";
tooltip = "Spawn Area NORTH";
};
class spaz_sb2: RscButton
{
idc = 1601;
text = "SOUTH"; //--- ToDo: Localize;
x = 0.618565 * safezoneW + safezoneX;
y = 0.389986 * safezoneH + safezoneY;
w = 0.0618602 * safezoneW;
h = 0.0440055 * safezoneH;
action = "closedialog 0; _nil=[] spawn {call SPAZ_SPAWN_S;};";
};
class spaz_sb3: RscButton
{
idc = 1602;
text = "EAST"; //--- ToDo: Localize;
x = 0.618565 * safezoneW + safezoneX;
y = 0.455995 * safezoneH + safezoneY;
w = 0.0618602 * safezoneW;
h = 0.0440055 * safezoneH;
action = "closedialog 0; _nil=[] spawn {call SPAZ_SPAWN_E;};";
};
class spaz_sb4: RscButton
{
idc = 1603;
text = "WEST"; //--- ToDo: Localize;
x = 0.618565 * safezoneW + safezoneX;
y = 0.522003 * safezoneH + safezoneY;
w = 0.0618602 * safezoneW;
h = 0.0440055 * safezoneH;
action = "closedialog 0; _nil=[] spawn {call SPAZ_SPAWN_W;};";
};
class spaz_sb5: RscButton
{
idc = 1604;
text = "CENTRAL"; //--- ToDo: Localize;
x = 0.618565 * safezoneW + safezoneX;
y = 0.588011 * safezoneH + safezoneY;
w = 0.0618602 * safezoneW;
h = 0.0440055 * safezoneH;
action = "closedialog 0; _nil=[] spawn {call SPAZ_SPAWN_C;};";
};
class spaz_sbr: RscButton
{
idc = 1605;
text = "RANDOM"; //--- ToDo: Localize;
x = 0.618565 * safezoneW + safezoneX;
y = 0.687023 * safezoneH + safezoneY;
w = 0.0618602 * safezoneW;
h = 0.0440055 * safezoneH;
action = "closedialog 0; _nil=[] spawn {call SPAZ_SPAWN_R;};";
};
};
};