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) \
91 FUNCTION(_("Music / Sound FX")) \
92 PERSON(AquaNova (Archer)) \
95 PERSON(Independent.nu) \
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(Forest "LordHavoc" Hale) \
129 FUNCTION(_("Engine Additions")) \
130 PERSON(Rudolf "divVerent" Polzer) \
131 PERSON(Samual "Ares" Lenks) \
134 TITLE(_("Compiler")) \
136 PERSON(Wolfgang "Blub\0" Bumiller) \
137 PERSON(Dale "graphitemaster" Weiler) \
140 TITLE(_("Other Active Contributors")) \
141 PERSON(Erik "Ablu" Schilling) \
142 PERSON(Mircea "Taoki" Kitsune) \
146 TITLE(_("Translators")) \
148 FUNCTION(_("Asturian")) \
150 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
153 FUNCTION(_("Belarusian")) \
154 PERSON(Mihail "meequz" Varantsou) \
156 FUNCTION(_("Bulgarian")) \
157 PERSON(Alexander "alex4o" Bonin) \
158 PERSON(ifohancroft) \
163 FUNCTION(_("Chinese (China)")) \
167 PERSON(sapphireliu) \
169 FUNCTION(_("Chinese (Taiwan)")) \
172 PERSON(Jeff "s8321414" Huang) \
174 FUNCTION(_("Cornish")) \
175 PERSON(Nicky "nrowe" Rowe) \
177 FUNCTION(_("Czech")) \
178 PERSON(shogun assassin/woky) \
180 PERSON(Tomáš "CZHeron" Volavka) \
182 FUNCTION(_("Dutch")) \
183 PERSON(Alexander "freefang" van Dam) \
184 PERSON(Jonathan "Jonakeys" van der Steege) \
188 FUNCTION(_("English (Australia)")) \
189 PERSON(Laurene "sunflowers" Albrand) \
190 PERSON(Stuart "Cefiar" Young) \
191 PERSON(Zac "Mario" Jardine) \
193 FUNCTION(_("Finnish")) \
194 PERSON(Jonas "PowaTree" Sahlberg) \
195 PERSON(Henry "Exitium" Sanmark) \
196 PERSON(Rasmus "FruitieX" Eskola) \
198 FUNCTION(_("French")) \
199 PERSON(Hugo "Calinou" Locurcio) \
200 PERSON(Kim "coughingmouse" Lee) \
201 PERSON(Maxime "Taximus" Paradis) \
203 PERSON(Thomas "illwieckz" Debesse) \
204 PERSON(Yannick "SpiKe" Le Guen) \
206 FUNCTION(_("German")) \
209 PERSON(Erik "Ablu" Schilling) \
210 PERSON(Jope "Sless" Withers) \
211 PERSON(Marvin "Mirio" Beck) \
212 PERSON(Paul "Snapper") \
213 PERSON(Rudolf "divVerent" Polzer) \
217 FUNCTION(_("Greek")) \
218 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
219 PERSON(Konstantinos "LDinos" Mihalenas) \
223 FUNCTION(_("Hungarian")) \
224 PERSON(Ruszkai "CuBe0wL" Ákos) \
227 FUNCTION(_("Italian")) \
228 PERSON(Antonio "terencehill" Piu) \
229 PERSON(Felice "MaidenBeast" Sallustio) \
233 FUNCTION(_("Kazakh")) \
234 PERSON("Артем "bystrov.arterm" Быстров") \
236 FUNCTION(_("Korean")) \
237 PERSON(Jisoo "s6e9x" Lim) \
238 PERSON(Kim "coughingmouse" Lee) \
240 FUNCTION(_("Polish")) \
242 PERSON(Alex "tiprogrammierer.alex" Progger) \
243 PERSON(Amadeusz "amade/proraide" Sławiński) \
244 PERSON(Artur "artur9010" Motyka) \
245 PERSON(Jakub "KubeQ11" Pędziszewski) \
247 FUNCTION(_("Portuguese")) \
248 PERSON(Ivan Paulos "greylica" Tomé) \
249 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
250 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
251 PERSON(xXxCHAOTICxXx) \
253 FUNCTION(_("Romanian")) \
254 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
256 PERSON(Mircea "Taoki" Kitsune) \
257 PERSON(Sorin "unic_sorin" Botirla) \
258 PERSON(Tudor "TropiKo" Ionel) \
260 FUNCTION(_("Russian")) \
261 PERSON(Alex "alextalker7" Talker) \
262 PERSON(Alexandr "zrg") \
263 PERSON(Andrei "adem4ik" Stepanov) \
264 PERSON(Andrey "dekrY" P.) \
267 PERSON(Lord Canistra) \
269 PERSON(Sergej "Clearness High" Lutsyk) \
271 FUNCTION(_("Serbian")) \
272 PERSON_("Саша \"salepetronije\" Петровић") \
274 PERSON(Rafael "Ristovski") \
276 FUNCTION(_("Spanish")) \
277 PERSON_("0000simon") \
278 PERSON(Alan "aagp" Garcia) \
282 PERSON(roader_gentoo) \
283 PERSON(Rodrigo Mouton Laudin) \
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(Chris "amethyst7" Matz) \
308 PERSON(Christian Ice) \
309 PERSON(Clinton "Kaziganthe" Freeman) \
310 PERSON(Dan "Digger" Korostelev) \
311 PERSON(Dan "Wazat" Hale) \
315 PERSON(Dustin Geeraert) \
316 PERSON(Edgenetwork) \
317 PERSON(Edward "Ed" Holness) \
318 PERSON(Eric "Munyul Verminard" Sambach) \
319 PERSON(Fabien "H. Reaper" Tschirhart) \
320 PERSON(Florian Paul "lda17h" Schmidt) \
322 PERSON(Garth "Zombie" Hendy) \
323 PERSON(Gerd "Elysis" Raudenbusch) \
324 PERSON(Gottfried "Toddd" Hofmann) \
325 PERSON(Henning "Tymo" Janssen) \
328 PERSON(Jody Gallagher) \
329 PERSON(Jope "Sless" Withers) \
330 PERSON(Juergen "LowDragon" Timm) \
331 PERSON(KadaverJack) \
332 PERSON(Kevin "Tyrann" Shanahan) \
333 PERSON(Kristian "morfar" Johansson) \
334 PERSON(Kurt Dereli) \
336 PERSON(Lee David Ash) \
337 PERSON(Lee Vermeulen) \
340 PERSON(Marius "GreEn`mArine" Shekow) \
341 PERSON(Marko "Urre" Permanto) \
342 PERSON(Mathieu "Elric" Olivier) \
343 PERSON(Mattrew "Tronyn" Rye) \
347 PERSON(Michael "Tenshihan" Quinn) \
354 PERSON(Paul "Strahlemann" Evers) \
357 PERSON(PlasmaSheep) \
358 PERSON(Przemysław "atheros" Grzywacz) \
359 PERSON(Q1 Retexturing Project) \
361 PERSON(Oleh "BlaXpirit" Prypin) \
362 PERSON(Rick "Rat" Kelley) \
363 PERSON(Robert "ai" Kuroto) \
366 PERSON(Saulo "mand1nga" Gil) \
369 PERSON(Simon O’Callaghan) \
371 PERSON(SoulKeeper_p) \
374 PERSON(Stephan "esteel" Stahl) \
375 PERSON(Steve Vermeulen) \
378 PERSON(The player with the unnecessarily long name) \
380 PERSON(Ulrich Galbraith) \
382 PERSON(William Libert) \
383 PERSON(William "Willis" Weilep) \
384 PERSON(Yves "EviLair" Allaire) \
390 int n = buf_create();
391 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
392 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
393 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
394 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
395 #define CREDITS_NL() bufstr_add(n, "", 0);
396 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
398 #undef CREDITS_FUNCTION
399 #undef CREDITS_PERSON
400 #undef _CREDITS_PERSON
407 entity makeXonoticCreditsList()
410 me = NEW(XonoticCreditsList);
411 me.configureXonoticCreditsList(me);
414 void XonoticCreditsList_configureXonoticCreditsList(entity me)
416 me.configureXonoticListBox(me);
417 me.bufferIndex = credits_get();
418 me.nItems = buf_getsize(me.bufferIndex);
420 void XonoticCreditsList_destroy(entity me)
422 buf_del(me.bufferIndex);
424 void XonoticCreditsList_draw(entity me)
428 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
429 me.scrollPosTarget = me.scrollPos;
431 SUPER(XonoticCreditsList).draw(me);
433 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
435 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
437 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
438 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
439 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
441 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
447 s = bufstr_get(me.bufferIndex, i);
449 if(substring(s, 0, 2) == "**")
451 s = substring(s, 2, strlen(s) - 2);
452 theColor = SKINCOLOR_CREDITS_TITLE;
453 theAlpha = SKINALPHA_CREDITS_TITLE;
455 else if(substring(s, 0, 1) == "*")
457 s = substring(s, 1, strlen(s) - 1);
458 theColor = SKINCOLOR_CREDITS_FUNCTION;
459 theAlpha = SKINALPHA_CREDITS_FUNCTION;
463 theColor = SKINCOLOR_CREDITS_PERSON;
464 theAlpha = SKINALPHA_CREDITS_PERSON;
467 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
470 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
473 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);