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")) \
17 PERSON(Antonio "terencehill" Piu) \
19 PERSON(BuddyFriendGuy) \
24 PERSON(Jan "zykure" Behrens) \
27 PERSON(Łukasz "kuniu the frogg" Polek) \
28 PERSON(Matthias "matthiaskrgr" Krüger) \
29 PERSON(Mattia "Melanosuchus" Basaglia) \
31 PERSON(Nick "bitbomb" Lucca) \
35 PERSON(Pearce "theShadow" Michal) \
36 PERSON(Rasmus "FruitieX" Eskola) \
38 PERSON(Severin "sev" Meyer) \
44 FUNCTION(_("Website")) \
45 PERSON(Ant "Antibody" Zucaro (web)) \
46 PERSON(Merlijn Hofstra) \
47 PERSON(Tyler "-z-" Mulligan (web / game)) \
49 FUNCTION(_("Stats")) \
50 PERSON(Ant "Antibody" Zucaro) \
51 PERSON(Jan "zykure" Behrens) \
54 PERSON(Severin "sev" Meyer) \
55 PERSON(Sahil "DiaboliK" Singhal) \
56 PERSON(Peter "Morphed" Pielak) \
57 PERSON(Sam "LJFHutch" Hutchinson) \
58 PERSON(Pearce "theShadow" Michal) \
60 FUNCTION(_("Animation")) \
61 PERSON(Sahil "DiaboliK" Singhal) \
64 FUNCTION(_("Level Design")) \
65 PERSON(Amadeusz "amade/proraide" Sławiński) \
66 PERSON(Ben "MooKow" Banker) \
69 PERSON(Cuinn "Cuinnton" Herrick) \
71 PERSON(Jakob "tZork" Markström Gröhn) \
72 PERSON(Konrad "Justin" Slawinski) \
75 PERSON(Łukasz "kuniu the frogg" Polek) \
76 PERSON(Maik "SavageX" Merten) \
77 PERSON(Marvin "Mirio" Beck) \
80 PERSON(Pearce "theShadow" Michal) \
81 PERSON(Rasmus "FruitieX" Eskola) \
82 PERSON(Ruszkai "CuBe0wL" Ákos) \
83 PERSON(Severin "sev" Meyer) \
86 FUNCTION(_("Music / Sound FX")) \
87 PERSON(AquaNova (Archer)) \
90 PERSON(Independent.nu) \
91 PERSON([master]mind) \
92 PERSON(Merlijn Hofstra) \
94 PERSON(Nick "bitbomb" Lucca) \
96 PERSON(Saulo "mand1nga" Gil) \
97 PERSON({SC0RP} - Ian "ID" Dorrell) \
101 FUNCTION(_("Game Code")) \
102 PERSON(Samual "Ares" Lenks) \
103 PERSON(Rudolf "divVerent" Polzer) \
104 PERSON(Jakob "tZork" Markström Gröhn) \
105 PERSON(Rasmus "FruitieX" Eskola) \
107 PERSON(Zac "Mario" Jardine) \
109 FUNCTION(_("Marketing / PR")) \
110 PERSON(Tyler "-z-" Mulligan) \
111 PERSON(Ruszkai "CuBe0wL" Ákos) \
112 PERSON(Samual "Ares" Lenks) \
113 PERSON(Saulo "mand1nga" Gil) \
115 FUNCTION(_("Legal")) \
116 PERSON(Rudolf "divVerent" Polzer) \
117 PERSON(Merlijn Hofstra) \
120 TITLE(_("Game Engine")) \
121 FUNCTION("DarkPlaces") \
122 PERSON(Forest "LordHavoc" Hale) \
124 FUNCTION(_("Engine Additions")) \
125 PERSON(Rudolf "divVerent" Polzer) \
126 PERSON(Samual "Ares" Lenks) \
129 TITLE(_("Compiler")) \
131 PERSON(Wolfgang "Blub\0" Bumiller) \
132 PERSON(Dale "graphitemaster" Weiler) \
135 TITLE(_("Other Active Contributors")) \
136 PERSON(Erik "Ablu" Schilling) \
137 PERSON(Mircea "Taoki" Kitsune) \
141 TITLE(_("Translators")) \
143 FUNCTION(_("Asturian")) \
145 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
148 FUNCTION(_("Belarusian")) \
149 PERSON(Mihail "meequz" Varantsou) \
151 FUNCTION(_("Bulgarian")) \
155 FUNCTION(_("Chinese (China)")) \
158 PERSON(sapphireliu) \
160 FUNCTION(_("Czech")) \
161 PERSON(shogun assassin/woky) \
163 PERSON(Tomáš "CZHeron" Volavka) \
165 FUNCTION(_("Dutch")) \
166 PERSON(Alexander "freefang" van Dam) \
170 FUNCTION(_("English (Australia)")) \
171 PERSON(Laurene "sunflowers" Albrand) \
172 PERSON(Zac "Mario" Jardine) \
174 FUNCTION(_("Finnish")) \
175 PERSON(Henry "Exitium" Sanmark) \
176 PERSON(Rasmus "FruitieX" Eskola) \
178 FUNCTION(_("French")) \
180 PERSON(Maxime "Taximus" Paradis) \
182 PERSON(Yannick "SpiKe" Le Guen) \
184 FUNCTION(_("German")) \
187 PERSON(Erik "Ablu" Schilling) \
188 PERSON(Jope "Sless" Withers) \
189 PERSON(Marvin "Mirio" Beck) \
190 PERSON(Rudolf "divVerent" Polzer) \
193 FUNCTION(_("Greek")) \
194 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
195 PERSON(Konstantinos "LDinos" Mihalenas) \
199 FUNCTION(_("Hungarian")) \
200 PERSON(Ruszkai "CuBe0wL" Ákos) \
203 FUNCTION(_("Italian")) \
204 PERSON(Antonio "terencehill" Piu) \
205 PERSON(Felice "MaidenBeast" Sallustio) \
209 FUNCTION(_("Polish")) \
211 PERSON(Alex "tiprogrammierer.alex" Progger) \
212 PERSON(Amadeusz "amade/proraide" Sławiński) \
214 FUNCTION(_("Portuguese")) \
215 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
216 PERSON(xXxCHAOTICxXx) \
218 FUNCTION(_("Romanian")) \
219 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
221 PERSON(Mircea "Taoki" Kitsune) \
222 PERSON(Tudor "TropiKo" Ionel) \
224 FUNCTION(_("Russian")) \
225 PERSON(Alex "alextalker7" Talker) \
226 PERSON(Alexandr "zrg") \
227 PERSON(Andrei "adem4ik" Stepanov) \
230 PERSON(Lord Canistra) \
232 PERSON(Sergej "Clearness High" Lutsyk) \
234 FUNCTION(_("Serbian")) \
235 PERSON_("Саша \"salepetronije\" Петровић") \
237 PERSON(Rafael "Ristovski") \
239 FUNCTION(_("Spanish")) \
240 PERSON_("0000simon") \
241 PERSON(Alan "aagp" Garcia) \
245 PERSON(roader_gentoo) \
246 PERSON(Rodrigo Mouton Laudin) \
249 FUNCTION(_("Swedish")) \
250 PERSON(Karl-Oskar "machine" Rikås) \
253 FUNCTION(_("Ukrainian")) \
254 PERSON(Oleh "BlaXpirit" Prypin) \
255 PERSON(Vasyl "Harmata" Melnyk) \
256 PERSON(Yuriy "herrniemand" Ackermann) \
259 TITLE(_("Past Contributors")) \
261 PERSON(Alexander "naryl" Suhoverhov) \
262 PERSON(Alexander "motorsep" Zubov) \
263 PERSON(Amos "torus" Dudley) \
264 PERSON(Andreas "Black" Kirsch) \
265 PERSON(Attila "WW3" Houtkooper) \
267 PERSON(Braden "meoblast001" Walters) \
268 PERSON(Brain Younds) \
269 PERSON(Chris "amethyst7" Matz) \
270 PERSON(Christian Ice) \
271 PERSON(Clinton "Kaziganthe" Freeman) \
272 PERSON(Dan "Digger" Korostelev) \
273 PERSON(Dan "Wazat" Hale) \
277 PERSON(Dustin Geeraert) \
278 PERSON(Edgenetwork) \
279 PERSON(Edward "Ed" Holness) \
280 PERSON(Eric "Munyul Verminard" Sambach) \
281 PERSON(Fabien "H. Reaper" Tschirhart) \
282 PERSON(Florian Paul "lda17h" Schmidt) \
284 PERSON(Garth "Zombie" Hendy) \
285 PERSON(Gerd "Elysis" Raudenbusch) \
286 PERSON(Gottfried "Toddd" Hofmann) \
287 PERSON(Henning "Tymo" Janssen) \
290 PERSON(Jody Gallagher) \
291 PERSON(Jope "Sless" Withers) \
292 PERSON(Juergen "LowDragon" Timm) \
293 PERSON(KadaverJack) \
294 PERSON(Kevin "Tyrann" Shanahan) \
295 PERSON(Kristian "morfar" Johansson) \
296 PERSON(Kurt Dereli) \
298 PERSON(Lee David Ash) \
299 PERSON(Lee Vermeulen) \
302 PERSON(Marius "GreEn`mArine" Shekow) \
303 PERSON(Marko "Urre" Permanto) \
304 PERSON(Mathieu "Elric" Olivier) \
305 PERSON(Mattrew "Tronyn" Rye) \
309 PERSON(Michael "Tenshihan" Quinn) \
316 PERSON(Paul "Strahlemann" Evers) \
319 PERSON(PlasmaSheep) \
320 PERSON(Przemysław "atheros" Grzywacz) \
321 PERSON(Q1 Retexturing Project) \
323 PERSON(Oleh "BlaXpirit" Prypin) \
324 PERSON(Rick "Rat" Kelley) \
325 PERSON(Robert "ai" Kuroto) \
328 PERSON(Saulo "mand1nga" Gil) \
331 PERSON(Simon O’Callaghan) \
333 PERSON(SoulKeeper_p) \
336 PERSON(Stephan "esteel" Stahl) \
337 PERSON(Steve Vermeulen) \
340 PERSON(The player with the unnecessarily long name) \
342 PERSON(Ulrich Galbraith) \
344 PERSON(William Libert) \
345 PERSON(William "Willis" Weilep) \
346 PERSON(Yves "EviLair" Allaire) \
352 int n = buf_create();
353 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
354 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
355 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
356 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
357 #define CREDITS_NL() bufstr_add(n, "", 0);
358 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
360 #undef CREDITS_FUNCTION
361 #undef CREDITS_PERSON
362 #undef _CREDITS_PERSON
369 entity makeXonoticCreditsList()
372 me = NEW(XonoticCreditsList);
373 me.configureXonoticCreditsList(me);
376 void XonoticCreditsList_configureXonoticCreditsList(entity me)
378 me.configureXonoticListBox(me);
379 me.bufferIndex = credits_get();
380 me.nItems = buf_getsize(me.bufferIndex);
382 void XonoticCreditsList_destroy(entity me)
384 buf_del(me.bufferIndex);
386 void XonoticCreditsList_draw(entity me)
390 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
391 me.scrollPosTarget = me.scrollPos;
393 SUPER(XonoticCreditsList).draw(me);
395 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
397 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
399 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
400 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
401 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
403 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
405 // layout: Ping, Credits name, Map name, NP, TP, MP
410 s = bufstr_get(me.bufferIndex, i);
412 if(substring(s, 0, 2) == "**")
414 s = substring(s, 2, strlen(s) - 2);
415 theColor = SKINCOLOR_CREDITS_TITLE;
416 theAlpha = SKINALPHA_CREDITS_TITLE;
418 else if(substring(s, 0, 1) == "*")
420 s = substring(s, 1, strlen(s) - 1);
421 theColor = SKINCOLOR_CREDITS_FUNCTION;
422 theAlpha = SKINALPHA_CREDITS_FUNCTION;
426 theColor = SKINCOLOR_CREDITS_PERSON;
427 theAlpha = SKINALPHA_CREDITS_PERSON;
430 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
433 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
436 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);