4 #define CREDITS(TITLE, FUNCTION, PERSON, PERSON_, NL) \
5 TITLE(_("Core Team")) \
6 PERSON(Rudolf "divVerent" Polzer) \
7 PERSON(Ant "Antibody" Zucaro) \
8 PERSON(Marvin "Mirio" Beck) \
9 PERSON(Merlijn Hofstra) \
10 PERSON(Peter "Morphed" Pielak) \
11 PERSON(Ruszkai "CuBe0wL" Ákos) \
12 PERSON(Samual "Ares" Lenks) \
14 PERSON(Tyler "-z-" Mulligan) \
15 PERSON(Zac "Mario" Jardine) \
17 TITLE(_("Extended Team")) \
18 PERSON(Antonio "terencehill" Piu) \
20 PERSON(BuddyFriendGuy) \
25 PERSON(Jan "zykure" Behrens) \
28 PERSON(Łukasz "kuniu the frogg" Polek) \
29 PERSON(Matthias "matthiaskrgr" Krüger) \
30 PERSON(Mattia "Melanosuchus" Basaglia) \
32 PERSON(Nick "bitbomb" Lucca) \
36 PERSON(Pearce "theShadow" Michal) \
37 PERSON(Rasmus "FruitieX" Eskola) \
39 PERSON(Severin "sev" Meyer) \
45 FUNCTION(_("Website")) \
46 PERSON(Ant "Antibody" Zucaro (web)) \
47 PERSON(Merlijn Hofstra) \
48 PERSON(Tyler "-z-" Mulligan (web / game)) \
50 FUNCTION(_("Stats")) \
51 PERSON(Ant "Antibody" Zucaro) \
52 PERSON(Jan "zykure" Behrens) \
55 PERSON(Severin "sev" Meyer) \
56 PERSON(Sahil "DiaboliK" Singhal) \
57 PERSON(Peter "Morphed" Pielak) \
58 PERSON(Sam "LJFHutch" Hutchinson) \
59 PERSON(Pearce "theShadow" Michal) \
61 FUNCTION(_("Animation")) \
62 PERSON(Sahil "DiaboliK" Singhal) \
65 FUNCTION(_("Level Design")) \
66 PERSON(Amadeusz "amade/proraide" Sławiński) \
67 PERSON(Ben "MooKow" Banker) \
70 PERSON(Cuinn "Cuinnton" Herrick) \
72 PERSON(Jakob "tZork" Markström Gröhn) \
73 PERSON(Konrad "Justin" Slawinski) \
76 PERSON(Łukasz "kuniu the frogg" Polek) \
77 PERSON(Maik "SavageX" Merten) \
78 PERSON(Marvin "Mirio" Beck) \
81 PERSON(Pearce "theShadow" Michal) \
82 PERSON(Rasmus "FruitieX" Eskola) \
83 PERSON(Ruszkai "CuBe0wL" Ákos) \
84 PERSON(Severin "sev" Meyer) \
87 FUNCTION(_("Music / Sound FX")) \
88 PERSON(AquaNova (Archer)) \
91 PERSON(Independent.nu) \
92 PERSON([master]mind) \
93 PERSON(Merlijn Hofstra) \
95 PERSON(Nick "bitbomb" Lucca) \
97 PERSON(Saulo "mand1nga" Gil) \
98 PERSON({SC0RP} - Ian "ID" Dorrell) \
102 FUNCTION(_("Game Code")) \
103 PERSON(Samual "Ares" Lenks) \
104 PERSON(Rudolf "divVerent" Polzer) \
105 PERSON(Jakob "tZork" Markström Gröhn) \
106 PERSON(Rasmus "FruitieX" Eskola) \
108 PERSON(Zac "Mario" Jardine) \
110 FUNCTION(_("Marketing / PR")) \
111 PERSON(Tyler "-z-" Mulligan) \
112 PERSON(Ruszkai "CuBe0wL" Ákos) \
113 PERSON(Samual "Ares" Lenks) \
114 PERSON(Saulo "mand1nga" Gil) \
116 FUNCTION(_("Legal")) \
117 PERSON(Rudolf "divVerent" Polzer) \
118 PERSON(Merlijn Hofstra) \
121 TITLE(_("Game Engine")) \
122 FUNCTION(_("DarkPlaces")) \
123 PERSON(Forest "LordHavoc" Hale) \
125 FUNCTION(_("Engine Additions")) \
126 PERSON(Rudolf "divVerent" Polzer) \
127 PERSON(Samual "Ares" Lenks) \
130 TITLE(_("Compiler")) \
131 FUNCTION(_("GMQCC")) \
132 PERSON(Wolfgang "Blub\0" Bumiller) \
133 PERSON(Dale "graphitemaster" Weiler) \
136 TITLE(_("Other Active Contributors")) \
137 PERSON(Erik "Ablu" Schilling) \
138 PERSON(Mircea "Taoki" Kitsune) \
142 TITLE(_("Translators")) \
144 FUNCTION(_("Asturian")) \
146 PERSON(Tornes "Tornes.Llume" Ḷḷume) \
149 FUNCTION(_("Belarusian")) \
150 PERSON(Mihail "meequz" Varantsou) \
152 FUNCTION(_("Bulgarian")) \
156 FUNCTION(_("Chinese (China)")) \
159 PERSON(sapphireliu) \
161 FUNCTION(_("Czech")) \
162 PERSON(shogun assassin/woky) \
164 PERSON(Tomáš "CZHeron" Volavka) \
166 FUNCTION(_("Dutch")) \
167 PERSON(Alexander "freefang" van Dam) \
171 FUNCTION(_("English (Australia)")) \
172 PERSON(Laurene "sunflowers" Albrand) \
173 PERSON(Zac "Mario" Jardine) \
175 FUNCTION(_("Finnish")) \
176 PERSON(Henry "Exitium" Sanmark) \
177 PERSON(Rasmus "FruitieX" Eskola) \
179 FUNCTION(_("French")) \
181 PERSON(Maxime "Taximus" Paradis) \
183 PERSON(Yannick "SpiKe" Le Guen) \
185 FUNCTION(_("German")) \
188 PERSON(Erik "Ablu" Schilling) \
189 PERSON(Jope "Sless" Withers) \
190 PERSON(Marvin "Mirio" Beck) \
191 PERSON(Rudolf "divVerent" Polzer) \
194 FUNCTION(_("Greek")) \
195 PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
196 PERSON(Konstantinos "LDinos" Mihalenas) \
200 FUNCTION(_("Hungarian")) \
201 PERSON(Ruszkai "CuBe0wL" Ákos) \
204 FUNCTION(_("Italian")) \
205 PERSON(Antonio "terencehill" Piu) \
206 PERSON(Felice "MaidenBeast" Sallustio) \
210 FUNCTION(_("Polish")) \
212 PERSON(Alex "tiprogrammierer.alex" Progger) \
213 PERSON(Amadeusz "amade/proraide" Sławiński) \
215 FUNCTION(_("Portuguese")) \
216 PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
217 PERSON(xXxCHAOTICxXx) \
219 FUNCTION(_("Romanian")) \
220 PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
222 PERSON(Mircea "Taoki" Kitsune) \
223 PERSON(Tudor "TropiKo" Ionel) \
225 FUNCTION(_("Russian")) \
226 PERSON(Alex "alextalker7" Talker) \
227 PERSON(Alexandr "zrg") \
228 PERSON(Andrei "adem4ik" Stepanov) \
231 PERSON(Lord Canistra) \
233 PERSON(Sergej "Clearness High" Lutsyk) \
235 FUNCTION(_("Serbian")) \
236 PERSON_("Саша \"salepetronije\" Петровић") \
238 PERSON(Rafael "Ristovski") \
240 FUNCTION(_("Spanish")) \
241 PERSON_("0000simon") \
242 PERSON(Alan "aagp" Garcia) \
246 PERSON(roader_gentoo) \
247 PERSON(Rodrigo Mouton Laudin) \
250 FUNCTION(_("Swedish")) \
251 PERSON(Karl-Oskar "machine" Rikås) \
254 FUNCTION(_("Ukrainian")) \
255 PERSON(Oleh "BlaXpirit" Prypin) \
256 PERSON(Vasyl "Harmata" Melnyk) \
257 PERSON(Yuriy "herrniemand" Ackermann) \
260 TITLE(_("Past Contributors")) \
262 PERSON(Alexander "naryl" Suhoverhov) \
263 PERSON(Alexander "motorsep" Zubov) \
264 PERSON(Amos "torus" Dudley) \
265 PERSON(Andreas "Black" Kirsch) \
266 PERSON(Attila "WW3" Houtkooper) \
268 PERSON(Braden "meoblast001" Walters) \
269 PERSON(Brain Younds) \
270 PERSON(Chris "amethyst7" Matz) \
271 PERSON(Christian Ice) \
272 PERSON(Clinton "Kaziganthe" Freeman) \
273 PERSON(Dan "Digger" Korostelev) \
274 PERSON(Dan "Wazat" Hale) \
278 PERSON(Dustin Geeraert) \
279 PERSON(Edgenetwork) \
280 PERSON(Edward "Ed" Holness) \
281 PERSON(Eric "Munyul Verminard" Sambach) \
282 PERSON(Fabien "H. Reaper" Tschirhart) \
283 PERSON(Florian Paul "lda17h" Schmidt) \
285 PERSON(Garth "Zombie" Hendy) \
286 PERSON(Gerd "Elysis" Raudenbusch) \
287 PERSON(Gottfried "Toddd" Hofmann) \
288 PERSON(Henning "Tymo" Janssen) \
291 PERSON(Jody Gallagher) \
292 PERSON(Jope "Sless" Withers) \
293 PERSON(Juergen "LowDragon" Timm) \
294 PERSON(KadaverJack) \
295 PERSON(Kevin "Tyrann" Shanahan) \
296 PERSON(Kristian "morfar" Johansson) \
297 PERSON(Kurt Dereli) \
299 PERSON(Lee David Ash) \
300 PERSON(Lee Vermeulen) \
303 PERSON(Marius "GreEn`mArine" Shekow) \
304 PERSON(Marko "Urre" Permanto) \
305 PERSON(Mathieu "Elric" Olivier) \
306 PERSON(Mattrew "Tronyn" Rye) \
310 PERSON(Michael "Tenshihan" Quinn) \
317 PERSON(Paul "Strahlemann" Evers) \
320 PERSON(PlasmaSheep) \
321 PERSON(Przemysław "atheros" Grzywacz) \
322 PERSON(Q1 Retexturing Project) \
324 PERSON(Oleh "BlaXpirit" Prypin) \
325 PERSON(Rick "Rat" Kelley) \
326 PERSON(Robert "ai" Kuroto) \
329 PERSON(Saulo "mand1nga" Gil) \
332 PERSON(Simon O’Callaghan) \
334 PERSON(SoulKeeper_p) \
337 PERSON(Stephan "esteel" Stahl) \
338 PERSON(Steve Vermeulen) \
341 PERSON(The player with the unnecessarily long name) \
343 PERSON(Ulrich Galbraith) \
345 PERSON(William Libert) \
346 PERSON(William "Willis" Weilep) \
347 PERSON(Yves "EviLair" Allaire) \
353 int n = buf_create();
354 #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
355 #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
356 #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
357 #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
358 #define CREDITS_NL() bufstr_add(n, "", 0);
359 CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
361 #undef CREDITS_FUNCTION
362 #undef CREDITS_PERSON
363 #undef _CREDITS_PERSON
370 #include "listbox.qc"
371 CLASS(XonoticCreditsList, XonoticListBox)
372 METHOD(XonoticCreditsList, configureXonoticCreditsList, void(entity));
373 ATTRIB(XonoticCreditsList, rowsPerItem, float, 1)
374 METHOD(XonoticCreditsList, draw, void(entity));
375 METHOD(XonoticCreditsList, drawListBoxItem, void(entity, int, vector, bool, bool));
376 METHOD(XonoticCreditsList, resizeNotify, void(entity, vector, vector, vector, vector));
377 METHOD(XonoticCreditsList, keyDown, float(entity, float, float, float));
378 METHOD(XonoticCreditsList, destroy, void(entity));
379 ATTRIB(XonoticCreditsList, selectionDoesntMatter, bool, true)
381 ATTRIB(XonoticCreditsList, realFontSize, vector, '0 0 0')
382 ATTRIB(XonoticCreditsList, realUpperMargin, float, 0)
383 ATTRIB(XonoticCreditsList, bufferIndex, float, 0)
384 ATTRIB(XonoticCreditsList, scrolling, float, 0)
386 ATTRIB(XonoticCreditsList, alphaBG, float, 0)
387 ENDCLASS(XonoticCreditsList)
388 entity makeXonoticCreditsList();
391 #ifdef IMPLEMENTATION
392 entity makeXonoticCreditsList()
395 me = NEW(XonoticCreditsList);
396 me.configureXonoticCreditsList(me);
399 void XonoticCreditsList_configureXonoticCreditsList(entity me)
401 me.configureXonoticListBox(me);
402 me.bufferIndex = credits_get();
403 me.nItems = buf_getsize(me.bufferIndex);
405 void XonoticCreditsList_destroy(entity me)
407 buf_del(me.bufferIndex);
409 void XonoticCreditsList_draw(entity me)
413 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
414 me.scrollPosTarget = me.scrollPos;
416 SUPER(XonoticCreditsList).draw(me);
418 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
420 SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
422 me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
423 me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
424 me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
426 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
428 // layout: Ping, Credits name, Map name, NP, TP, MP
433 s = bufstr_get(me.bufferIndex, i);
435 if(substring(s, 0, 2) == "**")
437 s = substring(s, 2, strlen(s) - 2);
438 theColor = SKINCOLOR_CREDITS_TITLE;
439 theAlpha = SKINALPHA_CREDITS_TITLE;
441 else if(substring(s, 0, 1) == "*")
443 s = substring(s, 1, strlen(s) - 1);
444 theColor = SKINCOLOR_CREDITS_FUNCTION;
445 theAlpha = SKINALPHA_CREDITS_FUNCTION;
449 theColor = SKINCOLOR_CREDITS_PERSON;
450 theAlpha = SKINALPHA_CREDITS_PERSON;
453 draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
456 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
459 return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);