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(bones_was_here) \
16 PERSON(David "Cloudwalk" Knapp) \
19 PERSON(Jan "zykure" Behrens) \
25 PERSON(Severin "sev" Meyer) \
29 FUNCTION(_("Website")) \
30 PERSON(Ant "Antibody" Zucaro (web)) \
31 PERSON(Merlijn Hofstra) \
32 PERSON(Tyler "-z-" Mulligan (web / game)) \
34 FUNCTION(_("Stats")) \
35 PERSON(Ant "Antibody" Zucaro) \
36 PERSON(Jan "zykure" Behrens) \
39 PERSON(Severin "sev" Meyer) \
40 PERSON(Sahil "DiaboliK" Singhal) \
41 PERSON(Peter "Morphed" Pielak) \
42 PERSON(Sam "LJFHutch" Hutchinson) \
43 PERSON(Pearce "theShadow" Michal) \
44 PERSON(KingPimpCommander) \
46 FUNCTION(_("Animation")) \
47 PERSON(Sahil "DiaboliK" Singhal) \
50 FUNCTION(_("Level Design")) \
51 PERSON(Amadeusz "amade/proraide" Sławiński) \
52 PERSON(Ben "MooKow" Banker) \
54 PERSON(Cuinn "Cuinnton" Herrick) \
56 PERSON(Hugo "Calinou" Locurcio) \
57 PERSON(Jakob "tZork" Markström Gröhn) \
58 PERSON(Konrad "Justin" Slawinski) \
61 PERSON(Łukasz "kuniu the frogg" Polek) \
62 PERSON(Maik "SavageX" Merten) \
63 PERSON(Marvin "Mirio" Beck) \
66 PERSON(Pearce "theShadow" Michal) \
67 PERSON(Rasmus "FruitieX" Eskola) \
68 PERSON(Ruszkai "CuBe0wL" Ákos) \
69 PERSON(Severin "sev" Meyer) \
73 FUNCTION(_("Music / Sound FX")) \
74 PERSON(AquaNova (Archer)) \
77 PERSON(Independent.nu) \
78 PERSON(Lea "TheAudioMonkey" Edwards) \
79 PERSON([master]mind) \
80 PERSON(Merlijn Hofstra) \
82 PERSON(Nick "bitbomb" Lucca) \
84 PERSON(Saulo "mand1nga" Gil) \
85 PERSON({SC0RP} - Ian "ID" Dorrell) \
89 FUNCTION(_("Game Code")) \
90 PERSON(Antonio "terencehill" Piu) \
91 PERSON(Jakob "tZork" Markström Gröhn) \
93 PERSON(Mattia "Melanosuchus" Basaglia) \
94 PERSON(Matthias "matthiaskrgr" Krüger) \
95 PERSON(Rasmus "FruitieX" Eskola) \
96 PERSON(Rudolf "divVerent" Polzer) \
97 PERSON(Samual "Ares" Lenks) \
99 PERSON(Zac "Mario" Jardine) \
101 FUNCTION(_("Marketing / PR")) \
102 PERSON(Tyler "-z-" Mulligan) \
103 PERSON(Ruszkai "CuBe0wL" Ákos) \
104 PERSON(Samual "Ares" Lenks) \
105 PERSON(Saulo "mand1nga" Gil) \
107 FUNCTION(_("Legal")) \
108 PERSON(Rudolf "divVerent" Polzer) \
109 PERSON(Merlijn Hofstra) \
112 TITLE(_("Game Engine")) \
113 FUNCTION("DarkPlaces") \
114 PERSON(Ashley Rose "LadyHavoc" Hale) \
116 FUNCTION(_("Engine Additions")) \
117 PERSON(David "Cloudwalk" Knapp) \
118 PERSON(Rudolf "divVerent" Polzer) \
119 PERSON(Samual "Ares" Lenks) \
122 TITLE(_("Compiler")) \
124 PERSON(Wolfgang "Blub\0" Bumiller) \
125 PERSON(Dale "graphitemaster" Weiler) \
128 TITLE(_("Other Active Contributors")) \
131 PERSON(Mircea "Taoki" Kitsune) \
136 TITLE(_("Translators")) \
138 FUNCTION(_("Asturian")) \
140 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
143 FUNCTION(_("Belarusian")) \
144 PERSON(Mihail "meequz" Varantsou) \
146 FUNCTION(_("Bulgarian")) \
147 PERSON(Alexander "alex4o" Bonin) \
148 PERSON(ifohancroft) \
153 FUNCTION(_("Chinese (China)")) \
157 PERSON(sapphireliu) \
159 FUNCTION(_("Chinese (Taiwan)")) \
162 PERSON(Jeff "s8321414" Huang) \
164 FUNCTION(_("Cornish")) \
165 PERSON(Nicky "nrowe" Rowe) \
167 FUNCTION(_("Czech")) \
168 PERSON(shogun assassin/woky) \
170 PERSON(Tomáš "CZHeron" Volavka) \
172 FUNCTION(_("Dutch")) \
173 PERSON(Alexander "freefang" van Dam) \
174 PERSON(Joeke "Mappack" de Graaf) \
175 PERSON(Jonathan "Jonakeys" van der Steege) \
179 FUNCTION(_("English (Australia)")) \
180 PERSON(Laurene "sunflowers" Albrand) \
181 PERSON(Stuart "Cefiar" Young) \
182 PERSON(Zac "Mario" Jardine) \
184 FUNCTION(_("Finnish")) \
185 PERSON(Jonas "PowaTree" Sahlberg) \
186 PERSON(Henry "Exitium" Sanmark) \
187 PERSON(Rasmus "FruitieX" Eskola) \
189 FUNCTION(_("French")) \
190 PERSON(Hugo "Calinou" Locurcio) \
191 PERSON(Kim "coughingmouse" Lee) \
192 PERSON(Maxime "Taximus" Paradis) \
194 PERSON(Thomas "illwieckz" Debesse) \
195 PERSON(Yannick "SpiKe" Le Guen) \
197 FUNCTION(_("German")) \
200 PERSON(Erik "Ablu" Schilling) \
201 PERSON(Jope "Sless" Withers) \
202 PERSON(Marvin "Mirio" Beck) \
203 PERSON(Paul "Snapper") \
204 PERSON(Rudolf "divVerent" Polzer) \
208 FUNCTION(_("Greek")) \
209 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
210 PERSON(Konstantinos "LDinos" Mihalenas) \
214 FUNCTION(_("Hungarian")) \
215 PERSON(Ruszkai "CuBe0wL" Ákos) \
218 FUNCTION(_("Irish")) \
219 PERSON(Kevin "kscanne" Scannell) \
221 FUNCTION(_("Italian")) \
222 PERSON(Antonio "terencehill" Piu) \
223 PERSON(Felice "MaidenBeast" Sallustio) \
227 FUNCTION(_("Kazakh")) \
228 PERSON("Артем "bystrov.arterm" Быстров") \
230 FUNCTION(_("Korean")) \
231 PERSON(Jisoo "s6e9x" Lim) \
232 PERSON(Kim "coughingmouse" Lee) \
234 FUNCTION(_("Polish")) \
236 PERSON(Alex "tiprogrammierer.alex" Progger) \
237 PERSON(Amadeusz "amade/proraide" Sławiński) \
238 PERSON(Artur "artur9010" Motyka) \
239 PERSON(Jakub "KubeQ11" Pędziszewski) \
242 FUNCTION(_("Portuguese")) \
243 PERSON(Ivan Paulos "greylica" Tomé) \
244 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
245 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
246 PERSON(xXxCHAOTICxXx) \
248 FUNCTION(_("Romanian")) \
249 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
251 PERSON(Mircea "Taoki" Kitsune) \
252 PERSON(Sorin "unic_sorin" Botirla) \
253 PERSON(Tudor "TropiKo" Ionel) \
255 FUNCTION(_("Russian")) \
256 PERSON(Alex "alextalker7" Talker) \
257 PERSON(Alexandr "zrg") \
258 PERSON(Andrei "adem4ik" Stepanov) \
259 PERSON(Andrey "dekrY" P.) \
262 PERSON(Lord Canistra) \
264 PERSON(Sergej "Clearness High" Lutsyk) \
266 FUNCTION(_("Scottish Gaelic")) \
267 PERSON_("GunChleoc") \
269 FUNCTION(_("Serbian")) \
270 PERSON_("Саша \"salepetronije\" Петровић") \
271 PERSON(Marko M. Kostić) \
273 PERSON(Rafael "Ristovski") \
275 FUNCTION(_("Spanish")) \
276 PERSON_("0000simon") \
277 PERSON(Alan "aagp" Garcia) \
281 PERSON(roader_gentoo) \
282 PERSON(Rodrigo Mouton Laudin) \
284 PERSON(Starfire24680) \
286 FUNCTION(_("Swedish")) \
287 PERSON(Karl-Oskar "machine" Rikås) \
290 FUNCTION(_("Ukrainian")) \
291 PERSON(Dmitro "Gamebot" Sokhin) \
292 PERSON(Oleh "BlaXpirit" Prypin) \
293 PERSON(Vasyl "Harmata" Melnyk) \
294 PERSON(Yuriy "herrniemand" Ackermann) \
297 TITLE(_("Past Contributors")) \
299 PERSON(Alexander "naryl" Suhoverhov) \
300 PERSON(Alexander "motorsep" Zubov) \
301 PERSON(Amos "torus" Dudley) \
302 PERSON(Andreas "Black" Kirsch) \
303 PERSON(Attila "WW3" Houtkooper) \
305 PERSON(Braden "meoblast001" Walters) \
306 PERSON(Brain Younds) \
307 PERSON(BuddyFriendGuy) \
308 PERSON(Chris "amethyst7" Matz) \
309 PERSON(Christian Ice) \
310 PERSON(Clinton "Kaziganthe" Freeman) \
311 PERSON(Dan "Digger" Korostelev) \
312 PERSON(Dan "Wazat" Hale) \
317 PERSON(Dustin Geeraert) \
318 PERSON(Edgenetwork) \
319 PERSON(Edward "Ed" Holness) \
320 PERSON(Eric "Munyul Verminard" Sambach) \
321 PERSON(Erik "Ablu" Schilling) \
322 PERSON(Fabien "H. Reaper" Tschirhart) \
323 PERSON(Florian Paul "lda17h" Schmidt) \
325 PERSON(Garth "Zombie" Hendy) \
327 PERSON(Gerd "Elysis" Raudenbusch) \
328 PERSON(Gottfried "Toddd" Hofmann) \
329 PERSON(Henning "Tymo" Janssen) \
333 PERSON(Jody Gallagher) \
334 PERSON(Jope "Sless" Withers) \
336 PERSON(Juergen "LowDragon" Timm) \
337 PERSON(KadaverJack) \
338 PERSON(Kevin "Tyrann" Shanahan) \
339 PERSON(Kristian "morfar" Johansson) \
340 PERSON(Kurt Dereli) \
342 PERSON(Lee David Ash) \
343 PERSON(Lee Vermeulen) \
346 PERSON(Marius "GreEn`mArine" Shekow) \
347 PERSON(Marko "Urre" Permanto) \
348 PERSON(Mathieu "Elric" Olivier) \
349 PERSON(Mattrew "Tronyn" Rye) \
353 PERSON(Michael "Tenshihan" Quinn) \
360 PERSON(Paul "Strahlemann" Evers) \
363 PERSON(PlasmaSheep) \
364 PERSON(Przemysław "atheros" Grzywacz) \
365 PERSON(Q1 Retexturing Project) \
367 PERSON(Oleh "BlaXpirit" Prypin) \
368 PERSON(Rick "Rat" Kelley) \
369 PERSON(Robert "ai" Kuroto) \
372 PERSON(Samual "Ares" Lenks) \
373 PERSON(Saulo "mand1nga" Gil) \
377 PERSON(Simon O’Callaghan) \
380 PERSON(SoulKeeper_p) \
383 PERSON(Stephan "esteel" Stahl) \
384 PERSON(Steve Vermeulen) \
388 PERSON(The player with the unnecessarily long name) \
390 PERSON(Ulrich Galbraith) \
392 PERSON(William Libert) \
393 PERSON(William "Willis" Weilep) \
394 PERSON(Yves "EviLair" Allaire) \
396 PERSON(... and a goat) \
401 int n = buf_create();
402 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
403 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
404 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
405 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
406 #define CREDITS_NL() bufstr_add(n, "", 0);
407 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
409 #undef CREDITS_FUNCTION
410 #undef CREDITS_PERSON
411 #undef _CREDITS_PERSON
418 entity makeXonoticCreditsList()
421 me = NEW(XonoticCreditsList);
422 me.configureXonoticCreditsList(me);
425 void XonoticCreditsList_configureXonoticCreditsList(entity me)
427 me.configureXonoticListBox(me);
428 me.bufferIndex = credits_get();
429 me.nItems = buf_getsize(me.bufferIndex);
431 void XonoticCreditsList_destroy(entity me)
433 buf_del(me.bufferIndex);
435 void XonoticCreditsList_draw(entity me)
439 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
440 me.scrollPosTarget = me.scrollPos;
442 SUPER(XonoticCreditsList).draw(me);
444 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
446 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
448 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
449 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
450 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
452 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
458 s = bufstr_get(me.bufferIndex, i);
460 if(substring(s, 0, 2) == "**")
462 s = substring(s, 2, strlen(s) - 2);
463 theColor = SKINCOLOR_CREDITS_TITLE;
464 theAlpha = SKINALPHA_CREDITS_TITLE;
466 else if(substring(s, 0, 1) == "*")
468 s = substring(s, 1, strlen(s) - 1);
469 theColor = SKINCOLOR_CREDITS_FUNCTION;
470 theAlpha = SKINALPHA_CREDITS_FUNCTION;
474 theColor = SKINCOLOR_CREDITS_PERSON;
475 theAlpha = SKINALPHA_CREDITS_PERSON;
478 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
481 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
484 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);