-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrorDlg.h
More file actions
347 lines (265 loc) · 6.39 KB
/
errorDlg.h
File metadata and controls
347 lines (265 loc) · 6.39 KB
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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
#include "parent.h"
#include "defines.h"
#define UI_GRID_X (safezoneX)
#define UI_GRID_Y (safezoneY)
#define UI_GRID_W (2.5 * pixelW * pixelGrid)
#define UI_GRID_H (2.5 * pixelH * pixelGrid)
#define UI_GRID_WAbs (0)
#define UI_GRID_HAbs (0)
/* #Beneqo
$[
1.063,
["scripterrorsdlg",[["safezoneX","safezoneY","0","0"],"2.5 * pixelW * pixelGrid","2.5 * pixelH * pixelGrid","UI_GRID"],0,0,0],
[1200,"ScriptErrorTree : RscControlsGroup",[2,"#(argb,8,8,3)color(1,1,1,1)",["38 * UI_GRID_W + UI_GRID_X","5.5 * UI_GRID_H + UI_GRID_Y","25.5 * UI_GRID_W","19.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
[1600,"",[2,"Close",["39.5 * UI_GRID_W + UI_GRID_X","27 * UI_GRID_H + UI_GRID_Y","7.5 * UI_GRID_W","2 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],["action = |call closeScriptErrorDlg|;"]],
[1601,"",[2,"Reset error list",["39 * UI_GRID_W + UI_GRID_X","2 * UI_GRID_H + UI_GRID_Y","7.5 * UI_GRID_W","2 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],["action = |call scriptErrorDlgReset;|;"]]
]
*/
import RscTree;
class RscImgButton: RscButton
{
type = CT_ACTIVETEXT;
style = ST_PICTURE + ST_KEEP_ASPECT_RATIO;
action = "";
tooltip = "";
color[] = {1,1,1,1};
colorActive[] =
{
1,
1,
1,
1
};
colorDisabled[] =
{
1,
1,
1,
0.25
};
};
// Inside controls group only
#define SEDLG_BUT_W 0.3
#define SEDLG_BUT_H 0.1
// The dialog size
#define SEDLG_W 0.85
#define SEDLG_H 0.85
#define SEDLG_X (safeZoneX + safezoneW - SEDLG_W - 0.01)
#define SEDLG_Y (safeZoneY + safezoneH - SEDLG_H - 0.01)
class ScriptErrorDlg
{
idd = SCRIPT_ERROR_DLG;
movingEnable = false;
//onUnload = "";
class controlsBackground
{
class Background: IGUIBack
{
idc = 3700;
x = SEDLG_X;
y = SEDLG_Y;
w = SEDLG_W;
h = SEDLG_H;
moving = false;
colorBackground[] = {0,0,1,1};
};
};
class objects
{
};
class controls
{
class ScriptErrorCtrlGroup: ControlsGroupNoScrollBars
{
idc = 2303;
x = SEDLG_X;
y = SEDLG_Y;
w = SEDLG_W;
h = SEDLG_H;
class Controls
{
class TreeControlsGroup : RscControlsGroup
{
idc = 1205;
text = "#(argb,8,8,3)color(1,1,1,1)";
x = 0;
y = SEDLG_BUT_H;
w = 0.8;
h = 0.8 - (SEDLG_BUT_H * 2) + 0.04;
// Something messing up scroll bar have to set all these
class VScrollbar
{
color[] =
{
1,
1,
1,
1
};
width = 0.021;
autoScrollEnabled = 1;
};
class HScrollbar
{
color[] =
{
1,
1,
1,
1
};
height = 0.028;
};
style = 0; // Need this instead of 16 for scrollbar arrows
};
class RscButton_1601: RscButton
{
action = "call scriptErrorDlgReset;";
idc = 1601;
text = "Reset error list"; //--- ToDo: Localize;
x = 0;
y = 0;
w = SEDLG_BUT_W;
h = SEDLG_BUT_H;
};
class SettingsButton: RscImgButton
{
action = "call openScriptErrSettings;";
idc = 1603;
text = "a3\missions_f_exp\data\img\lobby\ui_campaign_lobby_background_tablet_button_settings_ca.paa";
x = 0.75;
y = 1 - 0.25;
w = SEDLG_BUT_H;
h = SEDLG_BUT_H;
};
class RscButton_1600: RscButton
{
action = "call closeScriptErrorDlg;";
idc = 1600;
text = "Close"; //--- ToDo: Localize;
x = 0;
y = 1 - 0.25;
w = SEDLG_BUT_W;
h = SEDLG_BUT_H;
};
class RscButton_1602: RscButton
{
action = "call scriptErrorDlgGotoError;";
idc = 1602;
text = "Goto error"; //--- ToDo: Localize;
x = 0.55;
y = 0;
w = SEDLG_BUT_W;
h = SEDLG_BUT_H;
};
/*
class RscButton_1602: RscButton
{
action = "call scriptErrorDlgGotoLine;";
idc = 1602;
text = "Goto file & line"; //--- ToDo: Localize;
x = 0.55;
y = 0;
w = SEDLG_BUT_W;
h = SEDLG_BUT_H;
};
*/
class Version : RscText
{
// text = "");
idc = 1604;
x = 0.40;
y = 1 - 0.25;
w = 0.3;
h = SEDLG_BUT_H;
};
};
};
};
};
/* #Zysycy
$[
1.063,
["errdlgsettings",[["safezoneX","safezoneY","0","0"],"2.5 * pixelW * pixelGrid","2.5 * pixelH * pixelGrid","UI_GRID"],0,0,0],
[1400,"",[2,"",["18 * UI_GRID_W + UI_GRID_X","15.5 * UI_GRID_H + UI_GRID_Y","28 * UI_GRID_W","2.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
[1000,"",[2,"Text editor file path",["18 * UI_GRID_W + UI_GRID_X","12.5 * UI_GRID_H + UI_GRID_Y","9.5 * UI_GRID_W","2.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
[1600,"",[2,"Close",["43.5 * UI_GRID_W + UI_GRID_X","27.5 * UI_GRID_H + UI_GRID_Y","5 * UI_GRID_W","2.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],["action = |call closeScriptErrSettings;|;"]],
[1401,"",[2,"",["18 * UI_GRID_W + UI_GRID_X","21.5 * UI_GRID_H + UI_GRID_Y","28 * UI_GRID_W","2.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]],
[1001,"",[2,"Text editor arguments",["18 * UI_GRID_W + UI_GRID_X","18.5 * UI_GRID_H + UI_GRID_Y","9.5 * UI_GRID_W","2.5 * UI_GRID_H"],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"","-1"],[]]
]
*/
class SEDlgSettings
{
idd = SCRIPT_ERROR_DLG_SET;
movingEnable = false;
//onUnload = "";
class controlsBackground
{
class Background: IGUIBack
{
idc = 3700;
x = 15.5 * UI_GRID_W + UI_GRID_X;
y = 5.5 * UI_GRID_H + UI_GRID_Y;
w = 33 * UI_GRID_W;
h = 24.5 * UI_GRID_H;
moving = false;
colorBackground[] = {0,0,1,1};
};
};
class objects
{
};
class controls
{
////////////////////////////////////////////////////////
// GUI EDITOR OUTPUT START (by GC, v1.063, #Zysycy)
////////////////////////////////////////////////////////
class RscEdit_1400: RscEdit
{
idc = 1400;
x = 18 * UI_GRID_W + UI_GRID_X;
y = 15.5 * UI_GRID_H + UI_GRID_Y;
w = 28 * UI_GRID_W;
h = 2.5 * UI_GRID_H;
};
class RscText_1000: RscText
{
idc = 1000;
text = "Text editor file path"; //--- ToDo: Localize;
x = 18 * UI_GRID_W + UI_GRID_X;
y = 12.5 * UI_GRID_H + UI_GRID_Y;
w = 9.5 * UI_GRID_W;
h = 2.5 * UI_GRID_H;
};
class RscButton_1600: RscButton
{
action = "call closeScriptErrSettings;";
idc = 1600;
text = "Close"; //--- ToDo: Localize;
x = 43.5 * UI_GRID_W + UI_GRID_X;
y = 27.5 * UI_GRID_H + UI_GRID_Y;
w = 5 * UI_GRID_W;
h = 2.5 * UI_GRID_H;
};
class RscEdit_1401: RscEdit
{
idc = 1401;
x = 18 * UI_GRID_W + UI_GRID_X;
y = 21.5 * UI_GRID_H + UI_GRID_Y;
w = 28 * UI_GRID_W;
h = 2.5 * UI_GRID_H;
};
class RscText_1001: RscText
{
idc = 1001;
text = "Text editor arguments"; //--- ToDo: Localize;
x = 18 * UI_GRID_W + UI_GRID_X;
y = 18.5 * UI_GRID_H + UI_GRID_Y;
w = 9.5 * UI_GRID_W;
h = 2.5 * UI_GRID_H;
};
////////////////////////////////////////////////////////
// GUI EDITOR OUTPUT END
////////////////////////////////////////////////////////
};
};