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