-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathArtyDialog.hpp
166 lines (155 loc) · 5.92 KB
/
ArtyDialog.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
class ArtyDialog {
idd = 1265;
movingEnable = false;
objects[] = {};
enableSimulation = 1; // 1 (true) to allow world simulation to be running in the background, 0 to freeze it
enableDisplay = 0; // 1 (true) to allow scene rendering in the background
//onLoad = "_this call compile preprocessFileLineNumbers 'RscTestControlTypes.sqf';";
//onUnload = "systemChat str ['onUnload',_this]; false";
//onChildDestroyed = "systemChat str ['onChildDestroyed',_this]; false";
class controlsBackground {
};
class controls {
class RscPicture_1266: RscPicture
{
idc = 1265;
//text = "#(argb,8,8,3)color(1,1,1,1)";
colorText[] = {1, 1, 1, 0.4};
text="WLA.paa";
x = safeZoneX + safeZoneW - ((1+safeZoneH)/(2.8181))*0.8;
y = safeZoneY + safeZoneH - ((1+safeZoneH)/(2.8181))*0.4;
h = ((1+safeZoneH)/(2.8181))*0.4;
w = ((1+safeZoneH)/(2.8181))*0.8;
};
class _CT_MAP_MAIN: _CT_MAP
{
access = 0; // Control access (0 - ReadAndWrite, 1 - ReadAndCreate, 2 - ReadOnly, 3 - ReadOnlyVerified)
idc = 888; // Control identification (without it, the control won't be displayed)
type = CT_MAP_MAIN; // Type
style = ST_PICTURE; // Style
default = 0; // Control selected by default (only one within a display can be used)
blinkingPeriod = 0; // Time in which control will fade out and back in. Use 0 to disable the effect.
x = 2 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X; // Horizontal coordinates
y = 2 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y; // Vertical coordinates
w = 38 * GUI_GRID_CENTER_W; // Width
h = 12 * GUI_GRID_CENTER_H; // Height
//tooltip = "CT_MAP_MAIN"; // Tooltip text
tooltipColorShade[] = {0,0,0,1}; // Tooltip background color
tooltipColorText[] = {1,1,1,1}; // Tooltip text color
tooltipColorBox[] = {1,1,1,1}; // Tooltip frame color
showCountourInterval = 1; // Show Legend
class Legend
{
x = 30 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X; // Horizontal coordinates
y = 9 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y; // Vertical coordinates
w = 8 * GUI_GRID_CENTER_W; // Width
h = 4 * GUI_GRID_CENTER_H; // Height
colorBackground[] = {1,1,1,0.5}; // Fill color
font = GUI_FONT_NORMAL; // Font from CfgFontFamilies
sizeEx = 0.8 * GUI_GRID_CENTER_H; // Text size
color[] = {0,0,0,1}; // Text color
};
/*
onCanDestroy = "systemChat str ['onCanDestroy',_this]; true";
onDestroy = "systemChat str ['onDestroy',_this]; false";
onSetFocus = "systemChat str ['onSetFocus',_this]; false";
onKillFocus = "systemChat str ['onKillFocus',_this]; false";
onKeyDown = "systemChat str ['onKeyDown',_this]; false";
onKeyUp = "systemChat str ['onKeyUp',_this]; false";
onMouseButtonDown = "systemChat str ['onMouseButtonDown',_this]; false";
onMouseButtonUp = "systemChat str ['onMouseButtonUp',_this]; false";
onMouseButtonClick = "systemChat str ['onMouseButtonClick',_this]; false";
onMouseButtonDblClick = "systemChat str ['onMouseButtonDblClick',_this]; false";
onMouseZChanged = "systemChat str ['onMouseZChanged',_this]; false";
_map ctrlMapAnimAdd [1, 0.1, getMarkerPos "anim1"];
ctrlMapAnimCommit _map;
onMouseMoving = "";
onMouseHolding = "";
onDraw = "";
*/
onMouseButtonClick = """MARTYPOS"" setmarkerpos ((_this select 0) ctrlMapScreenToWorld [_this select 2,_this select 3]); false";
};
class RscFrame_1800: RscFrame
{
idc = 1800;
text = "Call Mortar/Artillery Strike"; //--- ToDo: Localize;
x = 1 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X;
y = 1 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y;
w = 40 * GUI_GRID_CENTER_W;
h = 18 * GUI_GRID_CENTER_H;
};
class RscListbox_1500: RscListbox
{
idc = 1500;
x = 2 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X;
y = 14.5 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y;
w = 10 * GUI_GRID_CENTER_W;
h = 4 * GUI_GRID_CENTER_H;
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1.2)";
onLBSelChanged = "(lbText [1500, (lbCurSel 1500)]) SPAWN SAOKARTYF1;";
};
class RscListbox_1501: RscListbox
{
idc = 1501;
x = 12.5 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X;
y = 14.5 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y;
w = 10 * GUI_GRID_CENTER_W;
h = 4 * GUI_GRID_CENTER_H;
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1.2)";
onLBSelChanged = "[] SPAWN SAOKARTYF3;";
};
class RscButton_1601: RscButton
{
idc = 1601;
text = "Call Strike"; //--- ToDo: Localize;
x = 36 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X;
y = 15.5 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y;
w = 4 * GUI_GRID_CENTER_W;
h = 1 * GUI_GRID_CENTER_H;
action = "[] CALL SAOKARTYF2;closeDialog 0;";
};
class RscButton_1602: RscButton
{
idc = 1602;
text = "Exit"; //--- ToDo: Localize;
x = 36 * GUI_GRID_CENTER_W + GUI_GRID_CENTER_X;
y = 17 * GUI_GRID_CENTER_H + GUI_GRID_CENTER_Y;
w = 4 * GUI_GRID_CENTER_W;
h = 1 * GUI_GRID_CENTER_H;
action = "closeDialog 0;";
};
class _CT_SLIDER_Value1: _CT_STATIC // Slider value (see below)
{
idc = 1103;
style = ST_CENTER;
blinkingPeriod = 0;
x = 30.5 * GUI_GRID_W + GUI_GRID_X;
y = 14 * GUI_GRID_H + GUI_GRID_Y;
w = 2 * GUI_GRID_W;
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 35) * 1.5)";
h = 2 * GUI_GRID_H;
colorBackground[] = {0,0,0,0};
fixedWidth = 0;
};
class _CT_SLIDER_1901: _CT_SLIDER
{
idc = 1901;
x = 23.5 * GUI_GRID_W + GUI_GRID_X;
y = 16 * GUI_GRID_H + GUI_GRID_Y;
w = 14 * GUI_GRID_W;
h = 2 * GUI_GRID_H;
//onSliderPosChanged = "[] SPAWN SAOKCONSSLIDER2;";
class Value // Link to a control which will show slider value
{
idc = 1103; // Control IDC (has to be defined ABOVE the slider control)
format = "%.f"; // Text format, value is represented by variable %g (float) or %.f (integer)
type = SPTPlain; // Format, can be SPTPlain or SPTPercents (multiplies the value by 100)
colorBase[] = {1,1,1,1}; // Text color
colorActive[] = {1,0.5,0,1}; // Text color when the slider is active
};
};
////////////////////////////////////////////////////////
// GUI EDITOR OUTPUT END
////////////////////////////////////////////////////////
};
};