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(Peter "Morphed" Pielak) \
10 PERSON(Ruszkai "CuBe0wL" Ákos) \
12 PERSON(Tyler "-z-" Mulligan) \
13 PERSON(Zac "Mario" Jardine) \
15 TITLE(_("Extended Team")) \
17 PERSON(Antonio "terencehill" Piu) \
19 PERSON(BuddyFriendGuy) \
26 PERSON(Jan "zykure" Behrens) \
29 PERSON(Łukasz "kuniu the frogg" Polek) \
31 PERSON(Matthias "matthiaskrgr" Krüger) \
32 PERSON(Mattia "Melanosuchus" Basaglia) \
34 PERSON(Nick "bitbomb" Lucca) \
38 PERSON(Pearce "theShadow" Michal) \
39 PERSON(Rasmus "FruitieX" Eskola) \
41 PERSON(Severin "sev" Meyer) \
45 PERSON(David "Cloudwalk" Knapp) \
48 FUNCTION(_("Website")) \
49 PERSON(Ant "Antibody" Zucaro (web)) \
50 PERSON(Merlijn Hofstra) \
51 PERSON(Tyler "-z-" Mulligan (web / game)) \
53 FUNCTION(_("Stats")) \
54 PERSON(Ant "Antibody" Zucaro) \
55 PERSON(Jan "zykure" Behrens) \
58 PERSON(Severin "sev" Meyer) \
59 PERSON(Sahil "DiaboliK" Singhal) \
60 PERSON(Peter "Morphed" Pielak) \
61 PERSON(Sam "LJFHutch" Hutchinson) \
62 PERSON(Pearce "theShadow" Michal) \
63 PERSON(KingPimpCommander) \
65 FUNCTION(_("Animation")) \
66 PERSON(Sahil "DiaboliK" Singhal) \
69 FUNCTION(_("Level Design")) \
70 PERSON(Amadeusz "amade/proraide" Sławiński) \
71 PERSON(Ben "MooKow" Banker) \
73 PERSON(Cuinn "Cuinnton" Herrick) \
75 PERSON(Hugo "Calinou" Locurcio) \
76 PERSON(Jakob "tZork" Markström Gröhn) \
77 PERSON(Konrad "Justin" Slawinski) \
80 PERSON(Łukasz "kuniu the frogg" Polek) \
81 PERSON(Maik "SavageX" Merten) \
82 PERSON(Marvin "Mirio" Beck) \
85 PERSON(Pearce "theShadow" Michal) \
86 PERSON(Rasmus "FruitieX" Eskola) \
87 PERSON(Ruszkai "CuBe0wL" Ákos) \
88 PERSON(Severin "sev" Meyer) \
92 FUNCTION(_("Music / Sound FX")) \
93 PERSON(AquaNova (Archer)) \
96 PERSON(Independent.nu) \
97 PERSON(Lea "TheAudioMonkey" Edwards) \
98 PERSON([master]mind) \
99 PERSON(Merlijn Hofstra) \
100 PERSON(Mick Rippon) \
101 PERSON(Nick "bitbomb" Lucca) \
103 PERSON(Saulo "mand1nga" Gil) \
104 PERSON({SC0RP} - Ian "ID" Dorrell) \
108 FUNCTION(_("Game Code")) \
109 PERSON(Samual "Ares" Lenks) \
110 PERSON(Rudolf "divVerent" Polzer) \
111 PERSON(Jakob "tZork" Markström Gröhn) \
112 PERSON(Rasmus "FruitieX" Eskola) \
114 PERSON(Zac "Mario" Jardine) \
116 FUNCTION(_("Marketing / PR")) \
117 PERSON(Tyler "-z-" Mulligan) \
118 PERSON(Ruszkai "CuBe0wL" Ákos) \
119 PERSON(Samual "Ares" Lenks) \
120 PERSON(Saulo "mand1nga" Gil) \
122 FUNCTION(_("Legal")) \
123 PERSON(Rudolf "divVerent" Polzer) \
124 PERSON(Merlijn Hofstra) \
127 TITLE(_("Game Engine")) \
128 FUNCTION("DarkPlaces") \
129 PERSON(Ashley Rose "LadyHavoc" Hale) \
131 FUNCTION(_("Engine Additions")) \
132 PERSON(Rudolf "divVerent" Polzer) \
133 PERSON(David "Cloudwalk" Knapp) \
134 PERSON(Samual "Ares" Lenks) \
137 TITLE(_("Compiler")) \
139 PERSON(Wolfgang "Blub\0" Bumiller) \
140 PERSON(Dale "graphitemaster" Weiler) \
143 TITLE(_("Other Active Contributors")) \
146 PERSON(Mircea "Taoki" Kitsune) \
150 TITLE(_("Translators")) \
152 FUNCTION(_("Asturian")) \
154 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
157 FUNCTION(_("Belarusian")) \
158 PERSON(Mihail "meequz" Varantsou) \
160 FUNCTION(_("Bulgarian")) \
161 PERSON(Alexander "alex4o" Bonin) \
162 PERSON(ifohancroft) \
167 FUNCTION(_("Chinese (China)")) \
171 PERSON(sapphireliu) \
173 FUNCTION(_("Chinese (Taiwan)")) \
176 PERSON(Jeff "s8321414" Huang) \
178 FUNCTION(_("Cornish")) \
179 PERSON(Nicky "nrowe" Rowe) \
181 FUNCTION(_("Czech")) \
182 PERSON(shogun assassin/woky) \
184 PERSON(Tomáš "CZHeron" Volavka) \
186 FUNCTION(_("Dutch")) \
187 PERSON(Alexander "freefang" van Dam) \
188 PERSON(Joeke "Mappack" de Graaf) \
189 PERSON(Jonathan "Jonakeys" van der Steege) \
193 FUNCTION(_("English (Australia)")) \
194 PERSON(Laurene "sunflowers" Albrand) \
195 PERSON(Stuart "Cefiar" Young) \
196 PERSON(Zac "Mario" Jardine) \
198 FUNCTION(_("Finnish")) \
199 PERSON(Jonas "PowaTree" Sahlberg) \
200 PERSON(Henry "Exitium" Sanmark) \
201 PERSON(Rasmus "FruitieX" Eskola) \
203 FUNCTION(_("French")) \
204 PERSON(Hugo "Calinou" Locurcio) \
205 PERSON(Kim "coughingmouse" Lee) \
206 PERSON(Maxime "Taximus" Paradis) \
208 PERSON(Thomas "illwieckz" Debesse) \
209 PERSON(Yannick "SpiKe" Le Guen) \
211 FUNCTION(_("German")) \
214 PERSON(Erik "Ablu" Schilling) \
215 PERSON(Jope "Sless" Withers) \
216 PERSON(Marvin "Mirio" Beck) \
217 PERSON(Paul "Snapper") \
218 PERSON(Rudolf "divVerent" Polzer) \
222 FUNCTION(_("Greek")) \
223 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
224 PERSON(Konstantinos "LDinos" Mihalenas) \
228 FUNCTION(_("Hungarian")) \
229 PERSON(Ruszkai "CuBe0wL" Ákos) \
232 FUNCTION(_("Irish")) \
233 PERSON(Kevin "kscanne" Scannell) \
235 FUNCTION(_("Italian")) \
236 PERSON(Antonio "terencehill" Piu) \
237 PERSON(Felice "MaidenBeast" Sallustio) \
241 FUNCTION(_("Kazakh")) \
242 PERSON("Артем "bystrov.arterm" Быстров") \
244 FUNCTION(_("Korean")) \
245 PERSON(Jisoo "s6e9x" Lim) \
246 PERSON(Kim "coughingmouse" Lee) \
248 FUNCTION(_("Polish")) \
250 PERSON(Alex "tiprogrammierer.alex" Progger) \
251 PERSON(Amadeusz "amade/proraide" Sławiński) \
252 PERSON(Artur "artur9010" Motyka) \
253 PERSON(Jakub "KubeQ11" Pędziszewski) \
256 FUNCTION(_("Portuguese")) \
257 PERSON(Ivan Paulos "greylica" Tomé) \
258 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
259 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
260 PERSON(xXxCHAOTICxXx) \
262 FUNCTION(_("Romanian")) \
263 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
265 PERSON(Mircea "Taoki" Kitsune) \
266 PERSON(Sorin "unic_sorin" Botirla) \
267 PERSON(Tudor "TropiKo" Ionel) \
269 FUNCTION(_("Russian")) \
270 PERSON(Alex "alextalker7" Talker) \
271 PERSON(Alexandr "zrg") \
272 PERSON(Andrei "adem4ik" Stepanov) \
273 PERSON(Andrey "dekrY" P.) \
276 PERSON(Lord Canistra) \
278 PERSON(Sergej "Clearness High" Lutsyk) \
280 FUNCTION(_("Scottish Gaelic")) \
281 PERSON_("GunChleoc") \
283 FUNCTION(_("Serbian")) \
284 PERSON_("Саша \"salepetronije\" Петровић") \
285 PERSON(Marko M. Kostić) \
287 PERSON(Rafael "Ristovski") \
289 FUNCTION(_("Spanish")) \
290 PERSON_("0000simon") \
291 PERSON(Alan "aagp" Garcia) \
295 PERSON(roader_gentoo) \
296 PERSON(Rodrigo Mouton Laudin) \
298 PERSON(Starfire24680) \
300 FUNCTION(_("Swedish")) \
301 PERSON(Karl-Oskar "machine" Rikås) \
304 FUNCTION(_("Ukrainian")) \
305 PERSON(Dmitro "Gamebot" Sokhin) \
306 PERSON(Oleh "BlaXpirit" Prypin) \
307 PERSON(Vasyl "Harmata" Melnyk) \
308 PERSON(Yuriy "herrniemand" Ackermann) \
311 TITLE(_("Past Contributors")) \
313 PERSON(Alexander "naryl" Suhoverhov) \
314 PERSON(Alexander "motorsep" Zubov) \
315 PERSON(Amos "torus" Dudley) \
316 PERSON(Andreas "Black" Kirsch) \
317 PERSON(Attila "WW3" Houtkooper) \
319 PERSON(Braden "meoblast001" Walters) \
320 PERSON(Brain Younds) \
321 PERSON(Chris "amethyst7" Matz) \
322 PERSON(Christian Ice) \
323 PERSON(Clinton "Kaziganthe" Freeman) \
324 PERSON(Dan "Digger" Korostelev) \
325 PERSON(Dan "Wazat" Hale) \
329 PERSON(Dustin Geeraert) \
330 PERSON(Edgenetwork) \
331 PERSON(Edward "Ed" Holness) \
332 PERSON(Eric "Munyul Verminard" Sambach) \
333 PERSON(Erik "Ablu" Schilling) \
334 PERSON(Fabien "H. Reaper" Tschirhart) \
335 PERSON(Florian Paul "lda17h" Schmidt) \
337 PERSON(Garth "Zombie" Hendy) \
338 PERSON(Gerd "Elysis" Raudenbusch) \
339 PERSON(Gottfried "Toddd" Hofmann) \
340 PERSON(Henning "Tymo" Janssen) \
343 PERSON(Jody Gallagher) \
344 PERSON(Jope "Sless" Withers) \
345 PERSON(Juergen "LowDragon" Timm) \
346 PERSON(KadaverJack) \
347 PERSON(Kevin "Tyrann" Shanahan) \
348 PERSON(Kristian "morfar" Johansson) \
349 PERSON(Kurt Dereli) \
351 PERSON(Lee David Ash) \
352 PERSON(Lee Vermeulen) \
355 PERSON(Marius "GreEn`mArine" Shekow) \
356 PERSON(Marko "Urre" Permanto) \
357 PERSON(Mathieu "Elric" Olivier) \
358 PERSON(Mattrew "Tronyn" Rye) \
362 PERSON(Michael "Tenshihan" Quinn) \
369 PERSON(Paul "Strahlemann" Evers) \
372 PERSON(PlasmaSheep) \
373 PERSON(Przemysław "atheros" Grzywacz) \
374 PERSON(Q1 Retexturing Project) \
376 PERSON(Oleh "BlaXpirit" Prypin) \
377 PERSON(Rick "Rat" Kelley) \
378 PERSON(Robert "ai" Kuroto) \
381 PERSON(Saulo "mand1nga" Gil) \
384 PERSON(Simon O’Callaghan) \
386 PERSON(SoulKeeper_p) \
389 PERSON(Stephan "esteel" Stahl) \
390 PERSON(Steve Vermeulen) \
393 PERSON(The player with the unnecessarily long name) \
395 PERSON(Ulrich Galbraith) \
397 PERSON(William Libert) \
398 PERSON(William "Willis" Weilep) \
399 PERSON(Yves "EviLair" Allaire) \
405 int n = buf_create();
406 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
407 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
408 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
409 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
410 #define CREDITS_NL() bufstr_add(n, "", 0);
411 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
413 #undef CREDITS_FUNCTION
414 #undef CREDITS_PERSON
415 #undef _CREDITS_PERSON
422 entity makeXonoticCreditsList()
425 me = NEW(XonoticCreditsList);
426 me.configureXonoticCreditsList(me);
429 void XonoticCreditsList_configureXonoticCreditsList(entity me)
431 me.configureXonoticListBox(me);
432 me.bufferIndex = credits_get();
433 me.nItems = buf_getsize(me.bufferIndex);
435 void XonoticCreditsList_destroy(entity me)
437 buf_del(me.bufferIndex);
439 void XonoticCreditsList_draw(entity me)
443 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
444 me.scrollPosTarget = me.scrollPos;
446 SUPER(XonoticCreditsList).draw(me);
448 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
450 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
452 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
453 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
454 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
456 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
462 s = bufstr_get(me.bufferIndex, i);
464 if(substring(s, 0, 2) == "**")
466 s = substring(s, 2, strlen(s) - 2);
467 theColor = SKINCOLOR_CREDITS_TITLE;
468 theAlpha = SKINALPHA_CREDITS_TITLE;
470 else if(substring(s, 0, 1) == "*")
472 s = substring(s, 1, strlen(s) - 1);
473 theColor = SKINCOLOR_CREDITS_FUNCTION;
474 theAlpha = SKINALPHA_CREDITS_FUNCTION;
478 theColor = SKINCOLOR_CREDITS_PERSON;
479 theAlpha = SKINALPHA_CREDITS_PERSON;
482 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
485 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
488 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);