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) \
63 PERSON(KingPimpCommander) \
65 FUNCTION(_("Animation")) \
66 PERSON(Sahil "DiaboliK" Singhal) \
69 FUNCTION(_("Level Design")) \
70 PERSON(Amadeusz "amade/proraide" Sławiński) \
71 PERSON(Ben "MooKow" Banker) \
73 PERSON(Cuinn "Cuinnton" Herrick) \
75 PERSON(Hugo "Calinou" Locurcio) \
76 PERSON(Jakob "tZork" Markström Gröhn) \
77 PERSON(Konrad "Justin" Slawinski) \
80 PERSON(Łukasz "kuniu the frogg" Polek) \
81 PERSON(Maik "SavageX" Merten) \
82 PERSON(Marvin "Mirio" Beck) \
85 PERSON(Pearce "theShadow" Michal) \
86 PERSON(Rasmus "FruitieX" Eskola) \
87 PERSON(Ruszkai "CuBe0wL" Ákos) \
88 PERSON(Severin "sev" Meyer) \
92 FUNCTION(_("Music / Sound FX")) \
93 PERSON(AquaNova (Archer)) \
96 PERSON(Independent.nu) \
97 PERSON([master]mind) \
98 PERSON(Merlijn Hofstra) \
100 PERSON(Nick "bitbomb" Lucca) \
102 PERSON(Saulo "mand1nga" Gil) \
103 PERSON({SC0RP} - Ian "ID" Dorrell) \
107 FUNCTION(_("Game Code")) \
108 PERSON(Samual "Ares" Lenks) \
109 PERSON(Rudolf "divVerent" Polzer) \
110 PERSON(Jakob "tZork" Markström Gröhn) \
111 PERSON(Rasmus "FruitieX" Eskola) \
113 PERSON(Zac "Mario" Jardine) \
115 FUNCTION(_("Marketing / PR")) \
116 PERSON(Tyler "-z-" Mulligan) \
117 PERSON(Ruszkai "CuBe0wL" Ákos) \
118 PERSON(Samual "Ares" Lenks) \
119 PERSON(Saulo "mand1nga" Gil) \
121 FUNCTION(_("Legal")) \
122 PERSON(Rudolf "divVerent" Polzer) \
123 PERSON(Merlijn Hofstra) \
126 TITLE(_("Game Engine")) \
127 FUNCTION("DarkPlaces") \
128 PERSON(Forest "LordHavoc" Hale) \
130 FUNCTION(_("Engine Additions")) \
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")) \
142 PERSON(Erik "Ablu" Schilling) \
143 PERSON(Mircea "Taoki" Kitsune) \
147 TITLE(_("Translators")) \
149 FUNCTION(_("Asturian")) \
151 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
154 FUNCTION(_("Belarusian")) \
155 PERSON(Mihail "meequz" Varantsou) \
157 FUNCTION(_("Bulgarian")) \
158 PERSON(Alexander "alex4o" Bonin) \
159 PERSON(ifohancroft) \
164 FUNCTION(_("Chinese (China)")) \
168 PERSON(sapphireliu) \
170 FUNCTION(_("Chinese (Taiwan)")) \
173 PERSON(Jeff "s8321414" Huang) \
175 FUNCTION(_("Cornish")) \
176 PERSON(Nicky "nrowe" Rowe) \
178 FUNCTION(_("Czech")) \
179 PERSON(shogun assassin/woky) \
181 PERSON(Tomáš "CZHeron" Volavka) \
183 FUNCTION(_("Dutch")) \
184 PERSON(Alexander "freefang" van Dam) \
185 PERSON(Jonathan "Jonakeys" van der Steege) \
189 FUNCTION(_("English (Australia)")) \
190 PERSON(Laurene "sunflowers" Albrand) \
191 PERSON(Stuart "Cefiar" Young) \
192 PERSON(Zac "Mario" Jardine) \
194 FUNCTION(_("Finnish")) \
195 PERSON(Jonas "PowaTree" Sahlberg) \
196 PERSON(Henry "Exitium" Sanmark) \
197 PERSON(Rasmus "FruitieX" Eskola) \
199 FUNCTION(_("French")) \
200 PERSON(Hugo "Calinou" Locurcio) \
201 PERSON(Kim "coughingmouse" Lee) \
202 PERSON(Maxime "Taximus" Paradis) \
204 PERSON(Thomas "illwieckz" Debesse) \
205 PERSON(Yannick "SpiKe" Le Guen) \
207 FUNCTION(_("German")) \
210 PERSON(Erik "Ablu" Schilling) \
211 PERSON(Jope "Sless" Withers) \
212 PERSON(Marvin "Mirio" Beck) \
213 PERSON(Paul "Snapper") \
214 PERSON(Rudolf "divVerent" Polzer) \
218 FUNCTION(_("Greek")) \
219 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
220 PERSON(Konstantinos "LDinos" Mihalenas) \
224 FUNCTION(_("Hungarian")) \
225 PERSON(Ruszkai "CuBe0wL" Ákos) \
228 FUNCTION(_("Italian")) \
229 PERSON(Antonio "terencehill" Piu) \
230 PERSON(Felice "MaidenBeast" Sallustio) \
234 FUNCTION(_("Kazakh")) \
235 PERSON("Артем "bystrov.arterm" Быстров") \
237 FUNCTION(_("Korean")) \
238 PERSON(Jisoo "s6e9x" Lim) \
239 PERSON(Kim "coughingmouse" Lee) \
241 FUNCTION(_("Polish")) \
243 PERSON(Alex "tiprogrammierer.alex" Progger) \
244 PERSON(Amadeusz "amade/proraide" Sławiński) \
245 PERSON(Artur "artur9010" Motyka) \
246 PERSON(Jakub "KubeQ11" Pędziszewski) \
248 FUNCTION(_("Portuguese")) \
249 PERSON(Ivan Paulos "greylica" Tomé) \
250 PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
251 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
252 PERSON(xXxCHAOTICxXx) \
254 FUNCTION(_("Romanian")) \
255 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
257 PERSON(Mircea "Taoki" Kitsune) \
258 PERSON(Sorin "unic_sorin" Botirla) \
259 PERSON(Tudor "TropiKo" Ionel) \
261 FUNCTION(_("Russian")) \
262 PERSON(Alex "alextalker7" Talker) \
263 PERSON(Alexandr "zrg") \
264 PERSON(Andrei "adem4ik" Stepanov) \
265 PERSON(Andrey "dekrY" P.) \
268 PERSON(Lord Canistra) \
270 PERSON(Sergej "Clearness High" Lutsyk) \
272 FUNCTION(_("Serbian")) \
273 PERSON_("Саша \"salepetronije\" Петровић") \
275 PERSON(Rafael "Ristovski") \
277 FUNCTION(_("Spanish")) \
278 PERSON_("0000simon") \
279 PERSON(Alan "aagp" Garcia) \
283 PERSON(roader_gentoo) \
284 PERSON(Rodrigo Mouton Laudin) \
287 FUNCTION(_("Swedish")) \
288 PERSON(Karl-Oskar "machine" Rikås) \
291 FUNCTION(_("Ukrainian")) \
292 PERSON(Dmitro "Gamebot" Sokhin) \
293 PERSON(Oleh "BlaXpirit" Prypin) \
294 PERSON(Vasyl "Harmata" Melnyk) \
295 PERSON(Yuriy "herrniemand" Ackermann) \
298 TITLE(_("Past Contributors")) \
300 PERSON(Alexander "naryl" Suhoverhov) \
301 PERSON(Alexander "motorsep" Zubov) \
302 PERSON(Amos "torus" Dudley) \
303 PERSON(Andreas "Black" Kirsch) \
304 PERSON(Attila "WW3" Houtkooper) \
306 PERSON(Braden "meoblast001" Walters) \
307 PERSON(Brain Younds) \
308 PERSON(Chris "amethyst7" Matz) \
309 PERSON(Christian Ice) \
310 PERSON(Clinton "Kaziganthe" Freeman) \
311 PERSON(Dan "Digger" Korostelev) \
312 PERSON(Dan "Wazat" Hale) \
316 PERSON(Dustin Geeraert) \
317 PERSON(Edgenetwork) \
318 PERSON(Edward "Ed" Holness) \
319 PERSON(Eric "Munyul Verminard" Sambach) \
320 PERSON(Fabien "H. Reaper" Tschirhart) \
321 PERSON(Florian Paul "lda17h" Schmidt) \
323 PERSON(Garth "Zombie" Hendy) \
324 PERSON(Gerd "Elysis" Raudenbusch) \
325 PERSON(Gottfried "Toddd" Hofmann) \
326 PERSON(Henning "Tymo" Janssen) \
329 PERSON(Jody Gallagher) \
330 PERSON(Jope "Sless" Withers) \
331 PERSON(Juergen "LowDragon" Timm) \
332 PERSON(KadaverJack) \
333 PERSON(Kevin "Tyrann" Shanahan) \
334 PERSON(Kristian "morfar" Johansson) \
335 PERSON(Kurt Dereli) \
337 PERSON(Lee David Ash) \
338 PERSON(Lee Vermeulen) \
341 PERSON(Marius "GreEn`mArine" Shekow) \
342 PERSON(Marko "Urre" Permanto) \
343 PERSON(Mathieu "Elric" Olivier) \
344 PERSON(Mattrew "Tronyn" Rye) \
348 PERSON(Michael "Tenshihan" Quinn) \
355 PERSON(Paul "Strahlemann" Evers) \
358 PERSON(PlasmaSheep) \
359 PERSON(Przemysław "atheros" Grzywacz) \
360 PERSON(Q1 Retexturing Project) \
362 PERSON(Oleh "BlaXpirit" Prypin) \
363 PERSON(Rick "Rat" Kelley) \
364 PERSON(Robert "ai" Kuroto) \
367 PERSON(Saulo "mand1nga" Gil) \
370 PERSON(Simon O’Callaghan) \
372 PERSON(SoulKeeper_p) \
375 PERSON(Stephan "esteel" Stahl) \
376 PERSON(Steve Vermeulen) \
379 PERSON(The player with the unnecessarily long name) \
381 PERSON(Ulrich Galbraith) \
383 PERSON(William Libert) \
384 PERSON(William "Willis" Weilep) \
385 PERSON(Yves "EviLair" Allaire) \
391 int n = buf_create();
392 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
393 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
394 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
395 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
396 #define CREDITS_NL() bufstr_add(n, "", 0);
397 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
399 #undef CREDITS_FUNCTION
400 #undef CREDITS_PERSON
401 #undef _CREDITS_PERSON
408 entity makeXonoticCreditsList()
411 me = NEW(XonoticCreditsList);
412 me.configureXonoticCreditsList(me);
415 void XonoticCreditsList_configureXonoticCreditsList(entity me)
417 me.configureXonoticListBox(me);
418 me.bufferIndex = credits_get();
419 me.nItems = buf_getsize(me.bufferIndex);
421 void XonoticCreditsList_destroy(entity me)
423 buf_del(me.bufferIndex);
425 void XonoticCreditsList_draw(entity me)
429 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
430 me.scrollPosTarget = me.scrollPos;
432 SUPER(XonoticCreditsList).draw(me);
434 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
436 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
438 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
439 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
440 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
442 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
448 s = bufstr_get(me.bufferIndex, i);
450 if(substring(s, 0, 2) == "**")
452 s = substring(s, 2, strlen(s) - 2);
453 theColor = SKINCOLOR_CREDITS_TITLE;
454 theAlpha = SKINALPHA_CREDITS_TITLE;
456 else if(substring(s, 0, 1) == "*")
458 s = substring(s, 1, strlen(s) - 1);
459 theColor = SKINCOLOR_CREDITS_FUNCTION;
460 theAlpha = SKINALPHA_CREDITS_FUNCTION;
464 theColor = SKINCOLOR_CREDITS_PERSON;
465 theAlpha = SKINALPHA_CREDITS_PERSON;
468 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
471 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
474 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);