2 "Perl code to convert this to a skinvalues.txt file.";
3 print "title Generic\n";
4 print "author Morphed\n";
9 if(/^\s*(?:SKINFLOAT|SKINVECTOR)\(([A-Z_]+), ([-'0-9. ]+)\);$/) #'
11 printf "%-31s %s\n", $1, $2;
13 elsif(/^\s*SKINSTRING\(([A-Z_]+), "(.*)"\);$/)
15 # printf "// uses \"$2\" images\n";
16 printf "%-31s %s\n", $1, $2;
22 elsif(/^\s+\/\/ (.*)$/)
26 elsif(/^SKINBEGIN$|^SKINEND$|^#endif$/)
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);
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');
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_SANDBOXTOOLS, '1 1 1');
59 SKINVECTOR(COLOR_DIALOG_QUIT, '1 0 0');
60 SKINVECTOR(COLOR_DIALOG_ADVANCED, '0.7 0.7 1');
61 SKINVECTOR(COLOR_DIALOG_MUTATORS, '0.7 0.7 1');
62 SKINVECTOR(COLOR_DIALOG_MAPINFO, '0.7 0.7 1');
63 SKINVECTOR(COLOR_DIALOG_USERBIND, '0.7 0.7 1');
64 SKINVECTOR(COLOR_DIALOG_SINGLEPLAYER, '1 1 0.7');
65 SKINVECTOR(COLOR_DIALOG_CREDITS, '0.7 0.7 1');
66 SKINVECTOR(COLOR_DIALOG_WEAPONS, '1 0.7 0.7');
67 SKINVECTOR(COLOR_DIALOG_VIEW, '1 0.7 0.7');
68 SKINVECTOR(COLOR_DIALOG_MODEL, '1 0.7 0.7');
69 SKINVECTOR(COLOR_DIALOG_CROSSHAIR, '1 0.7 0.7');
70 SKINVECTOR(COLOR_DIALOG_HUD, '1 0.7 0.7');
71 SKINVECTOR(COLOR_DIALOG_SERVERINFO, '0.7 0.7 1');
72 SKINVECTOR(COLOR_DIALOG_CVARS, '1 0 0');
73 SKINVECTOR(COLOR_DIALOG_HUDCONFIRM, '1 0 0');
75 // nexposee positions of windows (they are the scale transformation
76 // centers, NOT the actual positions of the windows!)
77 SKINVECTOR(POSITION_DIALOG_MULTIPLAYER, '0.9 0.5 0');
78 SKINVECTOR(POSITION_DIALOG_SINGLEPLAYER, '0.1 0.1 0');
79 SKINVECTOR(POSITION_DIALOG_SETTINGS, '0.1 0.9 0');
80 SKINVECTOR(POSITION_DIALOG_CREDITS, '0.3 1.2 0');
81 SKINVECTOR(POSITION_DIALOG_QUIT, '0.9 1.2 0');
84 SKINSTRING(GFX_CURSOR, "cursor");
85 SKINVECTOR(SIZE_CURSOR, '32 32 0');
86 SKINVECTOR(OFFSET_CURSOR, '0 0 0');
87 SKINFLOAT(ALPHA_CURSOR_INTRO, 0);
90 SKINVECTOR(COLOR_BACKGROUND, '0 0 0');
91 SKINSTRING(GFX_BACKGROUND, "background");
92 SKINSTRING(GFX_BACKGROUND_INGAME, "background_ingame");
93 // alignment string of num keys for orientations, or l = letterbox, c = crop, h = height, w = width, s = scale
94 SKINSTRING(ALIGN_BACKGROUND, "5");
95 SKINSTRING(ALIGN_BACKGROUND_INGAME, "5");
96 SKINFLOAT(ALPHA_BACKGROUND_INGAME, 0.7);
97 SKINFLOAT(ALPHA_DISABLED, 0.2);
98 SKINFLOAT(ALPHA_BEHIND, 0.5);
99 SKINFLOAT(ALPHA_TEXT, 0.7);
102 SKINSTRING(GFX_BUTTON, "button");
103 SKINSTRING(GFX_BUTTON_GRAY, "buttongray");
104 SKINSTRING(GFX_BUTTON_BIG, "bigbutton");
105 SKINSTRING(GFX_BUTTON_BIG_GRAY, "bigbuttongray");
106 SKINVECTOR(COLOR_BUTTON_N, '1 1 1');
107 SKINVECTOR(COLOR_BUTTON_C, '1 1 1');
108 SKINVECTOR(COLOR_BUTTON_F, '1 1 1');
109 SKINVECTOR(COLOR_BUTTON_D, '1 1 1');
110 SKINFLOAT(MARGIN_BUTTON, 0.5);
113 SKINFLOAT(ALPHA_CAMPAIGN_SELECTABLE, 0.8);
114 SKINVECTOR(COLOR_CAMPAIGN_SELECTABLE, '1 1 1');
115 SKINFLOAT(ALPHA_CAMPAIGN_CURRENT, 1);
116 SKINVECTOR(COLOR_CAMPAIGN_CURRENT, '1 1 0');
117 SKINFLOAT(ALPHA_CAMPAIGN_FUTURE, 0.2);
118 SKINVECTOR(COLOR_CAMPAIGN_FUTURE, '1 1 1');
119 SKINFLOAT(ALPHA_CAMPAIGN_DESCRIPTION, 0.7);
122 SKINSTRING(GFX_CHECKBOX, "checkbox");
123 SKINVECTOR(COLOR_CHECKBOX_N, '1 1 1');
124 SKINVECTOR(COLOR_CHECKBOX_C, '1 1 1');
125 SKINVECTOR(COLOR_CHECKBOX_F, '1 1 1');
126 SKINVECTOR(COLOR_CHECKBOX_D, '1 1 1');
128 // item: color picker
129 SKINSTRING(GFX_COLORPICKER, "colorpicker");
130 SKINVECTOR(MARGIN_COLORPICKER, '0 0 0');
132 // item: credits list
133 SKINVECTOR(COLOR_CREDITS_TITLE, '1 1 1');
134 SKINFLOAT(ALPHA_CREDITS_TITLE, 1);
135 SKINVECTOR(COLOR_CREDITS_FUNCTION, '1 1 1');
136 SKINFLOAT(ALPHA_CREDITS_FUNCTION, 0.7);
137 SKINVECTOR(COLOR_CREDITS_PERSON, '0.7 0.7 1');
138 SKINFLOAT(ALPHA_CREDITS_PERSON, 0.7);
139 SKINFLOAT(ROWS_CREDITS, 20);
140 SKINFLOAT(WIDTH_CREDITS, 0.5);
142 // item: crosshair button
143 SKINSTRING(GFX_CROSSHAIRBUTTON, "crosshairbutton");
146 SKINFLOAT(ALPHA_CVARLIST_SAVED, 1);
147 SKINFLOAT(ALPHA_CVARLIST_TEMPORARY, 0.7);
148 SKINVECTOR(COLOR_CVARLIST_CHANGED, '1 1 0.4');
149 SKINVECTOR(COLOR_CVARLIST_UNCHANGED, '1 1 1');
150 SKINVECTOR(COLOR_CVARLIST_CONTROLS, '1 0 0');
153 SKINSTRING(GFX_DIALOGBORDER, "border");
154 SKINSTRING(GFX_CLOSEBUTTON, "closebutton");
155 SKINFLOAT(MARGIN_TOP, 8);
156 SKINFLOAT(MARGIN_BOTTOM, 8);
157 SKINFLOAT(MARGIN_LEFT, 8);
158 SKINFLOAT(MARGIN_RIGHT, 8);
159 SKINFLOAT(MARGIN_COLUMNS, 4);
160 SKINFLOAT(MARGIN_ROWS, 4);
161 SKINFLOAT(HEIGHT_DIALOGBORDER, 1);
164 SKINSTRING(GFX_INPUTBOX, "inputbox");
165 SKINVECTOR(COLOR_INPUTBOX_N, '1 1 1');
166 SKINVECTOR(COLOR_INPUTBOX_F, '1 1 1');
167 SKINFLOAT(MARGIN_INPUTBOX_CHARS, 1);
169 // item: clear button
170 SKINSTRING(GFX_CLEARBUTTON, "clearbutton");
171 SKINFLOAT(OFFSET_CLEARBUTTON, 0);
172 SKINVECTOR(COLOR_CLEARBUTTON_N, '1 1 1');
173 SKINVECTOR(COLOR_CLEARBUTTON_F, '1 1 1');
174 SKINVECTOR(COLOR_CLEARBUTTON_C, '1 1 1');
177 SKINVECTOR(COLOR_KEYGRABBER_TITLES, '1 1 1');
178 SKINFLOAT(ALPHA_KEYGRABBER_TITLES, 1);
179 SKINVECTOR(COLOR_KEYGRABBER_KEYS, '1 1 1');
180 SKINFLOAT(ALPHA_KEYGRABBER_KEYS, 0.7);
183 SKINVECTOR(COLOR_LISTBOX_SELECTED, '0 0 1');
184 SKINFLOAT(ALPHA_LISTBOX_SELECTED, 0.5);
185 SKINVECTOR(COLOR_LISTBOX_WAITING, '1 0 0');
186 SKINFLOAT(ALPHA_LISTBOX_WAITING, 0.5);
187 SKINVECTOR(COLOR_LISTBOX_BACKGROUND, '0 0 0');
188 SKINFLOAT(ALPHA_LISTBOX_BACKGROUND, 0.5);
191 SKINVECTOR(COLOR_MAPLIST_TITLE, '1 1 1');
192 SKINVECTOR(COLOR_MAPLIST_AUTHOR, '0.4 0.4 0.7');
193 SKINVECTOR(COLOR_MAPLIST_INCLUDEDBG, '0 0 0');
194 SKINFLOAT(ALPHA_MAPLIST_INCLUDEDFG, 1);
195 SKINFLOAT(ALPHA_MAPLIST_INCLUDEDBG, 0.5);
196 SKINFLOAT(ALPHA_MAPLIST_NOTINCLUDEDFG, 0.4);
199 SKINVECTOR(ALPHAS_MAINMENU, '0.6 0.8 0.9');
200 SKINFLOAT(ALPHA_DIALOG_SANDBOXTOOLS, 0.6);
202 // item: player color button
203 SKINSTRING(GFX_COLORBUTTON, "colorbutton");
204 SKINSTRING(GFX_COLORBUTTON_COLOR, "color");
206 // item: player model
207 SKINVECTOR(COLOR_MODELTITLE, '1 1 1');
208 SKINFLOAT(ALPHA_MODELTITLE, 1);
210 // item: player name editor
211 SKINSTRING(GFX_CHARMAP, "charmap");
212 SKINSTRING(GFX_CHARMAP_SELECTED, "charmapbutton");
214 // item: radio button
215 SKINSTRING(GFX_RADIOBUTTON, "radiobutton");
216 SKINVECTOR(COLOR_RADIOBUTTON_N, '1 1 1');
217 SKINVECTOR(COLOR_RADIOBUTTON_C, '1 1 1');
218 SKINVECTOR(COLOR_RADIOBUTTON_F, '1 1 1');
219 SKINVECTOR(COLOR_RADIOBUTTON_D, '1 1 1');
222 SKINSTRING(GFX_SCROLLBAR, "scrollbar");
223 SKINVECTOR(COLOR_SCROLLBAR_N, '1 1 1');
224 SKINVECTOR(COLOR_SCROLLBAR_F, '1 1 1');
225 SKINVECTOR(COLOR_SCROLLBAR_C, '1 1 1');
226 SKINVECTOR(COLOR_SCROLLBAR_S, '1 1 1');
227 SKINFLOAT(WIDTH_SCROLLBAR, 16);
230 SKINFLOAT(ALPHA_SERVERLIST_FULL, 0.4);
231 SKINFLOAT(ALPHA_SERVERLIST_EMPTY, 0.7);
232 SKINVECTOR(COLOR_SERVERLIST_LOWPING, '0 1 0');
233 SKINVECTOR(COLOR_SERVERLIST_MEDPING, '1 1 0');
234 SKINVECTOR(COLOR_SERVERLIST_HIGHPING, '1 0 0');
235 SKINFLOAT(ALPHA_SERVERLIST_HIGHPING, 0.4);
236 SKINFLOAT(ALPHA_SERVERLIST_FAVORITE, 0.8);
237 SKINVECTOR(COLOR_SERVERLIST_FAVORITE, '1 1 1');
238 SKINFLOAT(ALPHA_SERVERLIST_IMPOSSIBLE, 0.7);
239 SKINVECTOR(COLOR_SERVERLIST_IMPOSSIBLE, '0.3 0.3 0.3');
240 SKINSTRING(GFX_SERVERLIST_ICON, "icon");
241 SKINFLOAT(ALPHA_SERVERLIST_ICON_NONPURE, 0.5);
244 SKINVECTOR(COLOR_SERVERINFO_NAME, '1 1 1');
245 SKINVECTOR(COLOR_SERVERINFO_IP, '0.4 0.4 0.7');
248 SKINVECTOR(COLOR_SKINLIST_TITLE, '1 1 1');
249 SKINVECTOR(COLOR_SKINLIST_AUTHOR, '0.4 0.4 0.7');
252 SKINSTRING(GFX_SLIDER, "slider");
253 SKINVECTOR(COLOR_SLIDER_N, '1 1 1');
254 SKINVECTOR(COLOR_SLIDER_C, '1 1 1');
255 SKINVECTOR(COLOR_SLIDER_F, '1 1 1');
256 SKINVECTOR(COLOR_SLIDER_D, '1 1 1');
257 SKINVECTOR(COLOR_SLIDER_S, '1 1 1');
258 SKINFLOAT(WIDTH_SLIDERTEXT, 0.333333333333);
259 SKINVECTOR(TOLERANCE_SLIDER, '0.2 2 0');