3 #define CREDITS(TITLE, FUNCTION, PERSON, PERSON_, NL) \
4 TITLE(_("Core Team")) \
5 PERSON(Rudolf "divVerent" Polzer) \
6 PERSON(Ant "Antibody" Zucaro) \
7 PERSON(Marvin "Mirio" Beck) \
8 PERSON(Merlijn Hofstra) \
9 PERSON(Ruszkai "CuBe0wL" Ákos) \
10 PERSON(Tyler "-z-" Mulligan) \
11 PERSON(Zac "Mario" Jardine) \
13 TITLE(_("Extended Team")) \
14 PERSON(Antonio "terencehill" Piu) \
15 PERSON(David "Cloudwalk" Knapp) \
18 PERSON(Jan "zykure" Behrens) \
24 PERSON(Severin "sev" Meyer) \
28 FUNCTION(_("Website")) \
29 PERSON(Ant "Antibody" Zucaro (web)) \
30 PERSON(Merlijn Hofstra) \
31 PERSON(Tyler "-z-" Mulligan (web / game)) \
33 FUNCTION(_("Stats")) \
34 PERSON(Ant "Antibody" Zucaro) \
35 PERSON(Jan "zykure" Behrens) \
38 PERSON(Severin "sev" Meyer) \
39 PERSON(Sahil "DiaboliK" Singhal) \
40 PERSON(Peter "Morphed" Pielak) \
41 PERSON(Sam "LJFHutch" Hutchinson) \
42 PERSON(Pearce "theShadow" Michal) \
43 PERSON(KingPimpCommander) \
45 FUNCTION(_("Animation")) \
46 PERSON(Sahil "DiaboliK" Singhal) \
49 FUNCTION(_("Level Design")) \
50 PERSON(Amadeusz "amade/proraide" Sławiński) \
51 PERSON(Ben "MooKow" Banker) \
53 PERSON(Cuinn "Cuinnton" Herrick) \
55 PERSON(Hugo "Calinou" Locurcio) \
56 PERSON(Jakob "tZork" Markström Gröhn) \
57 PERSON(Konrad "Justin" Slawinski) \
60 PERSON(Łukasz "kuniu the frogg" Polek) \
61 PERSON(Maik "SavageX" Merten) \
62 PERSON(Marvin "Mirio" Beck) \
65 PERSON(Pearce "theShadow" Michal) \
66 PERSON(Rasmus "FruitieX" Eskola) \
67 PERSON(Ruszkai "CuBe0wL" Ákos) \
68 PERSON(Severin "sev" Meyer) \
72 FUNCTION(_("Music / Sound FX")) \
73 PERSON(AquaNova (Archer)) \
76 PERSON(Independent.nu) \
77 PERSON(Lea "TheAudioMonkey" Edwards) \
78 PERSON([master]mind) \
79 PERSON(Merlijn Hofstra) \
81 PERSON(Nick "bitbomb" Lucca) \
83 PERSON(Saulo "mand1nga" Gil) \
84 PERSON({SC0RP} - Ian "ID" Dorrell) \
88 FUNCTION(_("Game Code")) \
89 PERSON(Antonio "terencehill" Piu) \
90 PERSON(Jakob "tZork" Markström Gröhn) \
92 PERSON(Mattia "Melanosuchus" Basaglia) \
93 PERSON(Matthias "matthiaskrgr" Krüger) \
94 PERSON(Rasmus "FruitieX" Eskola) \
95 PERSON(Rudolf "divVerent" Polzer) \
96 PERSON(Samual "Ares" Lenks) \
98 PERSON(Zac "Mario" Jardine) \
100 FUNCTION(_("Marketing / PR")) \
101 PERSON(Tyler "-z-" Mulligan) \
102 PERSON(Ruszkai "CuBe0wL" Ákos) \
103 PERSON(Samual "Ares" Lenks) \
104 PERSON(Saulo "mand1nga" Gil) \
106 FUNCTION(_("Legal")) \
107 PERSON(Rudolf "divVerent" Polzer) \
108 PERSON(Merlijn Hofstra) \
111 TITLE(_("Game Engine")) \
112 FUNCTION("DarkPlaces") \
113 PERSON(Ashley Rose "LadyHavoc" Hale) \
115 FUNCTION(_("Engine Additions")) \
116 PERSON(David "Cloudwalk" Knapp) \
117 PERSON(Rudolf "divVerent" Polzer) \
118 PERSON(Samual "Ares" Lenks) \
121 TITLE(_("Compiler")) \
123 PERSON(Wolfgang "Blub\0" Bumiller) \
124 PERSON(Dale "graphitemaster" Weiler) \
127 TITLE(_("Other Active Contributors")) \
130 PERSON(Mircea "Taoki" Kitsune) \
135 TITLE(_("Translators")) \
137 FUNCTION(_("Asturian")) \
139 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
142 FUNCTION(_("Belarusian")) \
143 PERSON(Mihail "meequz" Varantsou) \
145 FUNCTION(_("Bulgarian")) \
146 PERSON(Alexander "alex4o" Bonin) \
147 PERSON(ifohancroft) \
152 FUNCTION(_("Chinese (China)")) \
156 PERSON(sapphireliu) \
158 FUNCTION(_("Chinese (Taiwan)")) \
161 PERSON(Jeff "s8321414" Huang) \
163 FUNCTION(_("Cornish")) \
164 PERSON(Nicky "nrowe" Rowe) \
166 FUNCTION(_("Czech")) \
167 PERSON(shogun assassin/woky) \
169 PERSON(Tomáš "CZHeron" Volavka) \
171 FUNCTION(_("Dutch")) \
172 PERSON(Alexander "freefang" van Dam) \
173 PERSON(Joeke "Mappack" de Graaf) \
174 PERSON(Jonathan "Jonakeys" van der Steege) \
178 FUNCTION(_("English (Australia)")) \
179 PERSON(Laurene "sunflowers" Albrand) \
180 PERSON(Stuart "Cefiar" Young) \
181 PERSON(Zac "Mario" Jardine) \
183 FUNCTION(_("Finnish")) \
184 PERSON(Jonas "PowaTree" Sahlberg) \
185 PERSON(Henry "Exitium" Sanmark) \
186 PERSON(Rasmus "FruitieX" Eskola) \
188 FUNCTION(_("French")) \
189 PERSON(Hugo "Calinou" Locurcio) \
190 PERSON(Kim "coughingmouse" Lee) \
191 PERSON(Maxime "Taximus" Paradis) \
193 PERSON(Thomas "illwieckz" Debesse) \
194 PERSON(Yannick "SpiKe" Le Guen) \
196 FUNCTION(_("German")) \
199 PERSON(Erik "Ablu" Schilling) \
200 PERSON(Jope "Sless" Withers) \
201 PERSON(Marvin "Mirio" Beck) \
202 PERSON(Paul "Snapper") \
203 PERSON(Rudolf "divVerent" Polzer) \
207 FUNCTION(_("Greek")) \
208 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
209 PERSON(Konstantinos "LDinos" Mihalenas) \
213 FUNCTION(_("Hungarian")) \
214 PERSON(Ruszkai "CuBe0wL" Ákos) \
217 FUNCTION(_("Irish")) \
218 PERSON(Kevin "kscanne" Scannell) \
220 FUNCTION(_("Italian")) \
221 PERSON(Antonio "terencehill" Piu) \
222 PERSON(Felice "MaidenBeast" Sallustio) \
226 FUNCTION(_("Kazakh")) \
227 PERSON("Артем "bystrov.arterm" Быстров") \
229 FUNCTION(_("Korean")) \
230 PERSON(Jisoo "s6e9x" Lim) \
231 PERSON(Kim "coughingmouse" Lee) \
233 FUNCTION(_("Polish")) \
235 PERSON(Alex "tiprogrammierer.alex" Progger) \
236 PERSON(Amadeusz "amade/proraide" Sławiński) \
237 PERSON(Artur "artur9010" Motyka) \
238 PERSON(Jakub "KubeQ11" Pędziszewski) \
241 FUNCTION(_("Portuguese")) \
242 PERSON(Ivan Paulos "greylica" Tomé) \
243 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
244 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
245 PERSON(xXxCHAOTICxXx) \
247 FUNCTION(_("Romanian")) \
248 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
250 PERSON(Mircea "Taoki" Kitsune) \
251 PERSON(Sorin "unic_sorin" Botirla) \
252 PERSON(Tudor "TropiKo" Ionel) \
254 FUNCTION(_("Russian")) \
255 PERSON(Alex "alextalker7" Talker) \
256 PERSON(Alexandr "zrg") \
257 PERSON(Andrei "adem4ik" Stepanov) \
258 PERSON(Andrey "dekrY" P.) \
261 PERSON(Lord Canistra) \
263 PERSON(Sergej "Clearness High" Lutsyk) \
265 FUNCTION(_("Scottish Gaelic")) \
266 PERSON_("GunChleoc") \
268 FUNCTION(_("Serbian")) \
269 PERSON_("Саша \"salepetronije\" Петровић") \
270 PERSON(Marko M. Kostić) \
272 PERSON(Rafael "Ristovski") \
274 FUNCTION(_("Spanish")) \
275 PERSON_("0000simon") \
276 PERSON(Alan "aagp" Garcia) \
280 PERSON(roader_gentoo) \
281 PERSON(Rodrigo Mouton Laudin) \
283 PERSON(Starfire24680) \
285 FUNCTION(_("Swedish")) \
286 PERSON(Karl-Oskar "machine" Rikås) \
289 FUNCTION(_("Ukrainian")) \
290 PERSON(Dmitro "Gamebot" Sokhin) \
291 PERSON(Oleh "BlaXpirit" Prypin) \
292 PERSON(Vasyl "Harmata" Melnyk) \
293 PERSON(Yuriy "herrniemand" Ackermann) \
296 TITLE(_("Past Contributors")) \
298 PERSON(Alexander "naryl" Suhoverhov) \
299 PERSON(Alexander "motorsep" Zubov) \
300 PERSON(Amos "torus" Dudley) \
301 PERSON(Andreas "Black" Kirsch) \
302 PERSON(Attila "WW3" Houtkooper) \
304 PERSON(Braden "meoblast001" Walters) \
305 PERSON(Brain Younds) \
306 PERSON(BuddyFriendGuy) \
307 PERSON(Chris "amethyst7" Matz) \
308 PERSON(Christian Ice) \
309 PERSON(Clinton "Kaziganthe" Freeman) \
310 PERSON(Dan "Digger" Korostelev) \
311 PERSON(Dan "Wazat" Hale) \
316 PERSON(Dustin Geeraert) \
317 PERSON(Edgenetwork) \
318 PERSON(Edward "Ed" Holness) \
319 PERSON(Eric "Munyul Verminard" Sambach) \
320 PERSON(Erik "Ablu" Schilling) \
321 PERSON(Fabien "H. Reaper" Tschirhart) \
322 PERSON(Florian Paul "lda17h" Schmidt) \
324 PERSON(Garth "Zombie" Hendy) \
326 PERSON(Gerd "Elysis" Raudenbusch) \
327 PERSON(Gottfried "Toddd" Hofmann) \
328 PERSON(Henning "Tymo" Janssen) \
332 PERSON(Jody Gallagher) \
333 PERSON(Jope "Sless" Withers) \
335 PERSON(Juergen "LowDragon" Timm) \
336 PERSON(KadaverJack) \
337 PERSON(Kevin "Tyrann" Shanahan) \
338 PERSON(Kristian "morfar" Johansson) \
339 PERSON(Kurt Dereli) \
341 PERSON(Lee David Ash) \
342 PERSON(Lee Vermeulen) \
345 PERSON(Marius "GreEn`mArine" Shekow) \
346 PERSON(Marko "Urre" Permanto) \
347 PERSON(Mathieu "Elric" Olivier) \
348 PERSON(Mattrew "Tronyn" Rye) \
352 PERSON(Michael "Tenshihan" Quinn) \
359 PERSON(Paul "Strahlemann" Evers) \
362 PERSON(PlasmaSheep) \
363 PERSON(Przemysław "atheros" Grzywacz) \
364 PERSON(Q1 Retexturing Project) \
366 PERSON(Oleh "BlaXpirit" Prypin) \
367 PERSON(Rick "Rat" Kelley) \
368 PERSON(Robert "ai" Kuroto) \
371 PERSON(Samual "Ares" Lenks) \
372 PERSON(Saulo "mand1nga" Gil) \
376 PERSON(Simon O’Callaghan) \
379 PERSON(SoulKeeper_p) \
382 PERSON(Stephan "esteel" Stahl) \
383 PERSON(Steve Vermeulen) \
387 PERSON(The player with the unnecessarily long name) \
389 PERSON(Ulrich Galbraith) \
391 PERSON(William Libert) \
392 PERSON(William "Willis" Weilep) \
393 PERSON(Yves "EviLair" Allaire) \
395 PERSON(... and a goat) \
400 int n = buf_create();
401 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
402 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
403 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
404 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
405 #define CREDITS_NL() bufstr_add(n, "", 0);
406 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
408 #undef CREDITS_FUNCTION
409 #undef CREDITS_PERSON
410 #undef _CREDITS_PERSON
417 entity makeXonoticCreditsList()
420 me = NEW(XonoticCreditsList);
421 me.configureXonoticCreditsList(me);
424 void XonoticCreditsList_configureXonoticCreditsList(entity me)
426 me.configureXonoticListBox(me);
427 me.bufferIndex = credits_get();
428 me.nItems = buf_getsize(me.bufferIndex);
430 void XonoticCreditsList_destroy(entity me)
432 buf_del(me.bufferIndex);
434 void XonoticCreditsList_draw(entity me)
438 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
439 me.scrollPosTarget = me.scrollPos;
441 SUPER(XonoticCreditsList).draw(me);
443 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
445 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
447 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
448 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
449 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
451 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
457 s = bufstr_get(me.bufferIndex, i);
459 if(substring(s, 0, 2) == "**")
461 s = substring(s, 2, strlen(s) - 2);
462 theColor = SKINCOLOR_CREDITS_TITLE;
463 theAlpha = SKINALPHA_CREDITS_TITLE;
465 else if(substring(s, 0, 1) == "*")
467 s = substring(s, 1, strlen(s) - 1);
468 theColor = SKINCOLOR_CREDITS_FUNCTION;
469 theAlpha = SKINALPHA_CREDITS_FUNCTION;
473 theColor = SKINCOLOR_CREDITS_PERSON;
474 theAlpha = SKINALPHA_CREDITS_PERSON;
477 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
480 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
483 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);