Merge branch 'master' into terencehill/menu_dialogs_cleanups
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / skin-customizables.inc
1 #if 0
2 "Perl code to convert this to a skinvalues.txt file.";
3 print "title Generic\n";
4 print "author Morphed\n";
5 print "\n";
6 while(<DATA>)
7 {
8         chomp;
9         if(/^\s*(?:SKINFLOAT|SKINVECTOR)\(([A-Z_]+), ([-'0-9. ]+)\);$/) #'
10         {
11                 printf "%-31s %s\n", $1, $2;
12         }
13         elsif(/^\s*SKINSTRING\(([A-Z_]+), "(.*)"\);$/)
14         {
15                 # printf "//   uses \"$2\" images\n";
16                 printf "%-31s %s\n", $1, $2;
17         }
18         elsif(/^$/)
19         {
20                 print "\n";
21         }
22         elsif(/^\s+\/\/ (.*)$/)
23         {
24                 print "// $1\n";
25         }
26         elsif(/^SKINBEGIN$|^SKINEND$|^#endif$/)
27         {
28         }
29         else
30         {
31                 print "!!! $_\n";
32         }
33 }
34 __DATA__
35 #endif
36 SKINBEGIN
37         // font sizes (used for everything)
38         SKINFLOAT(FONTSIZE_NORMAL, 12);
39         SKINFLOAT(HEIGHT_NORMAL, 1.5);
40         SKINFLOAT(FONTSIZE_TITLE, 16);
41         SKINFLOAT(HEIGHT_TITLE, 1.5);
42         SKINFLOAT(HEIGHT_ZOOMEDTITLE, -1);
43
44         // tooltips
45         SKINSTRING(GFX_TOOLTIP, "tooltip");
46         SKINVECTOR(MARGIN_TOOLTIP, '5 5 0');
47         SKINVECTOR(BORDER_TOOLTIP, '1 1 0');
48         SKINFLOAT(FONTSIZE_TOOLTIP, 12);
49         SKINFLOAT(ALPHA_TOOLTIP, 0.7);
50         SKINFLOAT(WIDTH_TOOLTIP, 0.3);
51         SKINVECTOR(AVOID_TOOLTIP, '8 8 0');
52
53         // the individual dialog background colors
54         SKINVECTOR(COLOR_DIALOG_FIRSTRUN, '0.7 0.7 1');
55         SKINVECTOR(COLOR_DIALOG_MULTIPLAYER, '0.7 0.7 1');
56         SKINVECTOR(COLOR_DIALOG_SETTINGS, '0.7 0.7 1');
57         SKINVECTOR(COLOR_DIALOG_TEAMSELECT, '1 1 1');
58         SKINVECTOR(COLOR_DIALOG_QUIT, '1 0 0');
59         SKINVECTOR(COLOR_DIALOG_ADVANCED, '0.7 0.7 1');
60         SKINVECTOR(COLOR_DIALOG_MUTATORS, '0.7 0.7 1');
61         SKINVECTOR(COLOR_DIALOG_MAPINFO, '0.7 0.7 1');
62         SKINVECTOR(COLOR_DIALOG_USERBIND, '0.7 0.7 1');
63         SKINVECTOR(COLOR_DIALOG_SINGLEPLAYER, '1 1 0.7');
64         SKINVECTOR(COLOR_DIALOG_CREDITS, '0.7 0.7 1');
65         SKINVECTOR(COLOR_DIALOG_WEAPONS, '1 0.7 0.7');
66         SKINVECTOR(COLOR_DIALOG_WAYPOINTS, '0.7 0.7 1');
67         SKINVECTOR(COLOR_DIALOG_SERVERINFO, '0.7 0.7 1');
68         SKINVECTOR(COLOR_DIALOG_CVARS, '1 0 0');
69
70         // nexposee positions of windows (they are the scale transformation
71         // centers, NOT the actual positions of the windows!)
72         SKINVECTOR(POSITION_DIALOG_MULTIPLAYER, '0.9 0.5 0');
73         SKINVECTOR(POSITION_DIALOG_SINGLEPLAYER, '0.1 0.1 0');
74         SKINVECTOR(POSITION_DIALOG_SETTINGS, '0.1 0.9 0');
75         SKINVECTOR(POSITION_DIALOG_CREDITS, '0.3 1.2 0');
76         SKINVECTOR(POSITION_DIALOG_QUIT, '0.9 1.2 0');
77
78         // mouse
79         SKINSTRING(GFX_CURSOR, "cursor");
80         SKINVECTOR(SIZE_CURSOR, '32 32 0');
81         SKINVECTOR(OFFSET_CURSOR, '0 0 0');
82         SKINFLOAT(ALPHA_CURSOR_INTRO, 0);
83
84         // general
85         SKINVECTOR(COLOR_BACKGROUND, '0 0 0');
86         SKINSTRING(GFX_BACKGROUND, "background");
87         SKINSTRING(GFX_BACKGROUND_INGAME, "background_ingame");
88         // alignment string of num keys for orientations, or l = letterbox, c = crop, h = height, w = width, s = scale
89         SKINSTRING(ALIGN_BACKGROUND, "5");
90         SKINSTRING(ALIGN_BACKGROUND_INGAME, "5");
91         SKINFLOAT(ALPHA_BACKGROUND_INGAME, 0.7);
92         SKINFLOAT(ALPHA_DISABLED, 0.2);
93         SKINFLOAT(ALPHA_BEHIND, 0.5);
94         SKINFLOAT(ALPHA_TEXT, 0.7);
95
96         // item: button
97         SKINSTRING(GFX_BUTTON, "button");
98         SKINSTRING(GFX_BUTTON_GRAY, "buttongray");
99         SKINSTRING(GFX_BUTTON_BIG, "bigbutton");
100         SKINSTRING(GFX_BUTTON_BIG_GRAY, "bigbuttongray");
101         SKINVECTOR(COLOR_BUTTON_N, '1 1 1');
102         SKINVECTOR(COLOR_BUTTON_C, '1 1 1');
103         SKINVECTOR(COLOR_BUTTON_F, '1 1 1');
104         SKINVECTOR(COLOR_BUTTON_D, '1 1 1');
105         SKINFLOAT(MARGIN_BUTTON, 0.5);
106
107         // item: campaign
108         SKINFLOAT(ALPHA_CAMPAIGN_SELECTABLE, 0.8);
109         SKINVECTOR(COLOR_CAMPAIGN_SELECTABLE, '1 1 1');
110         SKINFLOAT(ALPHA_CAMPAIGN_CURRENT, 1);
111         SKINVECTOR(COLOR_CAMPAIGN_CURRENT, '1 1 0');
112         SKINFLOAT(ALPHA_CAMPAIGN_FUTURE, 0.2);
113         SKINVECTOR(COLOR_CAMPAIGN_FUTURE, '1 1 1');
114         SKINFLOAT(ALPHA_CAMPAIGN_DESCRIPTION, 0.7);
115
116         // item: checkbox
117         SKINSTRING(GFX_CHECKBOX, "checkbox");
118         SKINVECTOR(COLOR_CHECKBOX_N, '1 1 1');
119         SKINVECTOR(COLOR_CHECKBOX_C, '1 1 1');
120         SKINVECTOR(COLOR_CHECKBOX_F, '1 1 1');
121         SKINVECTOR(COLOR_CHECKBOX_D, '1 1 1');
122
123         // item: color picker
124         SKINSTRING(GFX_COLORPICKER, "colorpicker");
125         SKINVECTOR(MARGIN_COLORPICKER, '0 0 0');
126
127         // item: credits list
128         SKINVECTOR(COLOR_CREDITS_TITLE, '1 1 1');
129         SKINFLOAT(ALPHA_CREDITS_TITLE, 1);
130         SKINVECTOR(COLOR_CREDITS_FUNCTION, '1 1 1');
131         SKINFLOAT(ALPHA_CREDITS_FUNCTION, 0.7);
132         SKINVECTOR(COLOR_CREDITS_PERSON, '0.7 0.7 1');
133         SKINFLOAT(ALPHA_CREDITS_PERSON, 0.7);
134         SKINFLOAT(ROWS_CREDITS, 20);
135         SKINFLOAT(WIDTH_CREDITS, 0.5);
136
137         // item: crosshair button
138         SKINSTRING(GFX_CROSSHAIRBUTTON, "crosshairbutton");
139
140         // item: cvar list
141         SKINFLOAT(ALPHA_CVARLIST_SAVED, 1);
142         SKINFLOAT(ALPHA_CVARLIST_TEMPORARY, 0.7);
143         SKINVECTOR(COLOR_CVARLIST_CHANGED, '1 1 0.4');
144         SKINVECTOR(COLOR_CVARLIST_REVERTBUTTON, '1 0 0');
145         SKINVECTOR(COLOR_CVARLIST_UNCHANGED, '1 1 1');
146
147         // item: dialog
148         SKINSTRING(GFX_DIALOGBORDER, "border");
149         SKINSTRING(GFX_CLOSEBUTTON, "closebutton");
150         SKINFLOAT(MARGIN_TOP, 8);
151         SKINFLOAT(MARGIN_BOTTOM, 8);
152         SKINFLOAT(MARGIN_LEFT, 8);
153         SKINFLOAT(MARGIN_RIGHT, 8);
154         SKINFLOAT(MARGIN_COLUMNS, 4);
155         SKINFLOAT(MARGIN_ROWS, 4);
156         SKINFLOAT(HEIGHT_DIALOGBORDER, 1);
157
158         // item: input box
159         SKINSTRING(GFX_INPUTBOX, "inputbox");
160         SKINVECTOR(COLOR_INPUTBOX_N, '1 1 1');
161         SKINVECTOR(COLOR_INPUTBOX_F, '1 1 1');
162         SKINFLOAT(MARGIN_INPUTBOX_CHARS, 1);
163
164         // item: key grabber
165         SKINVECTOR(COLOR_KEYGRABBER_TITLES, '1 1 1');
166         SKINFLOAT(ALPHA_KEYGRABBER_TITLES, 1);
167         SKINVECTOR(COLOR_KEYGRABBER_KEYS, '1 1 1');
168         SKINFLOAT(ALPHA_KEYGRABBER_KEYS, 0.7);
169
170         // item: list box
171         SKINVECTOR(COLOR_LISTBOX_SELECTED, '0 0 1');
172         SKINFLOAT(ALPHA_LISTBOX_SELECTED, 0.5);
173         SKINVECTOR(COLOR_LISTBOX_WAITING, '1 0 0');
174         SKINFLOAT(ALPHA_LISTBOX_WAITING, 0.5);
175         SKINVECTOR(COLOR_LISTBOX_BACKGROUND, '0 0 0');
176         SKINFLOAT(ALPHA_LISTBOX_BACKGROUND, 0.5);
177
178         // item: map list
179         SKINVECTOR(COLOR_MAPLIST_TITLE, '1 1 1');
180         SKINVECTOR(COLOR_MAPLIST_AUTHOR, '0.4 0.4 0.7');
181         SKINVECTOR(COLOR_MAPLIST_INCLUDEDBG, '0 0 0');
182         SKINFLOAT(ALPHA_MAPLIST_INCLUDEDFG, 1);
183         SKINFLOAT(ALPHA_MAPLIST_INCLUDEDBG, 0.5);
184         SKINFLOAT(ALPHA_MAPLIST_NOTINCLUDEDFG, 0.4);
185
186         // item: nexposee
187         SKINVECTOR(ALPHAS_MAINMENU, '0.6 0.8 0.9');
188
189         // item: player color button
190         SKINSTRING(GFX_COLORBUTTON, "colorbutton");
191         SKINSTRING(GFX_COLORBUTTON_COLOR, "color");
192
193         // item: player model
194         SKINVECTOR(COLOR_MODELTITLE, '1 1 1');
195         SKINFLOAT(ALPHA_MODELTITLE, 1);
196
197         // item: player name editor
198         SKINSTRING(GFX_CHARMAP, "charmap");
199         SKINSTRING(GFX_CHARMAP_SELECTED, "charmapbutton");
200
201         // item: radio button
202         SKINSTRING(GFX_RADIOBUTTON, "radiobutton");
203         SKINVECTOR(COLOR_RADIOBUTTON_N, '1 1 1');
204         SKINVECTOR(COLOR_RADIOBUTTON_C, '1 1 1');
205         SKINVECTOR(COLOR_RADIOBUTTON_F, '1 1 1');
206         SKINVECTOR(COLOR_RADIOBUTTON_D, '1 1 1');
207
208         // item: scrollbar
209         SKINSTRING(GFX_SCROLLBAR, "scrollbar");
210         SKINVECTOR(COLOR_SCROLLBAR_N, '1 1 1');
211         SKINVECTOR(COLOR_SCROLLBAR_F, '1 1 1');
212         SKINVECTOR(COLOR_SCROLLBAR_C, '1 1 1');
213         SKINVECTOR(COLOR_SCROLLBAR_S, '1 1 1');
214         SKINFLOAT(WIDTH_SCROLLBAR, 16);
215
216         // item: server list
217         SKINFLOAT(ALPHA_SERVERLIST_FULL, 0.4);
218         SKINFLOAT(ALPHA_SERVERLIST_EMPTY, 0.7);
219         SKINVECTOR(COLOR_SERVERLIST_LOWPING, '0 1 0');
220         SKINVECTOR(COLOR_SERVERLIST_MEDPING, '1 1 0');
221         SKINVECTOR(COLOR_SERVERLIST_HIGHPING, '1 0 0');
222         SKINFLOAT(ALPHA_SERVERLIST_HIGHPING, 0.4);
223         SKINFLOAT(ALPHA_SERVERLIST_FAVORITE, 0.8);
224         SKINVECTOR(COLOR_SERVERLIST_FAVORITE, '1 1 1');
225         SKINFLOAT(ALPHA_SERVERLIST_IMPOSSIBLE, 0.7);
226         SKINVECTOR(COLOR_SERVERLIST_IMPOSSIBLE, '0.3 0.3 0.3');
227         SKINSTRING(GFX_SERVERLIST_ICON, "icon");
228
229         // item: server info
230         SKINVECTOR(COLOR_SERVERINFO_NAME, '1 1 1');
231         SKINVECTOR(COLOR_SERVERINFO_IP, '0.4 0.4 0.7');
232
233         // item: skin list
234         SKINVECTOR(COLOR_SKINLIST_TITLE, '1 1 1');
235         SKINVECTOR(COLOR_SKINLIST_AUTHOR, '0.4 0.4 0.7');
236
237         // item: slider
238         SKINSTRING(GFX_SLIDER, "slider");
239         SKINVECTOR(COLOR_SLIDER_N, '1 1 1');
240         SKINVECTOR(COLOR_SLIDER_C, '1 1 1');
241         SKINVECTOR(COLOR_SLIDER_F, '1 1 1');
242         SKINVECTOR(COLOR_SLIDER_D, '1 1 1');
243         SKINVECTOR(COLOR_SLIDER_S, '1 1 1');
244         SKINFLOAT(WIDTH_SLIDERTEXT, 0.333333333333);
245         SKINVECTOR(TOLERANCE_SLIDER, '0.2 2 0');
246 SKINEND