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