]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/credits.qc
4b50e591ebd4e5d5fd3c485e425ec19f0b2466a3
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / credits.qc
1 #include "credits.qh"
2
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(Ruszkai "CuBe0wL" Ákos) \
10                 PERSON(Tyler "-z-" Mulligan) \
11                 PERSON(Zac "Mario" Jardine) \
12         NL() \
13         TITLE(_("Extended Team")) \
14                 PERSON(Antonio "terencehill" Piu) \
15                 PERSON(bones_was_here) \
16                 PERSON(David "Cloudwalk" Knapp) \
17                 PERSON(Freddy) \
18                 PERSON(Halogene) \
19                 PERSON(Jan "zykure" Behrens) \
20                 PERSON(Morosophos) \
21                 PERSON(MrBougo) \
22                 PERSON(nilyt/nyov) \
23                 PERSON(Nitroxis) \
24                 PERSON(packer) \
25                 PERSON(Severin "sev" Meyer) \
26                 PERSON(SpiKe) \
27         NL() \
28         NL() \
29         FUNCTION(_("Website")) \
30                 PERSON(Ant "Antibody" Zucaro (web)) \
31                 PERSON(Merlijn Hofstra) \
32                 PERSON(Tyler "-z-" Mulligan (web / game)) \
33         NL() \
34         FUNCTION(_("Stats")) \
35                 PERSON(Ant "Antibody" Zucaro) \
36                 PERSON(Jan "zykure" Behrens) \
37         NL() \
38         FUNCTION(_("Art")) \
39                 PERSON(Severin "sev" Meyer) \
40                 PERSON(Sahil "DiaboliK" Singhal) \
41                 PERSON(Peter "Morphed" Pielak) \
42                 PERSON(Sam "LJFHutch" Hutchinson) \
43                 PERSON(Pearce "theShadow" Michal) \
44                 PERSON(KingPimpCommander) \
45         NL() \
46         FUNCTION(_("Animation")) \
47                 PERSON(Sahil "DiaboliK" Singhal) \
48                 PERSON(nifrek) \
49         NL() \
50         FUNCTION(_("Level Design")) \
51                 PERSON(Amadeusz "amade/proraide" Sławiński) \
52                 PERSON(Ben "MooKow" Banker) \
53                 PERSON(Cortez) \
54                 PERSON(Cuinn "Cuinnton" Herrick) \
55                 PERSON(Debugger) \
56                 PERSON(Hugo "Calinou" Locurcio) \
57                 PERSON(Jakob "tZork" Markström Gröhn) \
58                 PERSON(Konrad "Justin" Slawinski) \
59                 PERSON(Maddin) \
60                 PERSON(L0) \
61                 PERSON(Łukasz "kuniu the frogg" Polek) \
62                 PERSON(Maik "SavageX" Merten) \
63                 PERSON(Marvin "Mirio" Beck) \
64                 PERSON(MintOX) \
65                 PERSON(packer) \
66                 PERSON(Pearce "theShadow" Michal) \
67                 PERSON(Rasmus "FruitieX" Eskola) \
68                 PERSON(Ruszkai "CuBe0wL" Ákos) \
69                 PERSON(Severin "sev" Meyer) \
70                 PERSON(ShadoW) \
71                 PERSON(t0uYK8Ne) \
72         NL() \
73         FUNCTION(_("Music / Sound FX")) \
74                 PERSON(AquaNova (Archer)) \
75                 PERSON(blkrbt) \
76                 PERSON(chooksta) \
77                 PERSON(Independent.nu) \
78                 PERSON(Lea "TheAudioMonkey" Edwards) \
79                 PERSON([master]mind) \
80                 PERSON(Merlijn Hofstra) \
81                 PERSON(Mick Rippon) \
82                 PERSON(Nick "bitbomb" Lucca) \
83                 PERSON(remaxim) \
84                 PERSON(Saulo "mand1nga" Gil) \
85                 PERSON({SC0RP} - Ian "ID" Dorrell) \
86                 PERSON(Stephan) \
87                 PERSON(unfa) \
88         NL() \
89         FUNCTION(_("Game Code")) \
90                 PERSON(Antonio "terencehill" Piu) \
91                 PERSON(Jakob "tZork" Markström Gröhn) \
92                 PERSON(martin-t) \
93                 PERSON(Mattia "Melanosuchus" Basaglia) \
94                 PERSON(Matthias "matthiaskrgr" Krüger) \
95                 PERSON(Rasmus "FruitieX" Eskola) \
96                 PERSON(Rudolf "divVerent" Polzer) \
97                 PERSON(Samual "Ares" Lenks) \
98                 PERSON(TimePath) \
99                 PERSON(Zac "Mario" Jardine) \
100         NL() \
101         FUNCTION(_("Marketing / PR")) \
102                 PERSON(Tyler "-z-" Mulligan) \
103                 PERSON(Ruszkai "CuBe0wL" Ákos) \
104                 PERSON(Samual "Ares" Lenks) \
105                 PERSON(Saulo "mand1nga" Gil) \
106         NL() \
107         FUNCTION(_("Legal")) \
108                 PERSON(Rudolf "divVerent" Polzer) \
109                 PERSON(Merlijn Hofstra) \
110         NL() \
111         NL() \
112         TITLE(_("Game Engine")) \
113                 FUNCTION("DarkPlaces") \
114                         PERSON(Ashley Rose "LadyHavoc" Hale) \
115                 NL() \
116                 FUNCTION(_("Engine Additions")) \
117                         PERSON(David "Cloudwalk" Knapp) \
118                         PERSON(Rudolf "divVerent" Polzer) \
119                         PERSON(Samual "Ares" Lenks) \
120                 NL() \
121         NL() \
122         TITLE(_("Compiler")) \
123                 FUNCTION("GMQCC") \
124                         PERSON(Wolfgang "Blub\0" Bumiller) \
125                         PERSON(Dale "graphitemaster" Weiler) \
126                 NL() \
127         NL() \
128         TITLE(_("Other Active Contributors")) \
129                 PERSON(Jeff) \
130                 PERSON(Lyberta) \
131                 PERSON(Mircea "Taoki" Kitsune) \
132                 PERSON(Penguinum) \
133                 PERSON(slava) \
134         NL() \
135         NL() \
136         TITLE(_("Translators")) \
137                 NL() \
138                 FUNCTION(_("Asturian")) \
139                         PERSON(Llumex03) \
140                         PERSON(Tornes "Tornes.Llume" Ḷḷume) \
141                         PERSON(Ximielga) \
142                 NL() \
143                 FUNCTION(_("Belarusian")) \
144                         PERSON(Mihail "meequz" Varantsou) \
145                 NL() \
146                 FUNCTION(_("Bulgarian")) \
147                         PERSON(Alexander "alex4o" Bonin) \
148                         PERSON(ifohancroft) \
149                         PERSON(lokster) \
150                         PERSON(set_killer) \
151                         PERSON(ubone) \
152                 NL() \
153                 FUNCTION(_("Chinese (China)")) \
154                         PERSON(Antonidas) \
155                         PERSON(Armcoon) \
156                         PERSON(kalawore) \
157                         PERSON(sapphireliu) \
158                 NL() \
159                 FUNCTION(_("Chinese (Taiwan)")) \
160                         PERSON(Alisha) \
161                         PERSON(Armcoon) \
162                         PERSON(Jeff "s8321414" Huang) \
163                 NL() \
164                 FUNCTION(_("Cornish")) \
165                         PERSON(Nicky "nrowe" Rowe) \
166                 NL() \
167                 FUNCTION(_("Czech")) \
168                         PERSON(shogun assassin/woky) \
169                         PERSON(Superovoce) \
170                         PERSON(Tomáš "CZHeron" Volavka) \
171                 NL() \
172                 FUNCTION(_("Dutch")) \
173                         PERSON(Alexander "freefang" van Dam) \
174                         PERSON(Joeke "Mappack" de Graaf) \
175                         PERSON(Jonathan "Jonakeys" van der Steege) \
176                         PERSON(PinkRobot) \
177                         PERSON(vegiburger) \
178                 NL() \
179                 FUNCTION(_("English (Australia)")) \
180                         PERSON(Laurene "sunflowers" Albrand) \
181                         PERSON(Stuart "Cefiar" Young) \
182                         PERSON(Zac "Mario" Jardine) \
183                 NL() \
184                 FUNCTION(_("Finnish")) \
185                         PERSON(Jonas "PowaTree" Sahlberg) \
186                         PERSON(Henry "Exitium" Sanmark) \
187                         PERSON(Rasmus "FruitieX" Eskola) \
188                 NL() \
189                 FUNCTION(_("French")) \
190                         PERSON(Hugo "Calinou" Locurcio) \
191                         PERSON(Kim "coughingmouse" Lee) \
192                         PERSON(Maxime "Taximus" Paradis) \
193                         PERSON(RedGuff) \
194                         PERSON(Thomas "illwieckz" Debesse) \
195                         PERSON(Yannick "SpiKe" Le Guen) \
196                 NL() \
197                 FUNCTION(_("German")) \
198                         PERSON(Brot) \
199                         PERSON(cvcxc) \
200                         PERSON(Erik "Ablu" Schilling) \
201                         PERSON(Jope "Sless" Withers) \
202                         PERSON(Marvin "Mirio" Beck) \
203                         PERSON(Paul "Snapper") \
204                         PERSON(Rudolf "divVerent" Polzer) \
205                         PERSON(Wuzzy) \
206                         PERSON(Yepoleb) \
207                 NL() \
208                 FUNCTION(_("Greek")) \
209                         PERSON_("Γιάννης \"Evropi\" Ανθυμίδης") \
210                         PERSON(Konstantinos "LDinos" Mihalenas) \
211                         PERSON(Savoritias) \
212                         PERSON(Vindex) \
213                 NL() \
214                 FUNCTION(_("Hungarian")) \
215                         PERSON(Ruszkai "CuBe0wL" Ákos) \
216                         PERSON(xaN1C4n3) \
217                 NL() \
218                 FUNCTION(_("Irish")) \
219                         PERSON(Kevin "kscanne" Scannell) \
220                 NL() \
221                 FUNCTION(_("Italian")) \
222                         PERSON(Antonio "terencehill" Piu) \
223                         PERSON(Felice "MaidenBeast" Sallustio) \
224                         PERSON(stdi) \
225                         PERSON(XCostaX) \
226                 NL() \
227                 FUNCTION(_("Kazakh")) \
228                         PERSON("Артем "bystrov.arterm" Быстров") \
229                 NL() \
230                 FUNCTION(_("Korean")) \
231                         PERSON(Jisoo "s6e9x" Lim) \
232                         PERSON(Kim "coughingmouse" Lee) \
233                 NL() \
234                 FUNCTION(_("Polish")) \
235                         PERSON(4m) \
236                         PERSON(Alex "tiprogrammierer.alex" Progger) \
237                         PERSON(Amadeusz "amade/proraide" Sławiński) \
238                         PERSON(Artur "artur9010" Motyka) \
239                         PERSON(Jakub "KubeQ11" Pędziszewski) \
240                         PERSON(Kriss7475) \
241                 NL() \
242                 FUNCTION(_("Portuguese")) \
243                         PERSON(Ivan Paulos "greylica" Tomé) \
244                         PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
245                         PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
246                         PERSON(xXxCHAOTICxXx) \
247                 NL() \
248                 FUNCTION(_("Romanian")) \
249                         PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
250                         PERSON(BusterDBK) \
251                         PERSON(Mircea "Taoki" Kitsune) \
252                         PERSON(Sorin "unic_sorin" Botirla) \
253                         PERSON(Tudor "TropiKo" Ionel) \
254                 NL() \
255                 FUNCTION(_("Russian")) \
256                         PERSON(Alex "alextalker7" Talker) \
257                         PERSON(Alexandr "zrg") \
258                         PERSON(Andrei "adem4ik" Stepanov) \
259                         PERSON(Andrey "dekrY" P.) \
260                         PERSON(gravicappa) \
261                         PERSON(Hot Dog) \
262                         PERSON(Lord Canistra) \
263                         PERSON(Nikoli) \
264                         PERSON(Sergej "Clearness High" Lutsyk) \
265                 NL() \
266                 FUNCTION(_("Scottish Gaelic")) \
267                         PERSON_("GunChleoc") \
268                 NL() \
269                 FUNCTION(_("Serbian")) \
270                         PERSON_("Саша \"salepetronije\" Петровић") \
271                         PERSON(Marko M. Kostić) \
272                         PERSON(Pendulla) \
273                         PERSON(Rafael "Ristovski") \
274                 NL() \
275                 FUNCTION(_("Spanish")) \
276                         PERSON_("0000simon") \
277                         PERSON(Alan "aagp" Garcia) \
278                         PERSON(Ari_tent) \
279                         PERSON(brunodeleo) \
280                         PERSON(Kammy) \
281                         PERSON(roader_gentoo) \
282                         PERSON(Rodrigo Mouton Laudin) \
283                         PERSON(SouL) \
284                         PERSON(Starfire24680) \
285                 NL() \
286                 FUNCTION(_("Swedish")) \
287                         PERSON(Karl-Oskar "machine" Rikås) \
288                         PERSON(marcus256) \
289                 NL() \
290                 FUNCTION(_("Ukrainian")) \
291                         PERSON(Dmitro "Gamebot" Sokhin) \
292                         PERSON(Oleh "BlaXpirit" Prypin) \
293                         PERSON(Vasyl "Harmata" Melnyk) \
294                         PERSON(Yuriy "herrniemand" Ackermann) \
295                 NL() \
296         NL() \
297         TITLE(_("Past Contributors")) \
298                 PERSON(Akari) \
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) \
304                 PERSON(BigMac) \
305                 PERSON(Braden "meoblast001" Walters) \
306                 PERSON(Brain Younds) \
307                 PERSON(BuddyFriendGuy) \
308                 PERSON(Chris "amethyst7" Matz) \
309                 PERSON(Christian Ice) \
310                 PERSON(Clinton "Kaziganthe" Freeman) \
311                 PERSON(Dan "Digger" Korostelev) \
312                 PERSON(Dan "Wazat" Hale) \
313                 PERSON(Diomedes) \
314                 PERSON(Dokujisan) \
315                 PERSON(Donkey) \
316                 PERSON(dstrek) \
317                 PERSON(Dustin Geeraert) \
318                 PERSON(Edgenetwork) \
319                 PERSON(Edward "Ed" Holness) \
320                 PERSON(Eric "Munyul Verminard" Sambach) \
321                 PERSON(Erik "Ablu" Schilling) \
322                 PERSON(Fabien "H. Reaper" Tschirhart) \
323                 PERSON(Florian Paul "lda17h" Schmidt) \
324                 PERSON(FrikaC) \
325                 PERSON(Garth "Zombie" Hendy) \
326                 PERSON(GATTS) \
327                 PERSON(Gerd "Elysis" Raudenbusch) \
328                 PERSON(Gottfried "Toddd" Hofmann) \
329                 PERSON(Henning "Tymo" Janssen) \
330                 PERSON(Innovati) \
331                 PERSON(JH0nny) \
332                 PERSON(Jitspoe) \
333                 PERSON(Jody Gallagher) \
334                 PERSON(Jope "Sless" Withers) \
335                 PERSON(Jubilant) \
336                 PERSON(Juergen "LowDragon" Timm) \
337                 PERSON(KadaverJack) \
338                 PERSON(Kevin "Tyrann" Shanahan) \
339                 PERSON(Kristian "morfar" Johansson) \
340                 PERSON(Kurt Dereli) \
341                 PERSON(lcatlnx) \
342                 PERSON(Lee David Ash) \
343                 PERSON(Lee Vermeulen) \
344                 PERSON(leileilol) \
345                 PERSON(magorian) \
346                 PERSON(Marius "GreEn`mArine" Shekow) \
347                 PERSON(Marko "Urre" Permanto) \
348                 PERSON(Mathieu "Elric" Olivier) \
349                 PERSON(Mattrew "Tronyn" Rye) \
350                 PERSON(MauveBib) \
351                 PERSON(Mephisto) \
352                 PERSON(michaelb) \
353                 PERSON(Michael "Tenshihan" Quinn) \
354                 PERSON(Mepper) \
355                 PERSON(Munyul) \
356                 PERSON(Netzwerg) \
357                 PERSON(NoelCower) \
358                 PERSON(Parapraxis) \
359                 PERSON(parasti) \
360                 PERSON(Paul "Strahlemann" Evers) \
361                 PERSON(Paul Scott) \
362                 PERSON(Petithomme) \
363                 PERSON(PlasmaSheep) \
364                 PERSON(Przemysław "atheros" Grzywacz) \
365                 PERSON(Q1 Retexturing Project) \
366                 PERSON(Qantourisc) \
367                 PERSON(Oleh "BlaXpirit" Prypin) \
368                 PERSON(Rick "Rat" Kelley) \
369                 PERSON(Robert "ai" Kuroto) \
370                 PERSON(Ronan) \
371                 PERSON(Sajt) \
372                 PERSON(Samual "Ares" Lenks) \
373                 PERSON(Saulo "mand1nga" Gil) \
374                 PERSON(Shaggy) \
375                 PERSON(Shank) \
376                 PERSON(s1lence) \
377                 PERSON(Simon O’Callaghan) \
378                 PERSON(Soelen) \
379                 PERSON(SomeGuy) \
380                 PERSON(SoulKeeper_p) \
381                 PERSON(Spike) \
382                 PERSON(Spirit) \
383                 PERSON(Stephan "esteel" Stahl) \
384                 PERSON(Steve Vermeulen) \
385                 PERSON(Supajoe) \
386                 PERSON(Sydes) \
387                 PERSON(Tei) \
388                 PERSON(The player with the unnecessarily long name) \
389                 PERSON(Tomaz) \
390                 PERSON(Ulrich Galbraith) \
391                 PERSON(Vortex) \
392                 PERSON(William Libert) \
393                 PERSON(William "Willis" Weilep) \
394                 PERSON(Yves "EviLair" Allaire) \
395                 PERSON(Zenex) \
396                 PERSON(... and a goat) \
397                 /**/
398
399 int credits_get()
400 {
401         int n = buf_create();
402         #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
403         #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
404         #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
405         #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
406         #define CREDITS_NL() bufstr_add(n, "", 0);
407     CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
408         #undef CREDITS_TITLE
409         #undef CREDITS_FUNCTION
410         #undef CREDITS_PERSON
411         #undef _CREDITS_PERSON
412         #undef CREDITS_NL
413         return n;
414 }
415
416 #undef CREDITS
417
418 entity makeXonoticCreditsList()
419 {
420         entity me;
421         me = NEW(XonoticCreditsList);
422         me.configureXonoticCreditsList(me);
423         return me;
424 }
425 void XonoticCreditsList_configureXonoticCreditsList(entity me)
426 {
427         me.configureXonoticListBox(me);
428     me.bufferIndex = credits_get();
429         me.nItems = buf_getsize(me.bufferIndex);
430 }
431 void XonoticCreditsList_destroy(entity me)
432 {
433         buf_del(me.bufferIndex);
434 }
435 void XonoticCreditsList_draw(entity me)
436 {
437         if(me.scrolling)
438         {
439                 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
440                 me.scrollPosTarget = me.scrollPos;
441         }
442         SUPER(XonoticCreditsList).draw(me);
443 }
444 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
445 {
446         SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
447
448         me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
449         me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
450         me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
451 }
452 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
453 {
454         string s;
455         float theAlpha;
456         vector theColor;
457
458         s = bufstr_get(me.bufferIndex, i);
459
460         if(substring(s, 0, 2) == "**")
461         {
462                 s = substring(s, 2, strlen(s) - 2);
463                 theColor = SKINCOLOR_CREDITS_TITLE;
464                 theAlpha = SKINALPHA_CREDITS_TITLE;
465         }
466         else if(substring(s, 0, 1) == "*")
467         {
468                 s = substring(s, 1, strlen(s) - 1);
469                 theColor = SKINCOLOR_CREDITS_FUNCTION;
470                 theAlpha = SKINALPHA_CREDITS_FUNCTION;
471         }
472         else
473         {
474                 theColor = SKINCOLOR_CREDITS_PERSON;
475                 theAlpha = SKINALPHA_CREDITS_PERSON;
476         }
477
478         draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
479 }
480
481 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
482 {
483         me.scrolling = 0;
484         return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);
485 }