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")) \
130 PERSON(Mircea "Taoki" Kitsune) \
133 PERSON(Victor "LegendGuard" Jaume) \
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(_("Japanese")) \
228 PERSON(Victor "LegendGuard" Jaume) \
230 FUNCTION(_("Kazakh")) \
231 PERSON("Артем "bystrov.arterm" Быстров") \
233 FUNCTION(_("Korean")) \
234 PERSON(Jisoo "s6e9x" Lim) \
235 PERSON(Kim "coughingmouse" Lee) \
237 FUNCTION(_("Polish")) \
239 PERSON(Alex "tiprogrammierer.alex" Progger) \
240 PERSON(Amadeusz "amade/proraide" Sławiński) \
241 PERSON(Artur "artur9010" Motyka) \
242 PERSON(Jakub "KubeQ11" Pędziszewski) \
245 FUNCTION(_("Portuguese")) \
246 PERSON(Ivan Paulos "greylica" Tomé) \
247 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
248 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
249 PERSON(xXxCHAOTICxXx) \
251 FUNCTION(_("Romanian")) \
252 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
254 PERSON(Mircea "Taoki" Kitsune) \
255 PERSON(Sorin "unic_sorin" Botirla) \
256 PERSON(Tudor "TropiKo" Ionel) \
258 FUNCTION(_("Russian")) \
259 PERSON(Alex "alextalker7" Talker) \
260 PERSON(Alexandr "zrg") \
261 PERSON(Andrei "adem4ik" Stepanov) \
262 PERSON(Andrey "dekrY" P.) \
265 PERSON(Lord Canistra) \
267 PERSON(Sergej "Clearness High" Lutsyk) \
269 FUNCTION(_("Scottish Gaelic")) \
270 PERSON_("GunChleoc") \
272 FUNCTION(_("Serbian")) \
273 PERSON_("Саша \"salepetronije\" Петровић") \
274 PERSON(Marko M. Kostić) \
276 PERSON(Rafael "Ristovski") \
278 FUNCTION(_("Spanish")) \
279 PERSON_("0000simon") \
280 PERSON(Alan "aagp" Garcia) \
284 PERSON(roader_gentoo) \
285 PERSON(Rodrigo Mouton Laudin) \
287 PERSON(Starfire24680) \
288 PERSON(Victor "LegendGuard" Jaume) \
290 FUNCTION(_("Swedish")) \
291 PERSON(Karl-Oskar "machine" Rikås) \
294 FUNCTION(_("Ukrainian")) \
295 PERSON(Dmitro "Gamebot" Sokhin) \
296 PERSON(Oleh "BlaXpirit" Prypin) \
297 PERSON(Vasyl "Harmata" Melnyk) \
298 PERSON(Yuriy "herrniemand" Ackermann) \
301 TITLE(_("Past Contributors")) \
303 PERSON(Alexander "naryl" Suhoverhov) \
304 PERSON(Alexander "motorsep" Zubov) \
305 PERSON(Amos "torus" Dudley) \
306 PERSON(Andreas "Black" Kirsch) \
307 PERSON(Attila "WW3" Houtkooper) \
309 PERSON(Braden "meoblast001" Walters) \
310 PERSON(Brain Younds) \
311 PERSON(BuddyFriendGuy) \
312 PERSON(Chris "amethyst7" Matz) \
313 PERSON(Christian Ice) \
314 PERSON(Clinton "Kaziganthe" Freeman) \
315 PERSON(Dan "Digger" Korostelev) \
316 PERSON(Dan "Wazat" Hale) \
321 PERSON(Dustin Geeraert) \
322 PERSON(Edgenetwork) \
323 PERSON(Edward "Ed" Holness) \
324 PERSON(Eric "Munyul Verminard" Sambach) \
325 PERSON(Erik "Ablu" Schilling) \
326 PERSON(Fabien "H. Reaper" Tschirhart) \
327 PERSON(Florian Paul "lda17h" Schmidt) \
329 PERSON(Garth "Zombie" Hendy) \
331 PERSON(Gerd "Elysis" Raudenbusch) \
332 PERSON(Gottfried "Toddd" Hofmann) \
333 PERSON(Henning "Tymo" Janssen) \
337 PERSON(Jody Gallagher) \
338 PERSON(Jope "Sless" Withers) \
340 PERSON(Juergen "LowDragon" Timm) \
341 PERSON(KadaverJack) \
342 PERSON(Kevin "Tyrann" Shanahan) \
343 PERSON(Kristian "morfar" Johansson) \
344 PERSON(Kurt Dereli) \
346 PERSON(Lee David Ash) \
347 PERSON(Lee Vermeulen) \
351 PERSON(Marius "GreEn`mArine" Shekow) \
352 PERSON(Marko "Urre" Permanto) \
353 PERSON(Mathieu "Elric" Olivier) \
354 PERSON(Mattrew "Tronyn" Rye) \
358 PERSON(Michael "Tenshihan" Quinn) \
365 PERSON(Paul "Strahlemann" Evers) \
368 PERSON(PlasmaSheep) \
369 PERSON(Przemysław "atheros" Grzywacz) \
370 PERSON(Q1 Retexturing Project) \
372 PERSON(Oleh "BlaXpirit" Prypin) \
373 PERSON(Rick "Rat" Kelley) \
374 PERSON(Robert "ai" Kuroto) \
377 PERSON(Samual "Ares" Lenks) \
378 PERSON(Saulo "mand1nga" Gil) \
382 PERSON(Simon O’Callaghan) \
385 PERSON(SoulKeeper_p) \
388 PERSON(Stephan "esteel" Stahl) \
389 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);