forked from LexTheGreat/TLX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
civmenu.hpp
206 lines (177 loc) · 4.83 KB
/
civmenu.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
class civmenu {
idd = -1;
movingEnable = true;
controlsBackground[] = {DLG_BACK1, background};
objects[] = { };
controls[] = {
button_disarm,
button_drugs,
arrest_text,
arrest_slider,
bail_text,
bail_slider,
button_arrest,
button_restrain,
ticket_eingabe,
button_ticket,
cancel,
button_heal,
button_inventarsearch,
button_drag,
dummybutton
};
onMouseMoving = "sliderSetRange [3, 1, 5]; sliderSetSpeed [3, 1, 5];sliderSetRange [21, 1, 100]; sliderSetSpeed [21, 1, 5];";
class DLG_BACK1: RscBackground {
x = 0.40; y = 0.25;
w = 0.22; h = 0.68;
};
class background : RscBgRahmen {
x = 0.40; y = 0.25;
w = 0.22; h = 0.68;
text = $STRD_description_civmenu_header;
};
class button_disarm : RscButton {
idc = 1;
x = 0.41; y = 0.28;
w = 0.20; h = 0.04;
text = "Disarm";
action = "[player, civ_player_variable] call interact_disarm; closedialog 0";
};
class button_drugs : RscButton {
idc = 2;
x = 0.41; y = 0.33;
w = 0.20;h = 0.04;
text = "Drug Search";
action = "[player, civ_player_variable] call interact_drug_search; closedialog 0";
};
class arrest_text : RscText {
idc = 4;
x = 0.41; y = 0.38;
w = 0.20; h = 0.04;
style = ST_CENTER;
text = "Prison time (min/s)";
};
class arrest_slider : RscSliderH {
idc = 3;
x = 0.41; y = 0.43;
w = 0.20; h = 0.03;
onSliderPosChanged = "ctrlSetText [4, format[""Prison time (%1 min/s)"", (round(_this select 1))]];";
};
class bail_text : RscText {
idc = 20;
x = 0.41; y = 0.48;
w = 0.20; h = 0.04;
style = ST_CENTER;
text = "Bail amount (%)";
};
class bail_slider : RscSliderH {
idc = 21;
x = 0.41; y = 0.53;
w = 0.20; h = 0.03;
onSliderPosChanged = "ctrlSetText [20, format[""Bail amount (%1 %2)"", (round(_this select 1)), ""%""]];";
};
class button_arrest : RscButton {
idc = 5;
x = 0.41; y = 0.58;
w = 0.20; h = 0.04;
text = $STRD_description_civmenu_arrest;
action = "[player, civ_player_variable, ([(sliderPosition 3)] call parse_number), ([(sliderPosition 21)] call parse_number)] call interact_arrest_player; closedialog 0;";
};
class button_restrain : RscButton {
idc = 6;
x = 0.41; y = 0.63;
w = 0.20; h = 0.04;
text = "Restrain/Release";
action = "[player, civ_player_variable] call interact_toggle_restrains; closedialog 0";
};
class button_drag : RscButtonNice {
idc = 15;
x = 0.41; y = 0.63;
w = 0.20; h = 0.04;
text = "Drag | Release";
action = "[civ_player_variable] call player_drag; closedialog 0";
};
class ticket_eingabe : RscEdit {
idc = 11;
x = 0.41; y = 0.68;
w = 0.20; h = 0.03;
text = "1000";
};
class button_ticket : RscButton {
x = 0.41; y = 0.73;
w = 0.20; h = 0.04;
text = "Ticket";
action = "[player, civ_player_variable, ([(ctrlText 11)] call parse_number)] call interact_ticket; closedialog 0";
};
class cancel : RscButton {
x = 0.41; y = 0.88;
w = 0.20; h = 0.04;
text = $STRD_description_cancel;
action = "closedialog 0";
};
class button_heal : RscButton {
idc = 13;
x = 0.41; y = 0.78;
w = 0.20; h = 0.04;
text = $STRD_description_civmenu_heal;
action = "[player, civ_player_variable] call interact_heal_player; closedialog 0";
};
class button_inventarsearch : RscButton {
idc = 14;
x = 0.41; y = 0.83;
w = 0.20; h = 0.04;
text = "Check Inventory";
action = "[player, civ_player_variable] call interact_check_inventory; closedialog 0";
};
class dummybutton : RscDummy {idc = 1006;};
};
class civinteraktion {
idd = -1;movingEnable = true;
controlsBackground[] = {DLG_BACK1, background};
objects[] = { };
controls[] = {button_steal, cancel, button_inventarsearch, dummybutton, button_drag_civ, button_Ziptie};
class DLG_BACK1: RscBackground {
x = 0.40; y = 0.25;
w = 0.22; h = 0.58;
};
class background : RscBgRahmen {
x = 0.40; y = 0.25;
w = 0.22; h = 0.58;
text = $STRD_description_civmenu_header;
};
class button_steal : RscButton {
idc = 1;
x = 0.41; y = 0.28;
w = 0.20; h = 0.04;
text = "Rob Person";
action = "[player, civ_player_variable] call interact_rob_inventory; closedialog 0";
};
class button_inventarsearch : RscButton {
idc = 14;
x = 0.41; y = 0.33;
w = 0.20; h = 0.04;
text = "Search Person";
action = "[player, civ_player_variable] call interact_check_inventory; closedialog 0";
};
class button_Ziptie : RscButton{
idc = 14;
x = 0.41; y = 0.38;
w = 0.20; h = 0.04;
text = $STRD_description_civmenu_ZipTie;
action = "[player, civ_player_variable] execVM ""ziptie.sqf""; closedialog 0";};
class button_drag_civ : RscButtonNice{
idc = 16;
x = 0.41; y = 0.43;
w = 0.20; h = 0.04;
text = "Drag | Release";
action = "[civ_player_variable] call player_drag; closedialog 0";};
class cancel : RscButton {
x = 0.41; y = 0.78;
w = 0.20; h = 0.04;
text = $STRD_description_cancel;
action = "closedialog 0";
};
class dummybutton : RscDummy {
idc = 1006;
};
};