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