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(Jakob "tZork" Markström Gröhn) \
91 PERSON(Mattia "Melanosuchus" Basaglia) \
92 PERSON(Matthias "matthiaskrgr" Krüger) \
93 PERSON(Rasmus "FruitieX" Eskola) \
94 PERSON(Rudolf "divVerent" Polzer) \
95 PERSON(Samual "Ares" Lenks) \
97 PERSON(Zac "Mario" Jardine) \
99 FUNCTION(_("Marketing / PR")) \
100 PERSON(Tyler "-z-" Mulligan) \
101 PERSON(Ruszkai "CuBe0wL" Ákos) \
102 PERSON(Samual "Ares" Lenks) \
103 PERSON(Saulo "mand1nga" Gil) \
105 FUNCTION(_("Legal")) \
106 PERSON(Rudolf "divVerent" Polzer) \
107 PERSON(Merlijn Hofstra) \
110 TITLE(_("Game Engine")) \
111 FUNCTION("DarkPlaces") \
112 PERSON(Ashley Rose "LadyHavoc" Hale) \
114 FUNCTION(_("Engine Additions")) \
115 PERSON(David "Cloudwalk" Knapp) \
116 PERSON(Rudolf "divVerent" Polzer) \
117 PERSON(Samual "Ares" Lenks) \
120 TITLE(_("Compiler")) \
122 PERSON(Wolfgang "Blub\0" Bumiller) \
123 PERSON(Dale "graphitemaster" Weiler) \
126 TITLE(_("Other Active Contributors")) \
129 PERSON(Mircea "Taoki" Kitsune) \
134 TITLE(_("Translators")) \
136 FUNCTION(_("Asturian")) \
138 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
141 FUNCTION(_("Belarusian")) \
142 PERSON(Mihail "meequz" Varantsou) \
144 FUNCTION(_("Bulgarian")) \
145 PERSON(Alexander "alex4o" Bonin) \
146 PERSON(ifohancroft) \
151 FUNCTION(_("Chinese (China)")) \
155 PERSON(sapphireliu) \
157 FUNCTION(_("Chinese (Taiwan)")) \
160 PERSON(Jeff "s8321414" Huang) \
162 FUNCTION(_("Cornish")) \
163 PERSON(Nicky "nrowe" Rowe) \
165 FUNCTION(_("Czech")) \
166 PERSON(shogun assassin/woky) \
168 PERSON(Tomáš "CZHeron" Volavka) \
170 FUNCTION(_("Dutch")) \
171 PERSON(Alexander "freefang" van Dam) \
172 PERSON(Joeke "Mappack" de Graaf) \
173 PERSON(Jonathan "Jonakeys" van der Steege) \
177 FUNCTION(_("English (Australia)")) \
178 PERSON(Laurene "sunflowers" Albrand) \
179 PERSON(Stuart "Cefiar" Young) \
180 PERSON(Zac "Mario" Jardine) \
182 FUNCTION(_("Finnish")) \
183 PERSON(Jonas "PowaTree" Sahlberg) \
184 PERSON(Henry "Exitium" Sanmark) \
185 PERSON(Rasmus "FruitieX" Eskola) \
187 FUNCTION(_("French")) \
188 PERSON(Hugo "Calinou" Locurcio) \
189 PERSON(Kim "coughingmouse" Lee) \
190 PERSON(Maxime "Taximus" Paradis) \
192 PERSON(Thomas "illwieckz" Debesse) \
193 PERSON(Yannick "SpiKe" Le Guen) \
195 FUNCTION(_("German")) \
198 PERSON(Erik "Ablu" Schilling) \
199 PERSON(Jope "Sless" Withers) \
200 PERSON(Marvin "Mirio" Beck) \
201 PERSON(Paul "Snapper") \
202 PERSON(Rudolf "divVerent" Polzer) \
206 FUNCTION(_("Greek")) \
207 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
208 PERSON(Konstantinos "LDinos" Mihalenas) \
212 FUNCTION(_("Hungarian")) \
213 PERSON(Ruszkai "CuBe0wL" Ákos) \
216 FUNCTION(_("Irish")) \
217 PERSON(Kevin "kscanne" Scannell) \
219 FUNCTION(_("Italian")) \
220 PERSON(Antonio "terencehill" Piu) \
221 PERSON(Felice "MaidenBeast" Sallustio) \
225 FUNCTION(_("Kazakh")) \
226 PERSON("Артем "bystrov.arterm" Быстров") \
228 FUNCTION(_("Korean")) \
229 PERSON(Jisoo "s6e9x" Lim) \
230 PERSON(Kim "coughingmouse" Lee) \
232 FUNCTION(_("Polish")) \
234 PERSON(Alex "tiprogrammierer.alex" Progger) \
235 PERSON(Amadeusz "amade/proraide" Sławiński) \
236 PERSON(Artur "artur9010" Motyka) \
237 PERSON(Jakub "KubeQ11" Pędziszewski) \
240 FUNCTION(_("Portuguese")) \
241 PERSON(Ivan Paulos "greylica" Tomé) \
242 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
243 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
244 PERSON(xXxCHAOTICxXx) \
246 FUNCTION(_("Romanian")) \
247 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
249 PERSON(Mircea "Taoki" Kitsune) \
250 PERSON(Sorin "unic_sorin" Botirla) \
251 PERSON(Tudor "TropiKo" Ionel) \
253 FUNCTION(_("Russian")) \
254 PERSON(Alex "alextalker7" Talker) \
255 PERSON(Alexandr "zrg") \
256 PERSON(Andrei "adem4ik" Stepanov) \
257 PERSON(Andrey "dekrY" P.) \
260 PERSON(Lord Canistra) \
262 PERSON(Sergej "Clearness High" Lutsyk) \
264 FUNCTION(_("Scottish Gaelic")) \
265 PERSON_("GunChleoc") \
267 FUNCTION(_("Serbian")) \
268 PERSON_("Саша \"salepetronije\" Петровић") \
269 PERSON(Marko M. Kostić) \
271 PERSON(Rafael "Ristovski") \
273 FUNCTION(_("Spanish")) \
274 PERSON_("0000simon") \
275 PERSON(Alan "aagp" Garcia) \
279 PERSON(roader_gentoo) \
280 PERSON(Rodrigo Mouton Laudin) \
282 PERSON(Starfire24680) \
284 FUNCTION(_("Swedish")) \
285 PERSON(Karl-Oskar "machine" Rikås) \
288 FUNCTION(_("Ukrainian")) \
289 PERSON(Dmitro "Gamebot" Sokhin) \
290 PERSON(Oleh "BlaXpirit" Prypin) \
291 PERSON(Vasyl "Harmata" Melnyk) \
292 PERSON(Yuriy "herrniemand" Ackermann) \
295 TITLE(_("Past Contributors")) \
297 PERSON(Alexander "naryl" Suhoverhov) \
298 PERSON(Alexander "motorsep" Zubov) \
299 PERSON(Amos "torus" Dudley) \
300 PERSON(Andreas "Black" Kirsch) \
301 PERSON(Attila "WW3" Houtkooper) \
303 PERSON(Braden "meoblast001" Walters) \
304 PERSON(Brain Younds) \
305 PERSON(BuddyFriendGuy) \
306 PERSON(Chris "amethyst7" Matz) \
307 PERSON(Christian Ice) \
308 PERSON(Clinton "Kaziganthe" Freeman) \
309 PERSON(Dan "Digger" Korostelev) \
310 PERSON(Dan "Wazat" Hale) \
315 PERSON(Dustin Geeraert) \
316 PERSON(Edgenetwork) \
317 PERSON(Edward "Ed" Holness) \
318 PERSON(Eric "Munyul Verminard" Sambach) \
319 PERSON(Erik "Ablu" Schilling) \
320 PERSON(Fabien "H. Reaper" Tschirhart) \
321 PERSON(Florian Paul "lda17h" Schmidt) \
323 PERSON(Garth "Zombie" Hendy) \
325 PERSON(Gerd "Elysis" Raudenbusch) \
326 PERSON(Gottfried "Toddd" Hofmann) \
327 PERSON(Henning "Tymo" Janssen) \
331 PERSON(Jody Gallagher) \
332 PERSON(Jope "Sless" Withers) \
334 PERSON(Juergen "LowDragon" Timm) \
335 PERSON(KadaverJack) \
336 PERSON(Kevin "Tyrann" Shanahan) \
337 PERSON(Kristian "morfar" Johansson) \
338 PERSON(Kurt Dereli) \
340 PERSON(Lee David Ash) \
341 PERSON(Lee Vermeulen) \
344 PERSON(Marius "GreEn`mArine" Shekow) \
345 PERSON(Marko "Urre" Permanto) \
346 PERSON(Mathieu "Elric" Olivier) \
347 PERSON(Mattrew "Tronyn" Rye) \
351 PERSON(Michael "Tenshihan" Quinn) \
358 PERSON(Paul "Strahlemann" Evers) \
361 PERSON(PlasmaSheep) \
362 PERSON(Przemysław "atheros" Grzywacz) \
363 PERSON(Q1 Retexturing Project) \
365 PERSON(Oleh "BlaXpirit" Prypin) \
366 PERSON(Rick "Rat" Kelley) \
367 PERSON(Robert "ai" Kuroto) \
370 PERSON(Samual "Ares" Lenks) \
371 PERSON(Saulo "mand1nga" Gil) \
375 PERSON(Simon O’Callaghan) \
378 PERSON(SoulKeeper_p) \
381 PERSON(Stephan "esteel" Stahl) \
382 PERSON(Steve Vermeulen) \
386 PERSON(The player with the unnecessarily long name) \
388 PERSON(Ulrich Galbraith) \
390 PERSON(William Libert) \
391 PERSON(William "Willis" Weilep) \
392 PERSON(Yves "EviLair" Allaire) \
394 PERSON(... and a goat) \
399 int n = buf_create();
400 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
401 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
402 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
403 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
404 #define CREDITS_NL() bufstr_add(n, "", 0);
405 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
407 #undef CREDITS_FUNCTION
408 #undef CREDITS_PERSON
409 #undef _CREDITS_PERSON
416 entity makeXonoticCreditsList()
419 me = NEW(XonoticCreditsList);
420 me.configureXonoticCreditsList(me);
423 void XonoticCreditsList_configureXonoticCreditsList(entity me)
425 me.configureXonoticListBox(me);
426 me.bufferIndex = credits_get();
427 me.nItems = buf_getsize(me.bufferIndex);
429 void XonoticCreditsList_destroy(entity me)
431 buf_del(me.bufferIndex);
433 void XonoticCreditsList_draw(entity me)
437 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
438 me.scrollPosTarget = me.scrollPos;
440 SUPER(XonoticCreditsList).draw(me);
442 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
444 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
446 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
447 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
448 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
450 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
456 s = bufstr_get(me.bufferIndex, i);
458 if(substring(s, 0, 2) == "**")
460 s = substring(s, 2, strlen(s) - 2);
461 theColor = SKINCOLOR_CREDITS_TITLE;
462 theAlpha = SKINALPHA_CREDITS_TITLE;
464 else if(substring(s, 0, 1) == "*")
466 s = substring(s, 1, strlen(s) - 1);
467 theColor = SKINCOLOR_CREDITS_FUNCTION;
468 theAlpha = SKINALPHA_CREDITS_FUNCTION;
472 theColor = SKINCOLOR_CREDITS_PERSON;
473 theAlpha = SKINALPHA_CREDITS_PERSON;
476 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
479 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
482 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);