Transifex autosync
[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(Mircea "Taoki" Kitsune) \
131                 PERSON(Penguinum) \
132                 PERSON(slava) \
133                 PERSON(Victor "LegendGuard" Jaume) \
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(_("Japanese")) \
228                         PERSON(Victor "LegendGuard" Jaume) \
229                 NL() \
230                 FUNCTION(_("Kazakh")) \
231                         PERSON("Артем "bystrov.arterm" Быстров") \
232                 NL() \
233                 FUNCTION(_("Korean")) \
234                         PERSON(Jisoo "s6e9x" Lim) \
235                         PERSON(Kim "coughingmouse" Lee) \
236                 NL() \
237                 FUNCTION(_("Polish")) \
238                         PERSON(4m) \
239                         PERSON(Alex "tiprogrammierer.alex" Progger) \
240                         PERSON(Amadeusz "amade/proraide" Sławiński) \
241                         PERSON(Artur "artur9010" Motyka) \
242                         PERSON(Jakub "KubeQ11" Pędziszewski) \
243                         PERSON(Kriss7475) \
244                 NL() \
245                 FUNCTION(_("Portuguese")) \
246                         PERSON(Ivan Paulos "greylica" Tomé) \
247                         PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
248                         PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
249                         PERSON(xXxCHAOTICxXx) \
250                 NL() \
251                 FUNCTION(_("Romanian")) \
252                         PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
253                         PERSON(BusterDBK) \
254                         PERSON(Mircea "Taoki" Kitsune) \
255                         PERSON(Sorin "unic_sorin" Botirla) \
256                         PERSON(Tudor "TropiKo" Ionel) \
257                 NL() \
258                 FUNCTION(_("Russian")) \
259                         PERSON(Alex "alextalker7" Talker) \
260                         PERSON(Alexandr "zrg") \
261                         PERSON(Andrei "adem4ik" Stepanov) \
262                         PERSON(Andrey "dekrY" P.) \
263                         PERSON(gravicappa) \
264                         PERSON(Hot Dog) \
265                         PERSON(Lord Canistra) \
266                         PERSON(Nikoli) \
267                         PERSON(Sergej "Clearness High" Lutsyk) \
268                 NL() \
269                 FUNCTION(_("Scottish Gaelic")) \
270                         PERSON_("GunChleoc") \
271                 NL() \
272                 FUNCTION(_("Serbian")) \
273                         PERSON_("Саша \"salepetronije\" Петровић") \
274                         PERSON(Marko M. Kostić) \
275                         PERSON(Pendulla) \
276                         PERSON(Rafael "Ristovski") \
277                 NL() \
278                 FUNCTION(_("Spanish")) \
279                         PERSON_("0000simon") \
280                         PERSON(Alan "aagp" Garcia) \
281                         PERSON(Ari_tent) \
282                         PERSON(brunodeleo) \
283                         PERSON(Kammy) \
284                         PERSON(roader_gentoo) \
285                         PERSON(Rodrigo Mouton Laudin) \
286                         PERSON(SouL) \
287                         PERSON(Starfire24680) \
288                         PERSON(Victor "LegendGuard" Jaume) \
289                 NL() \
290                 FUNCTION(_("Swedish")) \
291                         PERSON(Karl-Oskar "machine" Rikås) \
292                         PERSON(marcus256) \
293                 NL() \
294                 FUNCTION(_("Ukrainian")) \
295                         PERSON(Dmitro "Gamebot" Sokhin) \
296                         PERSON(Oleh "BlaXpirit" Prypin) \
297                         PERSON(Vasyl "Harmata" Melnyk) \
298                         PERSON(Yuriy "herrniemand" Ackermann) \
299                 NL() \
300         NL() \
301         TITLE(_("Past Contributors")) \
302                 PERSON(Akari) \
303                 PERSON(Alexander "naryl" Suhoverhov) \
304                 PERSON(Alexander "motorsep" Zubov) \
305                 PERSON(Amos "torus" Dudley) \
306                 PERSON(Andreas "Black" Kirsch) \
307                 PERSON(Attila "WW3" Houtkooper) \
308                 PERSON(BigMac) \
309                 PERSON(Braden "meoblast001" Walters) \
310                 PERSON(Brain Younds) \
311                 PERSON(BuddyFriendGuy) \
312                 PERSON(Chris "amethyst7" Matz) \
313                 PERSON(Christian Ice) \
314                 PERSON(Clinton "Kaziganthe" Freeman) \
315                 PERSON(Dan "Digger" Korostelev) \
316                 PERSON(Dan "Wazat" Hale) \
317                 PERSON(Diomedes) \
318                 PERSON(Dokujisan) \
319                 PERSON(Donkey) \
320                 PERSON(dstrek) \
321                 PERSON(Dustin Geeraert) \
322                 PERSON(Edgenetwork) \
323                 PERSON(Edward "Ed" Holness) \
324                 PERSON(Eric "Munyul Verminard" Sambach) \
325                 PERSON(Erik "Ablu" Schilling) \
326                 PERSON(Fabien "H. Reaper" Tschirhart) \
327                 PERSON(Florian Paul "lda17h" Schmidt) \
328                 PERSON(FrikaC) \
329                 PERSON(Garth "Zombie" Hendy) \
330                 PERSON(GATTS) \
331                 PERSON(Gerd "Elysis" Raudenbusch) \
332                 PERSON(Gottfried "Toddd" Hofmann) \
333                 PERSON(Henning "Tymo" Janssen) \
334                 PERSON(Innovati) \
335                 PERSON(JH0nny) \
336                 PERSON(Jitspoe) \
337                 PERSON(Jody Gallagher) \
338                 PERSON(Jope "Sless" Withers) \
339                 PERSON(Jubilant) \
340                 PERSON(Juergen "LowDragon" Timm) \
341                 PERSON(KadaverJack) \
342                 PERSON(Kevin "Tyrann" Shanahan) \
343                 PERSON(Kristian "morfar" Johansson) \
344                 PERSON(Kurt Dereli) \
345                 PERSON(lcatlnx) \
346                 PERSON(Lee David Ash) \
347                 PERSON(Lee Vermeulen) \
348                 PERSON(leileilol) \
349                 PERSON(Lyberta) \
350                 PERSON(magorian) \
351                 PERSON(Marius "GreEn`mArine" Shekow) \
352                 PERSON(Marko "Urre" Permanto) \
353                 PERSON(Mathieu "Elric" Olivier) \
354                 PERSON(Mattrew "Tronyn" Rye) \
355                 PERSON(MauveBib) \
356                 PERSON(Mephisto) \
357                 PERSON(michaelb) \
358                 PERSON(Michael "Tenshihan" Quinn) \
359                 PERSON(Mepper) \
360                 PERSON(Munyul) \
361                 PERSON(Netzwerg) \
362                 PERSON(NoelCower) \
363                 PERSON(Parapraxis) \
364                 PERSON(parasti) \
365                 PERSON(Paul "Strahlemann" Evers) \
366                 PERSON(Paul Scott) \
367                 PERSON(Petithomme) \
368                 PERSON(PlasmaSheep) \
369                 PERSON(Przemysław "atheros" Grzywacz) \
370                 PERSON(Q1 Retexturing Project) \
371                 PERSON(Qantourisc) \
372                 PERSON(Oleh "BlaXpirit" Prypin) \
373                 PERSON(Rick "Rat" Kelley) \
374                 PERSON(Robert "ai" Kuroto) \
375                 PERSON(Ronan) \
376                 PERSON(Sajt) \
377                 PERSON(Samual "Ares" Lenks) \
378                 PERSON(Saulo "mand1nga" Gil) \
379                 PERSON(Shaggy) \
380                 PERSON(Shank) \
381                 PERSON(s1lence) \
382                 PERSON(Simon O’Callaghan) \
383                 PERSON(Soelen) \
384                 PERSON(SomeGuy) \
385                 PERSON(SoulKeeper_p) \
386                 PERSON(Spike) \
387                 PERSON(Spirit) \
388                 PERSON(Stephan "esteel" Stahl) \
389                 PERSON(Steve Vermeulen) \
390                 PERSON(Supajoe) \
391                 PERSON(Sydes) \
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                 PERSON(... and a goat) \
402                 /**/
403
404 int credits_get()
405 {
406         int n = buf_create();
407         #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
408         #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
409         #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
410         #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
411         #define CREDITS_NL() bufstr_add(n, "", 0);
412     CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
413         #undef CREDITS_TITLE
414         #undef CREDITS_FUNCTION
415         #undef CREDITS_PERSON
416         #undef _CREDITS_PERSON
417         #undef CREDITS_NL
418         return n;
419 }
420
421 #undef CREDITS
422
423 entity makeXonoticCreditsList()
424 {
425         entity me;
426         me = NEW(XonoticCreditsList);
427         me.configureXonoticCreditsList(me);
428         return me;
429 }
430 void XonoticCreditsList_configureXonoticCreditsList(entity me)
431 {
432         me.configureXonoticListBox(me);
433     me.bufferIndex = credits_get();
434         me.nItems = buf_getsize(me.bufferIndex);
435 }
436 void XonoticCreditsList_destroy(entity me)
437 {
438         buf_del(me.bufferIndex);
439 }
440 void XonoticCreditsList_draw(entity me)
441 {
442         if(me.scrolling)
443         {
444                 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
445                 me.scrollPosTarget = me.scrollPos;
446         }
447         SUPER(XonoticCreditsList).draw(me);
448 }
449 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
450 {
451         SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
452
453         me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
454         me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
455         me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
456 }
457 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
458 {
459         string s;
460         float theAlpha;
461         vector theColor;
462
463         s = bufstr_get(me.bufferIndex, i);
464
465         if(substring(s, 0, 2) == "**")
466         {
467                 s = substring(s, 2, strlen(s) - 2);
468                 theColor = SKINCOLOR_CREDITS_TITLE;
469                 theAlpha = SKINALPHA_CREDITS_TITLE;
470         }
471         else if(substring(s, 0, 1) == "*")
472         {
473                 s = substring(s, 1, strlen(s) - 1);
474                 theColor = SKINCOLOR_CREDITS_FUNCTION;
475                 theAlpha = SKINALPHA_CREDITS_FUNCTION;
476         }
477         else
478         {
479                 theColor = SKINCOLOR_CREDITS_PERSON;
480                 theAlpha = SKINALPHA_CREDITS_PERSON;
481         }
482
483         draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
484 }
485
486 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
487 {
488         me.scrolling = 0;
489         return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);
490 }