Xonotic
skin-customizables.inc
Go to the documentation of this file.
1 /*
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 */
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: cvar list
148  SKINFLOAT(ALPHA_CVARLIST_SAVED, 1);
149  SKINFLOAT(ALPHA_CVARLIST_TEMPORARY, 0.7);
150  SKINVECTOR(COLOR_CVARLIST_CHANGED, '1 1 0.4');
151  SKINVECTOR(COLOR_CVARLIST_UNCHANGED, '1 1 1');
152  SKINVECTOR(COLOR_CVARLIST_CONTROLS, '1 0 0');
153 
154  // item: dialog
155  SKINSTRING(GFX_DIALOGBORDER, "border");
156  SKINSTRING(GFX_CLOSEBUTTON, "closebutton");
157  SKINFLOAT(MARGIN_TOP, 8);
158  SKINFLOAT(MARGIN_BOTTOM, 8);
159  SKINFLOAT(MARGIN_LEFT, 8);
160  SKINFLOAT(MARGIN_RIGHT, 8);
161  SKINFLOAT(MARGIN_COLUMNS, 4);
162  SKINFLOAT(MARGIN_ROWS, 4);
163  SKINFLOAT(HEIGHT_DIALOGBORDER, 1);
164 
165  // item: input box
166  SKINSTRING(GFX_INPUTBOX, "inputbox");
167  SKINVECTOR(COLOR_INPUTBOX_N, '1 1 1');
168  SKINVECTOR(COLOR_INPUTBOX_F, '1 1 1');
169  SKINFLOAT(MARGIN_INPUTBOX_CHARS, 1);
170 
171  // item: clear button
172  SKINSTRING(GFX_CLEARBUTTON, "clearbutton");
173  SKINFLOAT(OFFSET_CLEARBUTTON, 0);
174  SKINVECTOR(COLOR_CLEARBUTTON_N, '1 1 1');
175  SKINVECTOR(COLOR_CLEARBUTTON_F, '1 1 1');
176  SKINVECTOR(COLOR_CLEARBUTTON_C, '1 1 1');
177 
178  // item: gametype list
179  SKINFLOAT(BOOL_GAMETYPELIST_ICON_BLUR, 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  SKINVECTOR(COLOR_LISTBOX_FOCUSED, '0 0 1');
195  SKINFLOAT(ALPHA_LISTBOX_FOCUSED, 0.7);
196  SKINFLOAT(FADEALPHA_LISTBOX_FOCUSED, 0.3);
197 
198  // item: map list
199  SKINVECTOR(COLOR_MAPLIST_TITLE, '1 1 1');
200  SKINVECTOR(COLOR_MAPLIST_AUTHOR, '0.4 0.4 0.7');
201  SKINVECTOR(COLOR_MAPLIST_INCLUDEDBG, '0 0 0');
202  SKINFLOAT(ALPHA_MAPLIST_INCLUDEDFG, 1);
203  SKINFLOAT(ALPHA_MAPLIST_INCLUDEDBG, 0.5);
204  SKINFLOAT(ALPHA_MAPLIST_NOTINCLUDEDFG, 0.4);
205 
206  // item: nexposee
207  SKINVECTOR(ALPHAS_MAINMENU, '0.6 0.8 0.9');
208  SKINFLOAT(ALPHA_DIALOG_SANDBOXTOOLS, 0.6);
209 
210  // item: player color button
211  SKINSTRING(GFX_COLORBUTTON, "colorbutton");
212 
213  // item: player model
214  SKINVECTOR(COLOR_MODELTITLE, '1 1 1');
215  SKINFLOAT(ALPHA_MODELTITLE, 1);
216 
217  // item: special character picker
218  SKINVECTOR(COLOR_CHARMAP_CHAR, '1 1 1');
219  SKINFLOAT(ALPHA_CHARMAP_CHAR, 1);
220 
221  // item: crosshair picker
222  SKINVECTOR(COLOR_CROSSHAIRPICKER_CROSSHAIR, '1 1 1');
223  SKINFLOAT(ALPHA_CROSSHAIRPICKER_CROSSHAIR, 1);
224 
225  // item: radio button
226  SKINSTRING(GFX_RADIOBUTTON, "radiobutton");
227  SKINVECTOR(COLOR_RADIOBUTTON_N, '1 1 1');
228  SKINVECTOR(COLOR_RADIOBUTTON_C, '1 1 1');
229  SKINVECTOR(COLOR_RADIOBUTTON_F, '1 1 1');
230  SKINVECTOR(COLOR_RADIOBUTTON_D, '1 1 1');
231 
232  // item: scrollbar
233  SKINSTRING(GFX_SCROLLBAR, "scrollbar");
234  SKINVECTOR(COLOR_SCROLLBAR_N, '1 1 1');
235  SKINVECTOR(COLOR_SCROLLBAR_F, '1 1 1');
236  SKINVECTOR(COLOR_SCROLLBAR_C, '1 1 1');
237  SKINVECTOR(COLOR_SCROLLBAR_S, '1 1 1');
238  SKINFLOAT(WIDTH_SCROLLBAR, 16);
239 
240  // item: server list
241  SKINFLOAT(ALPHA_SERVERLIST_CATEGORY, 0.7);
242  SKINVECTOR(COLOR_SERVERLIST_CATEGORY, '1 1 1');
243  SKINFLOAT(ALPHA_SERVERLIST_FULL, 0.4);
244  SKINFLOAT(ALPHA_SERVERLIST_EMPTY, 0.7);
245  SKINVECTOR(COLOR_SERVERLIST_LOWPING, '0 1 0');
246  SKINVECTOR(COLOR_SERVERLIST_MEDPING, '1 1 0');
247  SKINVECTOR(COLOR_SERVERLIST_HIGHPING, '1 0 0');
248  SKINFLOAT(ALPHA_SERVERLIST_HIGHPING, 0.4);
249  SKINFLOAT(ALPHA_SERVERLIST_FAVORITE, 0.8);
250  SKINVECTOR(COLOR_SERVERLIST_FAVORITE, '1 1 1');
251  SKINFLOAT(ALPHA_SERVERLIST_IMPOSSIBLE, 0.7);
252  SKINVECTOR(COLOR_SERVERLIST_IMPOSSIBLE, '0.3 0.3 0.3');
253  SKINFLOAT(ALPHA_SERVERLIST_ICON_NONPURE, 0.5);
254 
255  // item: server info
256  SKINVECTOR(COLOR_SERVERINFO_NAME, '1 1 1');
257  SKINVECTOR(COLOR_SERVERINFO_IP, '0.4 0.4 0.7');
258 
259  // item: skin list
260  SKINVECTOR(COLOR_SKINLIST_TITLE, '1 1 1');
261  SKINVECTOR(COLOR_SKINLIST_AUTHOR, '0.4 0.4 0.7');
262 
263  // item: demo list
264  SKINVECTOR(COLOR_DEMOLIST_SUBDIR, '0.5 0.5 0.5');
265 
266  // item: screenshot list
267  SKINVECTOR(COLOR_SCREENSHOTLIST_SUBDIR, '0.5 0.5 0.5');
268 
269  // item: slider
270  SKINSTRING(GFX_SLIDER, "slider");
271  SKINVECTOR(COLOR_SLIDER_N, '1 1 1');
272  SKINVECTOR(COLOR_SLIDER_C, '1 1 1');
273  SKINVECTOR(COLOR_SLIDER_F, '1 1 1');
274  SKINVECTOR(COLOR_SLIDER_D, '1 1 1');
275  SKINVECTOR(COLOR_SLIDER_S, '1 1 1');
276  SKINFLOAT(WIDTH_SLIDERTEXT, 0.333333333333);
277 SKINEND
#define SKINBEGIN
Definition: skin.qh:16
vector SIZE_CURSOR
Definition: hud.qh:7
SKINSTRING(GFX_TOOLTIP, "tooltip")
SKINBEGIN SKINFLOAT(FONTSIZE_NORMAL, 12)
SKINVECTOR(MARGIN_TOOLTIP, '5 5 0')
#define SKINEND
Definition: skin.qh:22
vector OFFSET_CURSOR
Definition: hud.qh:6