-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathliberation_recycle.hpp
155 lines (153 loc) · 4.31 KB
/
liberation_recycle.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
class liberation_recycle {
idd = 5751;
movingEnable = false;
controlsBackground[] = { "OuterBG", "RecycleBG", "OuterBG_F", "InnerBG", "InnerBG_F" };
controls[] = { "Header", "ButtonClose",
"ManpowerImageShadow","AmmoImageShadow","FuelImageShadow",
"ManpowerImage","AmmoImage","FuelImage",
"Infotext","LabelManpower","LabelAmmo","LabelFuel",
"RecycleButton","CancelButton"
};
objects[] = {};
class RecycleBG : BgPicture {
x = (0.35 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
y = (0.4 * safezoneH + safezoneY) - (3 * BORDERSIZE);
w = (0.3 * safezoneW) + (4 * BORDERSIZE);
h = (0.2 * safezoneH) + (6 * BORDERSIZE);
};
class OuterBG : StdBG{
colorBackground[] = COLOR_BROWN;
x = (0.35 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
y = (0.4 * safezoneH + safezoneY) - (3 * BORDERSIZE);
w = (0.3 * safezoneW) + (4 * BORDERSIZE);
h = (0.2 * safezoneH) + (6 * BORDERSIZE);
};
class OuterBG_F : OuterBG {
style = ST_FRAME;
};
class InnerBG : OuterBG {
colorBackground[] = COLOR_GREEN;
x = (0.35 * safezoneW + safezoneX) - ( BORDERSIZE);
y = 0.45 * safezoneH + safezoneY - (1.5 * BORDERSIZE);
w = (0.3 * safezoneW) + (2 * BORDERSIZE);
h = 0.15 * safezoneH + (3 * BORDERSIZE);
};
class InnerBG_F : InnerBG {
style = ST_FRAME;
};
class Header : StdHeader{
x = 0.35 * safezoneW + safezoneX - (BORDERSIZE);
y = 0.39 * safezoneH + safezoneY;
w = 0.3 * safezoneW + ( 2 * BORDERSIZE);
h = 0.05 * safezoneH - (BORDERSIZE);
text = $STR_RECYCLING;
};
class ButtonClose : StdButton{
idc = 101;
x = 0.632 * safezoneW + safezoneX;
w = 0.015 * safezoneW;
h = 0.02 * safezoneH;
y = 0.402 * safezoneH + safezoneY;
text = "X";
action = "closeDialog 0";
};
class IconImage {
idc = -1;
type = CT_STATIC;
style = ST_PICTURE;
colorText[] = {1, 1, 1, 1};
colorBackground[] = {0, 0, 0, 1};
font = FontM;
sizeEx = 0.023;
y = (0.5 * safezoneH + safezoneY);
w = (0.015 * safezoneW);
h = (0.025 * safezoneH);
moving = false;
};
class ManpowerImage : IconImage {
idc = 1085;
x = (0.42 * safezoneW + safezoneX);
text = "res\ui_manpo.paa";
};
class AmmoImage : IconImage {
idc = 1085;
x = (0.48 * safezoneW + safezoneX);
text = "res\ui_ammo.paa";
};
class FuelImage : IconImage {
idc = 1085;
x = (0.54 * safezoneW + safezoneX);
text = "res\ui_fuel.paa";
};
class ManpowerImageShadow : IconImage {
idc = 1085;
x = (0.42 * safezoneW + safezoneX) + 0.003;
text = "res\ui_manpo.paa";
colorText[] = {0, 0, 0, 1};
y = (0.5 * safezoneH + safezoneY) + 0.005;
};
class AmmoImageShadow : IconImage {
idc = 1085;
x = (0.48 * safezoneW + safezoneX) + 0.003;
text = "res\ui_ammo.paa";
colorText[] = {0, 0, 0, 1};
y = (0.5 * safezoneH + safezoneY) + 0.005;
};
class FuelImageShadow : IconImage {
idc = 1085;
x = (0.54 * safezoneW + safezoneX) + 0.003;
text = "res\ui_fuel.paa";
colorText[] = {0, 0, 0, 1};
y = (0.5 * safezoneH + safezoneY) + 0.005;
};
class Infotext : StdText{
idc = 134;
style = ST_CENTER;
x = (0.35 * safezoneW + safezoneX);
w = (0.3 * safezoneW);
h = (0.03 * safezoneH);
y = (0.45 * safezoneH + safezoneY);
colorText[] = {0.9, 0.9, 0.9, 1};
};
class LabelNumber : StdText{
y = (0.5 * safezoneH + safezoneY) - (0.5 * BORDERSIZE);
w = (0.1 * safezoneW);
h = (0.03 * safezoneH);
sizeEx = 0.03 * safezoneH;
};
class LabelManpower : LabelNumber{
idc = 131;
x = (0.44 * safezoneW + safezoneX) - BORDERSIZE;
colorText[] = {0, 0.75, 0, 1};
};
class LabelAmmo : LabelNumber{
idc = 132;
x = (0.5 * safezoneW + safezoneX) - BORDERSIZE;
colorText[] = {0.75, 0, 0, 1};
};
class LabelFuel : LabelNumber{
idc = 133;
x = (0.56 * safezoneW + safezoneX) - BORDERSIZE;
colorText[] = {0.75, 0.75, 0, 1};
};
class RecycleButton : StdButton{
idc = 120;
x = (0.4 * safezoneW + safezoneX) - (BORDERSIZE);
y = (0.55 * safezoneH + safezoneY);
w = (0.1 * safezoneW) - (BORDERSIZE);
h = (0.045 * safezoneH);
sizeEx = 0.025 * safezoneH;
text = $STR_RECYCLING_PROCEED;
action = "dorecycle = 1;";
};
class CancelButton : StdButton{
idc = 121;
x = (0.5 * safezoneW + safezoneX) + (BORDERSIZE);
y = (0.55 * safezoneH + safezoneY);
w = (0.1 * safezoneW);
h = (0.045 * safezoneH);
sizeEx = 0.025 * safezoneH;
text = $STR_RECYCLING_CANCEL;
action = "closeDialog 0";
};
};