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) \
11 PERSON(Samual "Ares" Lenks) \
13 PERSON(Tyler "-z-" Mulligan) \
14 PERSON(Zac "Mario" Jardine) \
16 TITLE(_("Extended Team")) \
18 PERSON(Antonio "terencehill" Piu) \
20 PERSON(BuddyFriendGuy) \
27 PERSON(Jan "zykure" Behrens) \
30 PERSON(Łukasz "kuniu the frogg" Polek) \
32 PERSON(Matthias "matthiaskrgr" Krüger) \
33 PERSON(Mattia "Melanosuchus" Basaglia) \
35 PERSON(Nick "bitbomb" Lucca) \
39 PERSON(Pearce "theShadow" Michal) \
40 PERSON(Rasmus "FruitieX" Eskola) \
42 PERSON(Severin "sev" Meyer) \
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) \
64 FUNCTION(_("Animation")) \
65 PERSON(Sahil "DiaboliK" Singhal) \
68 FUNCTION(_("Level Design")) \
69 PERSON(Amadeusz "amade/proraide" Sławiński) \
70 PERSON(Ben "MooKow" Banker) \
72 PERSON(Cuinn "Cuinnton" Herrick) \
74 PERSON(Hugo "Calinou" Locurcio) \
75 PERSON(Jakob "tZork" Markström Gröhn) \
76 PERSON(Konrad "Justin" Slawinski) \
79 PERSON(Łukasz "kuniu the frogg" Polek) \
80 PERSON(Maik "SavageX" Merten) \
81 PERSON(Marvin "Mirio" Beck) \
84 PERSON(Pearce "theShadow" Michal) \
85 PERSON(Rasmus "FruitieX" Eskola) \
86 PERSON(Ruszkai "CuBe0wL" Ákos) \
87 PERSON(Severin "sev" Meyer) \
90 FUNCTION(_("Music / Sound FX")) \
91 PERSON(AquaNova (Archer)) \
94 PERSON(Independent.nu) \
95 PERSON([master]mind) \
96 PERSON(Merlijn Hofstra) \
98 PERSON(Nick "bitbomb" Lucca) \
100 PERSON(Saulo "mand1nga" Gil) \
101 PERSON({SC0RP} - Ian "ID" Dorrell) \
105 FUNCTION(_("Game Code")) \
106 PERSON(Samual "Ares" Lenks) \
107 PERSON(Rudolf "divVerent" Polzer) \
108 PERSON(Jakob "tZork" Markström Gröhn) \
109 PERSON(Rasmus "FruitieX" Eskola) \
111 PERSON(Zac "Mario" Jardine) \
113 FUNCTION(_("Marketing / PR")) \
114 PERSON(Tyler "-z-" Mulligan) \
115 PERSON(Ruszkai "CuBe0wL" Ákos) \
116 PERSON(Samual "Ares" Lenks) \
117 PERSON(Saulo "mand1nga" Gil) \
119 FUNCTION(_("Legal")) \
120 PERSON(Rudolf "divVerent" Polzer) \
121 PERSON(Merlijn Hofstra) \
124 TITLE(_("Game Engine")) \
125 FUNCTION("DarkPlaces") \
126 PERSON(Forest "LordHavoc" Hale) \
128 FUNCTION(_("Engine Additions")) \
129 PERSON(Rudolf "divVerent" Polzer) \
130 PERSON(Samual "Ares" Lenks) \
133 TITLE(_("Compiler")) \
135 PERSON(Wolfgang "Blub\0" Bumiller) \
136 PERSON(Dale "graphitemaster" Weiler) \
139 TITLE(_("Other Active Contributors")) \
140 PERSON(Erik "Ablu" Schilling) \
141 PERSON(Mircea "Taoki" Kitsune) \
145 TITLE(_("Translators")) \
147 FUNCTION(_("Asturian")) \
149 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
152 FUNCTION(_("Belarusian")) \
153 PERSON(Mihail "meequz" Varantsou) \
155 FUNCTION(_("Bulgarian")) \
156 PERSON(Alexander "alex4o" Bonin) \
157 PERSON(ifohancroft) \
162 FUNCTION(_("Chinese (China)")) \
164 PERSON(sapphireliu) \
166 FUNCTION(_("Chinese (Taiwan)")) \
169 PERSON(Jeff "s8321414" Huang) \
171 FUNCTION(_("Cornish")) \
172 PERSON(Nicky "nrowe" Rowe) \
174 FUNCTION(_("Czech")) \
175 PERSON(shogun assassin/woky) \
177 PERSON(Tomáš "CZHeron" Volavka) \
179 FUNCTION(_("Dutch")) \
180 PERSON(Alexander "freefang" van Dam) \
181 PERSON(Jonathan "Jonakeys" van der Steege) \
185 FUNCTION(_("English (Australia)")) \
186 PERSON(Laurene "sunflowers" Albrand) \
187 PERSON(Stuart "Cefiar" Young) \
188 PERSON(Zac "Mario" Jardine) \
190 FUNCTION(_("Finnish")) \
191 PERSON(Jonas "PowaTree" Sahlberg) \
192 PERSON(Henry "Exitium" Sanmark) \
193 PERSON(Rasmus "FruitieX" Eskola) \
195 FUNCTION(_("French")) \
196 PERSON(Hugo "Calinou" Locurcio) \
197 PERSON(Kim "coughingmouse" Lee) \
198 PERSON(Maxime "Taximus" Paradis) \
200 PERSON(Thomas "illwieckz" Debesse) \
201 PERSON(Yannick "SpiKe" Le Guen) \
203 FUNCTION(_("German")) \
206 PERSON(Erik "Ablu" Schilling) \
207 PERSON(Jope "Sless" Withers) \
208 PERSON(Marvin "Mirio" Beck) \
209 PERSON(Paul "Snapper") \
210 PERSON(Rudolf "divVerent" Polzer) \
214 FUNCTION(_("Greek")) \
215 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
216 PERSON(Konstantinos "LDinos" Mihalenas) \
220 FUNCTION(_("Hungarian")) \
221 PERSON(Ruszkai "CuBe0wL" Ákos) \
224 FUNCTION(_("Italian")) \
225 PERSON(Antonio "terencehill" Piu) \
226 PERSON(Felice "MaidenBeast" Sallustio) \
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) \
244 FUNCTION(_("Portuguese")) \
245 PERSON(Ivan Paulos "greylica" Tomé) \
246 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
247 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
248 PERSON(xXxCHAOTICxXx) \
250 FUNCTION(_("Romanian")) \
251 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
253 PERSON(Mircea "Taoki" Kitsune) \
254 PERSON(Sorin "unic_sorin" Botirla) \
255 PERSON(Tudor "TropiKo" Ionel) \
257 FUNCTION(_("Russian")) \
258 PERSON(Alex "alextalker7" Talker) \
259 PERSON(Alexandr "zrg") \
260 PERSON(Andrei "adem4ik" Stepanov) \
261 PERSON(Andrey "dekrY" P.) \
264 PERSON(Lord Canistra) \
266 PERSON(Sergej "Clearness High" Lutsyk) \
268 FUNCTION(_("Serbian")) \
269 PERSON_("Саша \"salepetronije\" Петровић") \
271 PERSON(Rafael "Ristovski") \
273 FUNCTION(_("Spanish")) \
274 PERSON_("0000simon") \
275 PERSON(Alan "aagp" Garcia) \
279 PERSON(roader_gentoo) \
280 PERSON(Rodrigo Mouton Laudin) \
283 FUNCTION(_("Swedish")) \
284 PERSON(Karl-Oskar "machine" Rikås) \
287 FUNCTION(_("Ukrainian")) \
288 PERSON(Dmitro "Gamebot" Sokhin) \
289 PERSON(Oleh "BlaXpirit" Prypin) \
290 PERSON(Vasyl "Harmata" Melnyk) \
291 PERSON(Yuriy "herrniemand" Ackermann) \
294 TITLE(_("Past Contributors")) \
296 PERSON(Alexander "naryl" Suhoverhov) \
297 PERSON(Alexander "motorsep" Zubov) \
298 PERSON(Amos "torus" Dudley) \
299 PERSON(Andreas "Black" Kirsch) \
300 PERSON(Attila "WW3" Houtkooper) \
302 PERSON(Braden "meoblast001" Walters) \
303 PERSON(Brain Younds) \
304 PERSON(Chris "amethyst7" Matz) \
305 PERSON(Christian Ice) \
306 PERSON(Clinton "Kaziganthe" Freeman) \
307 PERSON(Dan "Digger" Korostelev) \
308 PERSON(Dan "Wazat" Hale) \
312 PERSON(Dustin Geeraert) \
313 PERSON(Edgenetwork) \
314 PERSON(Edward "Ed" Holness) \
315 PERSON(Eric "Munyul Verminard" Sambach) \
316 PERSON(Fabien "H. Reaper" Tschirhart) \
317 PERSON(Florian Paul "lda17h" Schmidt) \
319 PERSON(Garth "Zombie" Hendy) \
320 PERSON(Gerd "Elysis" Raudenbusch) \
321 PERSON(Gottfried "Toddd" Hofmann) \
322 PERSON(Henning "Tymo" Janssen) \
325 PERSON(Jody Gallagher) \
326 PERSON(Jope "Sless" Withers) \
327 PERSON(Juergen "LowDragon" Timm) \
328 PERSON(KadaverJack) \
329 PERSON(Kevin "Tyrann" Shanahan) \
330 PERSON(Kristian "morfar" Johansson) \
331 PERSON(Kurt Dereli) \
333 PERSON(Lee David Ash) \
334 PERSON(Lee Vermeulen) \
337 PERSON(Marius "GreEn`mArine" Shekow) \
338 PERSON(Marko "Urre" Permanto) \
339 PERSON(Mathieu "Elric" Olivier) \
340 PERSON(Mattrew "Tronyn" Rye) \
344 PERSON(Michael "Tenshihan" Quinn) \
351 PERSON(Paul "Strahlemann" Evers) \
354 PERSON(PlasmaSheep) \
355 PERSON(Przemysław "atheros" Grzywacz) \
356 PERSON(Q1 Retexturing Project) \
358 PERSON(Oleh "BlaXpirit" Prypin) \
359 PERSON(Rick "Rat" Kelley) \
360 PERSON(Robert "ai" Kuroto) \
363 PERSON(Saulo "mand1nga" Gil) \
366 PERSON(Simon O’Callaghan) \
368 PERSON(SoulKeeper_p) \
371 PERSON(Stephan "esteel" Stahl) \
372 PERSON(Steve Vermeulen) \
375 PERSON(The player with the unnecessarily long name) \
377 PERSON(Ulrich Galbraith) \
379 PERSON(William Libert) \
380 PERSON(William "Willis" Weilep) \
381 PERSON(Yves "EviLair" Allaire) \
387 int n = buf_create();
388 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
389 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
390 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
391 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
392 #define CREDITS_NL() bufstr_add(n, "", 0);
393 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
395 #undef CREDITS_FUNCTION
396 #undef CREDITS_PERSON
397 #undef _CREDITS_PERSON
404 entity makeXonoticCreditsList()
407 me = NEW(XonoticCreditsList);
408 me.configureXonoticCreditsList(me);
411 void XonoticCreditsList_configureXonoticCreditsList(entity me)
413 me.configureXonoticListBox(me);
414 me.bufferIndex = credits_get();
415 me.nItems = buf_getsize(me.bufferIndex);
417 void XonoticCreditsList_destroy(entity me)
419 buf_del(me.bufferIndex);
421 void XonoticCreditsList_draw(entity me)
425 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
426 me.scrollPosTarget = me.scrollPos;
428 SUPER(XonoticCreditsList).draw(me);
430 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
432 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
434 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
435 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
436 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
438 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
444 s = bufstr_get(me.bufferIndex, i);
446 if(substring(s, 0, 2) == "**")
448 s = substring(s, 2, strlen(s) - 2);
449 theColor = SKINCOLOR_CREDITS_TITLE;
450 theAlpha = SKINALPHA_CREDITS_TITLE;
452 else if(substring(s, 0, 1) == "*")
454 s = substring(s, 1, strlen(s) - 1);
455 theColor = SKINCOLOR_CREDITS_FUNCTION;
456 theAlpha = SKINALPHA_CREDITS_FUNCTION;
460 theColor = SKINCOLOR_CREDITS_PERSON;
461 theAlpha = SKINALPHA_CREDITS_PERSON;
464 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
467 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
470 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);