forked from LexTheGreat/TLX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgfx.hpp
112 lines (72 loc) · 2.43 KB
/
gfx.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
class GFX_GrafikEinstellungenDialog
{
idd = -1;
movingEnable = true;
controlsBackground[] = {DLG_BACK1, background};
objects[] = { };
controls[] = {sichtweite_text, sichtweite_button1, Sichtweite_button2, terrain_text, terrain_button1, terrain_button2, button_close, dummybutton};
class DLG_BACK1: Rscbackground
{
x = 0.38; y = 0.17;
w = 0.24; h = 0.38;
};
class background : RscBgRahmen
{
x = 0.38; y = 0.17;
w = 0.24; h = 0.38;
text = $STRD_grafikeinstellungen_header;
};
class sichtweite_text : RscText
{
x = 0.40; y = 0.21;
w = 0.20; h = 0.04;
style = ST_CENTER;
SizeEX = 0.04;
text = $STRD_grafikeinstellungen_header_viewdistance;
};
class sichtweite_button1 : RscButton
{
x = 0.41; y = 0.27;
w = 0.07; h = 0.04;
text = "-100";
action = "if (GFX_ArmaViewDistance >= 100) then {GFX_ArmaViewDistance = GFX_ArmaViewDistance - 100; setViewDistance GFX_ArmaViewDistance; player groupChat format['Viewdistance: %1', GFX_ArmaViewDistance];};";
};
class Sichtweite_button2 : RscButton
{
x = 0.51; y = 0.27;
w = 0.07; h = 0.04;
text = "+100";
action = "if (GFX_ArmaViewDistance <= 10000) then {GFX_ArmaViewDistance = GFX_ArmaViewDistance + 100; setViewDistance GFX_ArmaViewDistance; player groupChat format['Viewdistance: %1', GFX_ArmaViewDistance];};";
};
class terrain_text : RscText
{
x = 0.40; y = 0.33;
w = 0.20; h = 0.04;
style = ST_CENTER;
SizeEX = 0.04;
text = $STRD_grafikeinstellungen_header_terrain;
};
class terrain_button1 : RscButton
{
x = 0.45; y = 0.38;
w = 0.03; h = 0.04;
text = "-";
action = "if (GFX_ArmaTerrainGridsSel > 0) then {GFX_ArmaTerrainGridsSel = GFX_ArmaTerrainGridsSel - 1; setTerrainGrid(GFX_ArmaTerrainGrids select GFX_ArmaTerrainGridsSel); player groupChat format['Terrain Detail: %1/%2.', (GFX_ArmaTerrainGridsSel+1), (count GFX_ArmaTerrainGrids)];};";
};
class terrain_button2 : RscButton
{
x = 0.51; y = 0.38;
w = 0.03; h = 0.04;
text = "+";
action = "if (GFX_ArmaTerrainGridsSel < ((count GFX_ArmaTerrainGrids)-1)) then {GFX_ArmaTerrainGridsSel = GFX_ArmaTerrainGridsSel + 1; setTerrainGrid(GFX_ArmaTerrainGrids select GFX_ArmaTerrainGridsSel); player groupChat format['Terrain Detail: %1/%2.', (GFX_ArmaTerrainGridsSel+1), (count GFX_ArmaTerrainGrids)];};";
};
class button_close : RscButton
{
x = 0.40; y = 0.48;
w = 0.20; h = 0.04;
idc = 10;
text = $STRD_grafikeinstellungen_close;
action = "closedialog 0;";
};
class dummybutton : RscDummy {idc = 1004;};
};