Merge branch 'master' into terencehill/music_player
[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         SKINVECTOR(AVOID_TOOLTIP, '8 8 0');
49         SKINFLOAT(WIDTH_TOOLTIP, 0.3);
50         SKINFLOAT(FONTSIZE_TOOLTIP, 12);
51         SKINFLOAT(ALPHA_TOOLTIP, 0.7);
52         SKINVECTOR(COLOR_TOOLTIP, '1 1 1');
53
54         // the individual dialog background colors
55         SKINVECTOR(COLOR_DIALOG_FIRSTRUN, '0.7 0.7 1');
56         SKINVECTOR(COLOR_DIALOG_MULTIPLAYER, '0.7 0.7 1');
57         SKINVECTOR(COLOR_DIALOG_SETTINGS, '0.7 0.7 1');
58         SKINVECTOR(COLOR_DIALOG_TEAMSELECT, '1 1 1');
59         SKINVECTOR(COLOR_DIALOG_SANDBOXTOOLS, '1 1 1');
60         SKINVECTOR(COLOR_DIALOG_QUIT, '1 0 0');
61         SKINVECTOR(COLOR_DIALOG_ADVANCED, '0.7 0.7 1');
62         SKINVECTOR(COLOR_DIALOG_MUTATORS, '0.7 0.7 1');
63         SKINVECTOR(COLOR_DIALOG_MAPINFO, '0.7 0.7 1');
64         SKINVECTOR(COLOR_DIALOG_USERBIND, '0.7 0.7 1');
65         SKINVECTOR(COLOR_DIALOG_SINGLEPLAYER, '1 1 0.7');
66         SKINVECTOR(COLOR_DIALOG_CREDITS, '0.7 0.7 1');
67         SKINVECTOR(COLOR_DIALOG_WEAPONS, '1 0.7 0.7');
68         SKINVECTOR(COLOR_DIALOG_VIEW, '1 0.7 0.7');
69         SKINVECTOR(COLOR_DIALOG_MODEL, '1 0.7 0.7');
70         SKINVECTOR(COLOR_DIALOG_CROSSHAIR, '1 0.7 0.7');
71         SKINVECTOR(COLOR_DIALOG_HUD, '1 0.7 0.7');
72         SKINVECTOR(COLOR_DIALOG_SERVERINFO, '0.7 0.7 1');
73         SKINVECTOR(COLOR_DIALOG_CVARS, '1 0 0');
74         SKINVECTOR(COLOR_DIALOG_SCREENSHOTVIEWER, '0.7 0.7 1');
75         SKINVECTOR(COLOR_DIALOG_HUDCONFIRM, '1 0 0');
76
77         // nexposee positions of windows (they are the scale transformation
78         // centers, NOT the actual positions of the windows!)
79         SKINVECTOR(POSITION_DIALOG_MULTIPLAYER, '0.9 0.5 0');
80         SKINVECTOR(POSITION_DIALOG_SINGLEPLAYER, '0.1 0.1 0');
81         SKINVECTOR(POSITION_DIALOG_SETTINGS, '0.1 0.9 0');
82         SKINVECTOR(POSITION_DIALOG_CREDITS, '0.3 1.2 0');
83         SKINVECTOR(POSITION_DIALOG_QUIT, '0.9 1.2 0');
84
85         // mouse
86         SKINSTRING(GFX_CURSOR, "cursor");
87         SKINVECTOR(SIZE_CURSOR, '32 32 0');
88         SKINVECTOR(OFFSET_CURSOR, '0 0 0');
89         SKINFLOAT(ALPHA_CURSOR_INTRO, 0);
90
91         // general
92         SKINVECTOR(COLOR_BACKGROUND, '0 0 0');
93         SKINSTRING(GFX_BACKGROUND, "background");
94         SKINSTRING(GFX_BACKGROUND_INGAME, "background_ingame");
95         // alignment string of num keys for orientations, or l = letterbox, c = crop, h = height, w = width, s = scale
96         SKINSTRING(ALIGN_BACKGROUND, "5");
97         SKINSTRING(ALIGN_BACKGROUND_INGAME, "5");
98         SKINFLOAT(ALPHA_BACKGROUND_INGAME, 0.7);
99         SKINFLOAT(ALPHA_DISABLED, 0.2);
100         SKINFLOAT(ALPHA_BEHIND, 0.5);
101         SKINFLOAT(ALPHA_TEXT, 0.7);
102         SKINVECTOR(COLOR_TEXT, '1 1 1');
103         SKINFLOAT(ALPHA_HEADER, 0.5);
104         SKINVECTOR(COLOR_HEADER, '1 1 1');
105
106         // item: button
107         SKINSTRING(GFX_BUTTON, "button");
108         SKINSTRING(GFX_BUTTON_GRAY, "buttongray");
109         SKINSTRING(GFX_BUTTON_BIG, "bigbutton");
110         SKINSTRING(GFX_BUTTON_BIG_GRAY, "bigbuttongray");
111         SKINVECTOR(COLOR_BUTTON_N, '1 1 1');
112         SKINVECTOR(COLOR_BUTTON_C, '1 1 1');
113         SKINVECTOR(COLOR_BUTTON_F, '1 1 1');
114         SKINVECTOR(COLOR_BUTTON_D, '1 1 1');
115         SKINFLOAT(MARGIN_BUTTON, 0.5);
116
117         // item: campaign
118         SKINFLOAT(ALPHA_CAMPAIGN_SELECTABLE, 0.8);
119         SKINVECTOR(COLOR_CAMPAIGN_SELECTABLE, '1 1 1');
120         SKINFLOAT(ALPHA_CAMPAIGN_CURRENT, 1);
121         SKINVECTOR(COLOR_CAMPAIGN_CURRENT, '1 1 0');
122         SKINFLOAT(ALPHA_CAMPAIGN_FUTURE, 0.2);
123         SKINVECTOR(COLOR_CAMPAIGN_FUTURE, '1 1 1');
124         SKINFLOAT(ALPHA_CAMPAIGN_DESCRIPTION, 0.7);
125
126         // item: checkbox
127         SKINSTRING(GFX_CHECKBOX, "checkbox");
128         SKINVECTOR(COLOR_CHECKBOX_N, '1 1 1');
129         SKINVECTOR(COLOR_CHECKBOX_C, '1 1 1');
130         SKINVECTOR(COLOR_CHECKBOX_F, '1 1 1');
131         SKINVECTOR(COLOR_CHECKBOX_D, '1 1 1');
132
133         // item: color picker
134         SKINSTRING(GFX_COLORPICKER, "colorpicker");
135         SKINVECTOR(MARGIN_COLORPICKER, '0 0 0');
136
137         // item: credits list
138         SKINVECTOR(COLOR_CREDITS_TITLE, '1 1 1');
139         SKINFLOAT(ALPHA_CREDITS_TITLE, 1);
140         SKINVECTOR(COLOR_CREDITS_FUNCTION, '1 1 1');
141         SKINFLOAT(ALPHA_CREDITS_FUNCTION, 0.7);
142         SKINVECTOR(COLOR_CREDITS_PERSON, '0.7 0.7 1');
143         SKINFLOAT(ALPHA_CREDITS_PERSON, 0.7);
144         SKINFLOAT(ROWS_CREDITS, 20);
145         SKINFLOAT(WIDTH_CREDITS, 0.5);
146
147         // item: crosshair button
148         SKINSTRING(GFX_CROSSHAIRBUTTON, "crosshairbutton");
149
150         // item: cvar list
151         SKINFLOAT(ALPHA_CVARLIST_SAVED, 1);
152         SKINFLOAT(ALPHA_CVARLIST_TEMPORARY, 0.7);
153         SKINVECTOR(COLOR_CVARLIST_CHANGED, '1 1 0.4');
154         SKINVECTOR(COLOR_CVARLIST_UNCHANGED, '1 1 1');
155         SKINVECTOR(COLOR_CVARLIST_CONTROLS, '1 0 0');
156
157         // item: dialog
158         SKINSTRING(GFX_DIALOGBORDER, "border");
159         SKINSTRING(GFX_CLOSEBUTTON, "closebutton");
160         SKINFLOAT(MARGIN_TOP, 8);
161         SKINFLOAT(MARGIN_BOTTOM, 8);
162         SKINFLOAT(MARGIN_LEFT, 8);
163         SKINFLOAT(MARGIN_RIGHT, 8);
164         SKINFLOAT(MARGIN_COLUMNS, 4);
165         SKINFLOAT(MARGIN_ROWS, 4);
166         SKINFLOAT(HEIGHT_DIALOGBORDER, 1);
167
168         // item: input box
169         SKINSTRING(GFX_INPUTBOX, "inputbox");
170         SKINVECTOR(COLOR_INPUTBOX_N, '1 1 1');
171         SKINVECTOR(COLOR_INPUTBOX_F, '1 1 1');
172         SKINFLOAT(MARGIN_INPUTBOX_CHARS, 1);
173
174         // item: clear button
175         SKINSTRING(GFX_CLEARBUTTON, "clearbutton");
176         SKINFLOAT(OFFSET_CLEARBUTTON, 0);
177         SKINVECTOR(COLOR_CLEARBUTTON_N, '1 1 1');
178         SKINVECTOR(COLOR_CLEARBUTTON_F, '1 1 1');
179         SKINVECTOR(COLOR_CLEARBUTTON_C, '1 1 1');
180
181         // item: key grabber
182         SKINVECTOR(COLOR_KEYGRABBER_TITLES, '1 1 1');
183         SKINFLOAT(ALPHA_KEYGRABBER_TITLES, 1);
184         SKINVECTOR(COLOR_KEYGRABBER_KEYS, '1 1 1');
185         SKINFLOAT(ALPHA_KEYGRABBER_KEYS, 0.7);
186
187         // item: list box
188         SKINVECTOR(COLOR_LISTBOX_SELECTED, '0 0 1');
189         SKINFLOAT(ALPHA_LISTBOX_SELECTED, 0.5);
190         SKINVECTOR(COLOR_LISTBOX_WAITING, '1 0 0');
191         SKINFLOAT(ALPHA_LISTBOX_WAITING, 0.5);
192         SKINVECTOR(COLOR_LISTBOX_BACKGROUND, '0 0 0');
193         SKINFLOAT(ALPHA_LISTBOX_BACKGROUND, 0.5);
194
195         // item: map list
196         SKINVECTOR(COLOR_MAPLIST_TITLE, '1 1 1');
197         SKINVECTOR(COLOR_MAPLIST_AUTHOR, '0.4 0.4 0.7');
198         SKINVECTOR(COLOR_MAPLIST_INCLUDEDBG, '0 0 0');
199         SKINFLOAT(ALPHA_MAPLIST_INCLUDEDFG, 1);
200         SKINFLOAT(ALPHA_MAPLIST_INCLUDEDBG, 0.5);
201         SKINFLOAT(ALPHA_MAPLIST_NOTINCLUDEDFG, 0.4);
202
203         // item: nexposee
204         SKINVECTOR(ALPHAS_MAINMENU, '0.6 0.8 0.9');
205         SKINFLOAT(ALPHA_DIALOG_SANDBOXTOOLS, 0.6);
206
207         // item: player color button
208         SKINSTRING(GFX_COLORBUTTON, "colorbutton");
209
210         // item: player model
211         SKINVECTOR(COLOR_MODELTITLE, '1 1 1');
212         SKINFLOAT(ALPHA_MODELTITLE, 1);
213
214         // item: player name editor
215         SKINSTRING(GFX_CHARMAP, "charmap");
216         SKINSTRING(GFX_CHARMAP_SELECTED, "charmapbutton");
217
218         // item: radio button
219         SKINSTRING(GFX_RADIOBUTTON, "radiobutton");
220         SKINVECTOR(COLOR_RADIOBUTTON_N, '1 1 1');
221         SKINVECTOR(COLOR_RADIOBUTTON_C, '1 1 1');
222         SKINVECTOR(COLOR_RADIOBUTTON_F, '1 1 1');
223         SKINVECTOR(COLOR_RADIOBUTTON_D, '1 1 1');
224
225         // item: scrollbar
226         SKINSTRING(GFX_SCROLLBAR, "scrollbar");
227         SKINVECTOR(COLOR_SCROLLBAR_N, '1 1 1');
228         SKINVECTOR(COLOR_SCROLLBAR_F, '1 1 1');
229         SKINVECTOR(COLOR_SCROLLBAR_C, '1 1 1');
230         SKINVECTOR(COLOR_SCROLLBAR_S, '1 1 1');
231         SKINFLOAT(WIDTH_SCROLLBAR, 16);
232
233         // item: server list
234         SKINFLOAT(ALPHA_SERVERLIST_CATEGORY, 0.7);
235         SKINVECTOR(COLOR_SERVERLIST_CATEGORY, '1 1 1');
236         SKINFLOAT(ALPHA_SERVERLIST_FULL, 0.4);
237         SKINFLOAT(ALPHA_SERVERLIST_EMPTY, 0.7);
238         SKINVECTOR(COLOR_SERVERLIST_LOWPING, '0 1 0');
239         SKINVECTOR(COLOR_SERVERLIST_MEDPING, '1 1 0');
240         SKINVECTOR(COLOR_SERVERLIST_HIGHPING, '1 0 0');
241         SKINFLOAT(ALPHA_SERVERLIST_HIGHPING, 0.4);
242         SKINFLOAT(ALPHA_SERVERLIST_FAVORITE, 0.8);
243         SKINVECTOR(COLOR_SERVERLIST_FAVORITE, '1 1 1');
244         SKINFLOAT(ALPHA_SERVERLIST_IMPOSSIBLE, 0.7);
245         SKINVECTOR(COLOR_SERVERLIST_IMPOSSIBLE, '0.3 0.3 0.3');
246         SKINSTRING(GFX_SERVERLIST_ICON, "icon");
247         SKINFLOAT(ALPHA_SERVERLIST_ICON_NONPURE, 0.5);
248
249         // item: server info
250         SKINVECTOR(COLOR_SERVERINFO_NAME, '1 1 1');
251         SKINVECTOR(COLOR_SERVERINFO_IP, '0.4 0.4 0.7');
252
253         // item: skin list
254         SKINVECTOR(COLOR_SKINLIST_TITLE, '1 1 1');
255         SKINVECTOR(COLOR_SKINLIST_AUTHOR, '0.4 0.4 0.7');
256
257         // item: demo list
258         SKINVECTOR(COLOR_DEMOLIST_SUBDIR, '0.5 0.5 0.5');
259
260         // item: screenshot list
261         SKINVECTOR(COLOR_SCREENSHOTLIST_SUBDIR, '0.5 0.5 0.5');
262
263         // item: slider
264         SKINSTRING(GFX_SLIDER, "slider");
265         SKINVECTOR(COLOR_SLIDER_N, '1 1 1');
266         SKINVECTOR(COLOR_SLIDER_C, '1 1 1');
267         SKINVECTOR(COLOR_SLIDER_F, '1 1 1');
268         SKINVECTOR(COLOR_SLIDER_D, '1 1 1');
269         SKINVECTOR(COLOR_SLIDER_S, '1 1 1');
270         SKINFLOAT(WIDTH_SLIDERTEXT, 0.333333333333);
271         SKINVECTOR(TOLERANCE_SLIDER, '0.2 2 0');
272 SKINEND