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) \
20 PERSON(David "Cloudwalk" Knapp) \
26 PERSON(Jan "zykure" Behrens) \
28 PERSON(Łukasz "kuniu the frogg" Polek) \
30 PERSON(Matthias "matthiaskrgr" Krüger) \
31 PERSON(Mattia "Melanosuchus" Basaglia) \
33 PERSON(Nick "bitbomb" Lucca) \
37 PERSON(Pearce "theShadow" Michal) \
38 PERSON(Rasmus "FruitieX" Eskola) \
40 PERSON(Severin "sev" Meyer) \
46 FUNCTION(_("Website")) \
47 PERSON(Ant "Antibody" Zucaro (web)) \
48 PERSON(Merlijn Hofstra) \
49 PERSON(Tyler "-z-" Mulligan (web / game)) \
51 FUNCTION(_("Stats")) \
52 PERSON(Ant "Antibody" Zucaro) \
53 PERSON(Jan "zykure" Behrens) \
56 PERSON(Severin "sev" Meyer) \
57 PERSON(Sahil "DiaboliK" Singhal) \
58 PERSON(Peter "Morphed" Pielak) \
59 PERSON(Sam "LJFHutch" Hutchinson) \
60 PERSON(Pearce "theShadow" Michal) \
61 PERSON(KingPimpCommander) \
63 FUNCTION(_("Animation")) \
64 PERSON(Sahil "DiaboliK" Singhal) \
67 FUNCTION(_("Level Design")) \
68 PERSON(Amadeusz "amade/proraide" Sławiński) \
69 PERSON(Ben "MooKow" Banker) \
71 PERSON(Cuinn "Cuinnton" Herrick) \
73 PERSON(Hugo "Calinou" Locurcio) \
74 PERSON(Jakob "tZork" Markström Gröhn) \
75 PERSON(Konrad "Justin" Slawinski) \
78 PERSON(Łukasz "kuniu the frogg" Polek) \
79 PERSON(Maik "SavageX" Merten) \
80 PERSON(Marvin "Mirio" Beck) \
83 PERSON(Pearce "theShadow" Michal) \
84 PERSON(Rasmus "FruitieX" Eskola) \
85 PERSON(Ruszkai "CuBe0wL" Ákos) \
86 PERSON(Severin "sev" Meyer) \
90 FUNCTION(_("Music / Sound FX")) \
91 PERSON(AquaNova (Archer)) \
94 PERSON(Independent.nu) \
95 PERSON(Lea "TheAudioMonkey" Edwards) \
96 PERSON([master]mind) \
97 PERSON(Merlijn Hofstra) \
99 PERSON(Nick "bitbomb" Lucca) \
101 PERSON(Saulo "mand1nga" Gil) \
102 PERSON({SC0RP} - Ian "ID" Dorrell) \
106 FUNCTION(_("Game Code")) \
107 PERSON(Samual "Ares" Lenks) \
108 PERSON(Rudolf "divVerent" Polzer) \
109 PERSON(Jakob "tZork" Markström Gröhn) \
110 PERSON(Rasmus "FruitieX" Eskola) \
112 PERSON(Zac "Mario" Jardine) \
114 FUNCTION(_("Marketing / PR")) \
115 PERSON(Tyler "-z-" Mulligan) \
116 PERSON(Ruszkai "CuBe0wL" Ákos) \
117 PERSON(Samual "Ares" Lenks) \
118 PERSON(Saulo "mand1nga" Gil) \
120 FUNCTION(_("Legal")) \
121 PERSON(Rudolf "divVerent" Polzer) \
122 PERSON(Merlijn Hofstra) \
125 TITLE(_("Game Engine")) \
126 FUNCTION("DarkPlaces") \
127 PERSON(Ashley Rose "LadyHavoc" Hale) \
129 FUNCTION(_("Engine Additions")) \
130 PERSON(David "Cloudwalk" Knapp) \
131 PERSON(Rudolf "divVerent" Polzer) \
132 PERSON(Samual "Ares" Lenks) \
135 TITLE(_("Compiler")) \
137 PERSON(Wolfgang "Blub\0" Bumiller) \
138 PERSON(Dale "graphitemaster" Weiler) \
141 TITLE(_("Other Active Contributors")) \
144 PERSON(Mircea "Taoki" Kitsune) \
148 TITLE(_("Translators")) \
150 FUNCTION(_("Asturian")) \
152 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
155 FUNCTION(_("Belarusian")) \
156 PERSON(Mihail "meequz" Varantsou) \
158 FUNCTION(_("Bulgarian")) \
159 PERSON(Alexander "alex4o" Bonin) \
160 PERSON(ifohancroft) \
165 FUNCTION(_("Chinese (China)")) \
169 PERSON(sapphireliu) \
171 FUNCTION(_("Chinese (Taiwan)")) \
174 PERSON(Jeff "s8321414" Huang) \
176 FUNCTION(_("Cornish")) \
177 PERSON(Nicky "nrowe" Rowe) \
179 FUNCTION(_("Czech")) \
180 PERSON(shogun assassin/woky) \
182 PERSON(Tomáš "CZHeron" Volavka) \
184 FUNCTION(_("Dutch")) \
185 PERSON(Alexander "freefang" van Dam) \
186 PERSON(Joeke "Mappack" de Graaf) \
187 PERSON(Jonathan "Jonakeys" van der Steege) \
191 FUNCTION(_("English (Australia)")) \
192 PERSON(Laurene "sunflowers" Albrand) \
193 PERSON(Stuart "Cefiar" Young) \
194 PERSON(Zac "Mario" Jardine) \
196 FUNCTION(_("Finnish")) \
197 PERSON(Jonas "PowaTree" Sahlberg) \
198 PERSON(Henry "Exitium" Sanmark) \
199 PERSON(Rasmus "FruitieX" Eskola) \
201 FUNCTION(_("French")) \
202 PERSON(Hugo "Calinou" Locurcio) \
203 PERSON(Kim "coughingmouse" Lee) \
204 PERSON(Maxime "Taximus" Paradis) \
206 PERSON(Thomas "illwieckz" Debesse) \
207 PERSON(Yannick "SpiKe" Le Guen) \
209 FUNCTION(_("German")) \
212 PERSON(Erik "Ablu" Schilling) \
213 PERSON(Jope "Sless" Withers) \
214 PERSON(Marvin "Mirio" Beck) \
215 PERSON(Paul "Snapper") \
216 PERSON(Rudolf "divVerent" Polzer) \
220 FUNCTION(_("Greek")) \
221 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
222 PERSON(Konstantinos "LDinos" Mihalenas) \
226 FUNCTION(_("Hungarian")) \
227 PERSON(Ruszkai "CuBe0wL" Ákos) \
230 FUNCTION(_("Irish")) \
231 PERSON(Kevin "kscanne" Scannell) \
233 FUNCTION(_("Italian")) \
234 PERSON(Antonio "terencehill" Piu) \
235 PERSON(Felice "MaidenBeast" Sallustio) \
239 FUNCTION(_("Kazakh")) \
240 PERSON("Артем "bystrov.arterm" Быстров") \
242 FUNCTION(_("Korean")) \
243 PERSON(Jisoo "s6e9x" Lim) \
244 PERSON(Kim "coughingmouse" Lee) \
246 FUNCTION(_("Polish")) \
248 PERSON(Alex "tiprogrammierer.alex" Progger) \
249 PERSON(Amadeusz "amade/proraide" Sławiński) \
250 PERSON(Artur "artur9010" Motyka) \
251 PERSON(Jakub "KubeQ11" Pędziszewski) \
254 FUNCTION(_("Portuguese")) \
255 PERSON(Ivan Paulos "greylica" Tomé) \
256 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
257 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
258 PERSON(xXxCHAOTICxXx) \
260 FUNCTION(_("Romanian")) \
261 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
263 PERSON(Mircea "Taoki" Kitsune) \
264 PERSON(Sorin "unic_sorin" Botirla) \
265 PERSON(Tudor "TropiKo" Ionel) \
267 FUNCTION(_("Russian")) \
268 PERSON(Alex "alextalker7" Talker) \
269 PERSON(Alexandr "zrg") \
270 PERSON(Andrei "adem4ik" Stepanov) \
271 PERSON(Andrey "dekrY" P.) \
274 PERSON(Lord Canistra) \
276 PERSON(Sergej "Clearness High" Lutsyk) \
278 FUNCTION(_("Scottish Gaelic")) \
279 PERSON_("GunChleoc") \
281 FUNCTION(_("Serbian")) \
282 PERSON_("Саша \"salepetronije\" Петровић") \
283 PERSON(Marko M. Kostić) \
285 PERSON(Rafael "Ristovski") \
287 FUNCTION(_("Spanish")) \
288 PERSON_("0000simon") \
289 PERSON(Alan "aagp" Garcia) \
293 PERSON(roader_gentoo) \
294 PERSON(Rodrigo Mouton Laudin) \
296 PERSON(Starfire24680) \
298 FUNCTION(_("Swedish")) \
299 PERSON(Karl-Oskar "machine" Rikås) \
302 FUNCTION(_("Ukrainian")) \
303 PERSON(Dmitro "Gamebot" Sokhin) \
304 PERSON(Oleh "BlaXpirit" Prypin) \
305 PERSON(Vasyl "Harmata" Melnyk) \
306 PERSON(Yuriy "herrniemand" Ackermann) \
309 TITLE(_("Past Contributors")) \
311 PERSON(Alexander "naryl" Suhoverhov) \
312 PERSON(Alexander "motorsep" Zubov) \
313 PERSON(Amos "torus" Dudley) \
314 PERSON(Andreas "Black" Kirsch) \
315 PERSON(Attila "WW3" Houtkooper) \
317 PERSON(Braden "meoblast001" Walters) \
318 PERSON(Brain Younds) \
319 PERSON(Chris "amethyst7" Matz) \
320 PERSON(Christian Ice) \
321 PERSON(Clinton "Kaziganthe" Freeman) \
322 PERSON(Dan "Digger" Korostelev) \
323 PERSON(Dan "Wazat" Hale) \
327 PERSON(Dustin Geeraert) \
328 PERSON(Edgenetwork) \
329 PERSON(Edward "Ed" Holness) \
330 PERSON(Eric "Munyul Verminard" Sambach) \
331 PERSON(Erik "Ablu" Schilling) \
332 PERSON(Fabien "H. Reaper" Tschirhart) \
333 PERSON(Florian Paul "lda17h" Schmidt) \
335 PERSON(Garth "Zombie" Hendy) \
336 PERSON(Gerd "Elysis" Raudenbusch) \
337 PERSON(Gottfried "Toddd" Hofmann) \
338 PERSON(Henning "Tymo" Janssen) \
341 PERSON(Jody Gallagher) \
342 PERSON(Jope "Sless" Withers) \
344 PERSON(Juergen "LowDragon" Timm) \
345 PERSON(KadaverJack) \
346 PERSON(Kevin "Tyrann" Shanahan) \
347 PERSON(Kristian "morfar" Johansson) \
348 PERSON(Kurt Dereli) \
350 PERSON(Lee David Ash) \
351 PERSON(Lee Vermeulen) \
354 PERSON(Marius "GreEn`mArine" Shekow) \
355 PERSON(Marko "Urre" Permanto) \
356 PERSON(Mathieu "Elric" Olivier) \
357 PERSON(Mattrew "Tronyn" Rye) \
361 PERSON(Michael "Tenshihan" Quinn) \
368 PERSON(Paul "Strahlemann" Evers) \
371 PERSON(PlasmaSheep) \
372 PERSON(Przemysław "atheros" Grzywacz) \
373 PERSON(Q1 Retexturing Project) \
375 PERSON(Oleh "BlaXpirit" Prypin) \
376 PERSON(Rick "Rat" Kelley) \
377 PERSON(Robert "ai" Kuroto) \
380 PERSON(Samual "Ares" Lenks) \
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) \
401 PERSON(... and a goat) \
406 int n = buf_create();
407 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
408 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
409 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
410 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
411 #define CREDITS_NL() bufstr_add(n, "", 0);
412 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
414 #undef CREDITS_FUNCTION
415 #undef CREDITS_PERSON
416 #undef _CREDITS_PERSON
423 entity makeXonoticCreditsList()
426 me = NEW(XonoticCreditsList);
427 me.configureXonoticCreditsList(me);
430 void XonoticCreditsList_configureXonoticCreditsList(entity me)
432 me.configureXonoticListBox(me);
433 me.bufferIndex = credits_get();
434 me.nItems = buf_getsize(me.bufferIndex);
436 void XonoticCreditsList_destroy(entity me)
438 buf_del(me.bufferIndex);
440 void XonoticCreditsList_draw(entity me)
444 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
445 me.scrollPosTarget = me.scrollPos;
447 SUPER(XonoticCreditsList).draw(me);
449 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
451 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
453 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
454 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
455 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
457 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
463 s = bufstr_get(me.bufferIndex, i);
465 if(substring(s, 0, 2) == "**")
467 s = substring(s, 2, strlen(s) - 2);
468 theColor = SKINCOLOR_CREDITS_TITLE;
469 theAlpha = SKINALPHA_CREDITS_TITLE;
471 else if(substring(s, 0, 1) == "*")
473 s = substring(s, 1, strlen(s) - 1);
474 theColor = SKINCOLOR_CREDITS_FUNCTION;
475 theAlpha = SKINALPHA_CREDITS_FUNCTION;
479 theColor = SKINCOLOR_CREDITS_PERSON;
480 theAlpha = SKINALPHA_CREDITS_PERSON;
483 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
486 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
489 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);