-
Notifications
You must be signed in to change notification settings - Fork 149
/
gui.hpp
169 lines (158 loc) · 5.62 KB
/
gui.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
class RscControlsGroup;
class RscControlsGroupNoScrollbars;
class RscText;
class RscButton;
class RscButtonMenu;
class RscCombo;
class RscStructuredText;
class GVAR(key): RscControlsGroupNoScrollbars {
idc = -1;
enableDisplay = 0;
x = QUOTE(POS_W(0));
y = QUOTE(POS_H(0));
w = QUOTE(POS_W(37));
h = QUOTE(POS_H(1));
class controls {
class EditButton: RscButton {
idc = IDC_KEY_EDIT;
onButtonClick = QUOTE(_this call (uiNamespace getVariable 'FUNC(gui_editKey)'));
onMouseEnter = "(_this select 0) ctrlSetTextColor [0,0,0,1]";
onMouseExit = "(_this select 0) ctrlSetTextColor [1,1,1,1]";
style = ST_LEFT;
shadow = 0;
colorBackground[] = {0,0,0,0};
colorBackgroundActive[] = {1,1,1,1};
colorFocused[] = {0.5,0.5,0.5,0.5};
tooltipColorBox[] = {1,1,1,1};
tooltipColorShade[] = {0,0,0,0.7};
tooltipColorText[] = {1,1,1,1};
x = QUOTE(POS_W(0));
y = QUOTE(POS_H(0));
w = QUOTE(POS_W(17));
h = QUOTE(POS_H(1));
};
class AssignedKey: RscStructuredText {
idc = IDC_KEY_ASSIGNED;
shadow = 0;
tooltipColorBox[] = {1,1,1,1};
tooltipColorShade[] = {0,0,0,0.7};
tooltipColorText[] = {1,1,1,1};
x = QUOTE(POS_W(17));
y = QUOTE(POS_H(0));
w = QUOTE(POS_W(20));
h = QUOTE(POS_H(1));
};
};
};
class GVAR(subCat): RscControlsGroupNoScrollbars {
x = QUOTE(POS_W(1));
y = QUOTE(POS_H(0));
w = QUOTE(POS_W(37));
h = QUOTE(POS_H(1));
class controls {
class Background: RscText {
colorBackground[] = {0.15,0.15,0.15,0.4};
x = QUOTE(POS_W(0));
y = QUOTE(POS_H(0));
w = QUOTE(POS_W(36));
h = QUOTE(POS_H(1));
};
class Name: RscText {
idc = IDC_SUBCATEGORY_NAME;
style = ST_LEFT;
SizeEx = QUOTE(POS_H(1));
x = QUOTE(POS_W(0));
y = QUOTE(POS_H(0));
w = QUOTE(POS_W(15.5));
h = QUOTE(POS_H(1));
};
class Bar: RscText {
colorBackground[] = {1,1,1,1};
style = ST_LEFT;
x = QUOTE(POS_W(0));
y = QUOTE(POS_H(1) - 2 * pixelH);
w = QUOTE(POS_W(36));
h = QUOTE(pixelH);
};
};
};
class RscDisplayConfigure {
class controls {
class CBA_ButtonConfigureAddons: RscButtonMenu {
onButtonClick = QUOTE(_this call (uiNamespace getVariable 'FUNC(gui_configure)'));
idc = IDC_BTN_CONFIGURE_ADDONS;
text = CSTRING(configureAddons);
x = QUOTE(POS_X(20.15));
y = QUOTE(POS_Y(23));
w = QUOTE(POS_W(12.5));
h = QUOTE(POS_H(1));
};
class CBA_ButtonKeyboardFake: RscButtonMenu {
idc = IDC_BTN_KEYBOARD_FAKE;
text = "$STR_A3_RscDisplayConfigure_ButtonKeyboard";
x = QUOTE(POS_X(1));
y = QUOTE(POS_Y(2.1));
w = QUOTE(POS_W(8));
h = QUOTE(POS_H(1));
};
class CBA_AddonsGroup: RscControlsGroupNoScrollbars {
idc = IDC_ADDONS_GROUP;
enableDisplay = 0;
x = QUOTE(POS_X(1));
y = QUOTE(POS_Y(3.1));
w = QUOTE(POS_W(38));
h = QUOTE(POS_H(19.6));
class controls {
class Background: RscText {
colorBackground[] = {0, 0, 0, 0.4};
x = QUOTE(POS_W(0.5));
y = QUOTE(POS_H(3.5));
w = QUOTE(POS_W(37));
h = QUOTE(POS_H(15.8));
};
class AddonText: RscText {
style = ST_RIGHT;
text = ECSTRING(main,AddonText);
x = QUOTE(POS_W(0.5));
y = QUOTE(POS_H(1));
w = QUOTE(POS_W(4));
h = QUOTE(POS_H(1));
sizeEx = QUOTE(POS_H(1));
};
class AddonsList: RscCombo {
idc = IDC_ADDON_LIST;
x = QUOTE(POS_W(4.5));
y = QUOTE(POS_H(1));
w = QUOTE(POS_W(21));
h = QUOTE(POS_H(1));
wholeHeight = QUOTE(POS_H(12));
};
class KeyList: RscControlsGroup {
idc = IDC_KEY_LIST;
x = QUOTE(POS_W(0.5));
y = QUOTE(POS_H(3.5));
w = QUOTE(POS_W(37));
h = QUOTE(POS_H(15.8));
};
class TextAction: RscText {
onLoad = "(_this select 0) ctrlSetText toUpper ctrlText (_this select 0)";
text = "$STR_A3_RscDisplayConfigure_TextAction";
x = QUOTE(POS_W(0.5));
y = QUOTE(POS_H(2.5));
w = QUOTE(POS_W(17));
h = QUOTE(POS_H(1));
colorBackground[] = {0, 0, 0, 1};
};
class TextAssignedKeys: RscText {
onLoad = "(_this select 0) ctrlSetText toUpper ctrlText (_this select 0)";
text = "$STR_A3_RscDisplayConfigure_TextAssignedKeys";
x = QUOTE(POS_W(17.5));
y = QUOTE(POS_H(2.5));
w = QUOTE(POS_W(20));
h = QUOTE(POS_H(1));
colorBackground[] = {0, 0, 0, 1};
};
};
};
};
};