]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/credits.qc
Merge branch 'amade/small-fixes' into 'master'
[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(Lea "TheAudioMonkey" Edwards) \
98                 PERSON([master]mind) \
99                 PERSON(Merlijn Hofstra) \
100                 PERSON(Mick Rippon) \
101                 PERSON(Nick "bitbomb" Lucca) \
102                 PERSON(remaxim) \
103                 PERSON(Saulo "mand1nga" Gil) \
104                 PERSON({SC0RP} - Ian "ID" Dorrell) \
105                 PERSON(Stephan) \
106                 PERSON(unfa) \
107         NL() \
108         FUNCTION(_("Game Code")) \
109                 PERSON(Samual "Ares" Lenks) \
110                 PERSON(Rudolf "divVerent" Polzer) \
111                 PERSON(Jakob "tZork" Markström Gröhn) \
112                 PERSON(Rasmus "FruitieX" Eskola) \
113                 PERSON(TimePath) \
114                 PERSON(Zac "Mario" Jardine) \
115         NL() \
116         FUNCTION(_("Marketing / PR")) \
117                 PERSON(Tyler "-z-" Mulligan) \
118                 PERSON(Ruszkai "CuBe0wL" Ákos) \
119                 PERSON(Samual "Ares" Lenks) \
120                 PERSON(Saulo "mand1nga" Gil) \
121         NL() \
122         FUNCTION(_("Legal")) \
123                 PERSON(Rudolf "divVerent" Polzer) \
124                 PERSON(Merlijn Hofstra) \
125         NL() \
126         NL() \
127         TITLE(_("Game Engine")) \
128                 FUNCTION("DarkPlaces") \
129                         PERSON(Forest "LordHavoc" Hale) \
130                 NL() \
131                 FUNCTION(_("Engine Additions")) \
132                         PERSON(Rudolf "divVerent" Polzer) \
133                         PERSON(Samual "Ares" Lenks) \
134                 NL() \
135         NL() \
136         TITLE(_("Compiler")) \
137                 FUNCTION("GMQCC") \
138                         PERSON(Wolfgang "Blub\0" Bumiller) \
139                         PERSON(Dale "graphitemaster" Weiler) \
140                 NL() \
141         NL() \
142         TITLE(_("Other Active Contributors")) \
143                 PERSON(Erik "Ablu" Schilling) \
144                 PERSON(Mircea "Taoki" Kitsune) \
145                 PERSON(Penguinum) \
146                 PERSON(Jeff) \
147         NL() \
148         NL() \
149         TITLE(_("Translators")) \
150                 NL() \
151                 FUNCTION(_("Asturian")) \
152                         PERSON(Llumex03) \
153                         PERSON(Tornes "Tornes.Llume" Ḷḷume) \
154                         PERSON(Ximielga) \
155                 NL() \
156                 FUNCTION(_("Belarusian")) \
157                         PERSON(Mihail "meequz" Varantsou) \
158                 NL() \
159                 FUNCTION(_("Bulgarian")) \
160                         PERSON(Alexander "alex4o" Bonin) \
161                         PERSON(ifohancroft) \
162                         PERSON(lokster) \
163                         PERSON(set_killer) \
164                         PERSON(ubone) \
165                 NL() \
166                 FUNCTION(_("Chinese (China)")) \
167                         PERSON(Antonidas) \
168                         PERSON(Armcoon) \
169                         PERSON(kalawore) \
170                         PERSON(sapphireliu) \
171                 NL() \
172                 FUNCTION(_("Chinese (Taiwan)")) \
173                         PERSON(Alisha) \
174                         PERSON(Armcoon) \
175                         PERSON(Jeff "s8321414" Huang) \
176                 NL() \
177                 FUNCTION(_("Cornish")) \
178                         PERSON(Nicky "nrowe" Rowe) \
179                 NL() \
180                 FUNCTION(_("Czech")) \
181                         PERSON(shogun assassin/woky) \
182                         PERSON(Superovoce) \
183                         PERSON(Tomáš "CZHeron" Volavka) \
184                 NL() \
185                 FUNCTION(_("Dutch")) \
186                         PERSON(Alexander "freefang" van Dam) \
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(_("Italian")) \
231                         PERSON(Antonio "terencehill" Piu) \
232                         PERSON(Felice "MaidenBeast" Sallustio) \
233                         PERSON(stdi) \
234                         PERSON(XCostaX) \
235                 NL() \
236                 FUNCTION(_("Kazakh")) \
237                         PERSON("Артем "bystrov.arterm" Быстров") \
238                 NL() \
239                 FUNCTION(_("Korean")) \
240                         PERSON(Jisoo "s6e9x" Lim) \
241                         PERSON(Kim "coughingmouse" Lee) \
242                 NL() \
243                 FUNCTION(_("Polish")) \
244                         PERSON(4m) \
245                         PERSON(Alex "tiprogrammierer.alex" Progger) \
246                         PERSON(Amadeusz "amade/proraide" Sławiński) \
247                         PERSON(Artur "artur9010" Motyka) \
248                         PERSON(Jakub "KubeQ11" Pędziszewski) \
249                 NL() \
250                 FUNCTION(_("Portuguese")) \
251                         PERSON(Ivan Paulos "greylica" Tomé) \
252                         PERSON(Jean Trindade "Muleke_Trairao" Pereira) \
253                         PERSON(Ricardo Manuel "Hellgardia" da Cruz Coelho da Silva) \
254                         PERSON(xXxCHAOTICxXx) \
255                 NL() \
256                 FUNCTION(_("Romanian")) \
257                         PERSON(Adrian-Ciprian "adrian.tinjala" Tînjală) \
258                         PERSON(BusterDBK) \
259                         PERSON(Mircea "Taoki" Kitsune) \
260                         PERSON(Sorin "unic_sorin" Botirla) \
261                         PERSON(Tudor "TropiKo" Ionel) \
262                 NL() \
263                 FUNCTION(_("Russian")) \
264                         PERSON(Alex "alextalker7" Talker) \
265                         PERSON(Alexandr "zrg") \
266                         PERSON(Andrei "adem4ik" Stepanov) \
267                         PERSON(Andrey "dekrY" P.) \
268                         PERSON(gravicappa) \
269                         PERSON(Hot Dog) \
270                         PERSON(Lord Canistra) \
271                         PERSON(Nikoli) \
272                         PERSON(Sergej "Clearness High" Lutsyk) \
273                 NL() \
274                 FUNCTION(_("Serbian")) \
275                         PERSON_("Саша \"salepetronije\" Петровић") \
276                         PERSON(Pendulla) \
277                         PERSON(Rafael "Ristovski") \
278                 NL() \
279                 FUNCTION(_("Spanish")) \
280                         PERSON_("0000simon") \
281                         PERSON(Alan "aagp" Garcia) \
282                         PERSON(Ari_tent) \
283                         PERSON(brunodeleo) \
284                         PERSON(Kammy) \
285                         PERSON(roader_gentoo) \
286                         PERSON(Rodrigo Mouton Laudin) \
287                         PERSON(SouL) \
288                 NL() \
289                 FUNCTION(_("Swedish")) \
290                         PERSON(Karl-Oskar "machine" Rikås) \
291                         PERSON(marcus256) \
292                 NL() \
293                 FUNCTION(_("Ukrainian")) \
294                         PERSON(Dmitro "Gamebot" Sokhin) \
295                         PERSON(Oleh "BlaXpirit" Prypin) \
296                         PERSON(Vasyl "Harmata" Melnyk) \
297                         PERSON(Yuriy "herrniemand" Ackermann) \
298                 NL() \
299         NL() \
300         TITLE(_("Past Contributors")) \
301                 PERSON(Akari) \
302                 PERSON(Alexander "naryl" Suhoverhov) \
303                 PERSON(Alexander "motorsep" Zubov) \
304                 PERSON(Amos "torus" Dudley) \
305                 PERSON(Andreas "Black" Kirsch) \
306                 PERSON(Attila "WW3" Houtkooper) \
307                 PERSON(BigMac) \
308                 PERSON(Braden "meoblast001" Walters) \
309                 PERSON(Brain Younds) \
310                 PERSON(Chris "amethyst7" Matz) \
311                 PERSON(Christian Ice) \
312                 PERSON(Clinton "Kaziganthe" Freeman) \
313                 PERSON(Dan "Digger" Korostelev) \
314                 PERSON(Dan "Wazat" Hale) \
315                 PERSON(Dokujisan) \
316                 PERSON(Donkey) \
317                 PERSON(dstrek) \
318                 PERSON(Dustin Geeraert) \
319                 PERSON(Edgenetwork) \
320                 PERSON(Edward "Ed" Holness) \
321                 PERSON(Eric "Munyul Verminard" Sambach) \
322                 PERSON(Fabien "H. Reaper" Tschirhart) \
323                 PERSON(Florian Paul "lda17h" Schmidt) \
324                 PERSON(FrikaC) \
325                 PERSON(Garth "Zombie" Hendy) \
326                 PERSON(Gerd "Elysis" Raudenbusch) \
327                 PERSON(Gottfried "Toddd" Hofmann) \
328                 PERSON(Henning "Tymo" Janssen) \
329                 PERSON(Innovati) \
330                 PERSON(Jitspoe) \
331                 PERSON(Jody Gallagher) \
332                 PERSON(Jope "Sless" Withers) \
333                 PERSON(Juergen "LowDragon" Timm) \
334                 PERSON(KadaverJack) \
335                 PERSON(Kevin "Tyrann" Shanahan) \
336                 PERSON(Kristian "morfar" Johansson) \
337                 PERSON(Kurt Dereli) \
338                 PERSON(lcatlnx) \
339                 PERSON(Lee David Ash) \
340                 PERSON(Lee Vermeulen) \
341                 PERSON(leileilol) \
342                 PERSON(magorian) \
343                 PERSON(Marius "GreEn`mArine" Shekow) \
344                 PERSON(Marko "Urre" Permanto) \
345                 PERSON(Mathieu "Elric" Olivier) \
346                 PERSON(Mattrew "Tronyn" Rye) \
347                 PERSON(MauveBib) \
348                 PERSON(Mephisto) \
349                 PERSON(michaelb) \
350                 PERSON(Michael "Tenshihan" Quinn) \
351                 PERSON(Mepper) \
352                 PERSON(Munyul) \
353                 PERSON(Netzwerg) \
354                 PERSON(NoelCower) \
355                 PERSON(Parapraxis) \
356                 PERSON(parasti) \
357                 PERSON(Paul "Strahlemann" Evers) \
358                 PERSON(Paul Scott) \
359                 PERSON(Petithomme) \
360                 PERSON(PlasmaSheep) \
361                 PERSON(Przemysław "atheros" Grzywacz) \
362                 PERSON(Q1 Retexturing Project) \
363                 PERSON(Qantourisc) \
364                 PERSON(Oleh "BlaXpirit" Prypin) \
365                 PERSON(Rick "Rat" Kelley) \
366                 PERSON(Robert "ai" Kuroto) \
367                 PERSON(Ronan) \
368                 PERSON(Sajt) \
369                 PERSON(Saulo "mand1nga" Gil) \
370                 PERSON(Shaggy) \
371                 PERSON(Shank) \
372                 PERSON(Simon O’Callaghan) \
373                 PERSON(SomeGuy) \
374                 PERSON(SoulKeeper_p) \
375                 PERSON(Spike) \
376                 PERSON(Spirit) \
377                 PERSON(Stephan "esteel" Stahl) \
378                 PERSON(Steve Vermeulen) \
379                 PERSON(Supajoe) \
380                 PERSON(Tei) \
381                 PERSON(The player with the unnecessarily long name) \
382                 PERSON(Tomaz) \
383                 PERSON(Ulrich Galbraith) \
384                 PERSON(Vortex) \
385                 PERSON(William Libert) \
386                 PERSON(William "Willis" Weilep) \
387                 PERSON(Yves "EviLair" Allaire) \
388                 PERSON(Zenex) \
389                 /**/
390
391 int credits_get()
392 {
393         int n = buf_create();
394         #define CREDITS_TITLE(t) bufstr_add(n, strcat("**", t), 0);
395         #define CREDITS_FUNCTION(f) bufstr_add(n, strcat("*", f), 0);
396         #define CREDITS_PERSON(p) bufstr_add(n, p, 0);
397         #define _CREDITS_PERSON(p) CREDITS_PERSON(#p)
398         #define CREDITS_NL() bufstr_add(n, "", 0);
399     CREDITS(CREDITS_TITLE, CREDITS_FUNCTION, _CREDITS_PERSON, CREDITS_PERSON, CREDITS_NL)
400         #undef CREDITS_TITLE
401         #undef CREDITS_FUNCTION
402         #undef CREDITS_PERSON
403         #undef _CREDITS_PERSON
404         #undef CREDITS_NL
405         return n;
406 }
407
408 #undef CREDITS
409
410 entity makeXonoticCreditsList()
411 {
412         entity me;
413         me = NEW(XonoticCreditsList);
414         me.configureXonoticCreditsList(me);
415         return me;
416 }
417 void XonoticCreditsList_configureXonoticCreditsList(entity me)
418 {
419         me.configureXonoticListBox(me);
420     me.bufferIndex = credits_get();
421         me.nItems = buf_getsize(me.bufferIndex);
422 }
423 void XonoticCreditsList_destroy(entity me)
424 {
425         buf_del(me.bufferIndex);
426 }
427 void XonoticCreditsList_draw(entity me)
428 {
429         if(me.scrolling)
430         {
431                 me.scrollPos = bound(0, (time - me.scrolling) * me.itemHeight, me.nItems * me.itemHeight - 1);
432                 me.scrollPosTarget = me.scrollPos;
433         }
434         SUPER(XonoticCreditsList).draw(me);
435 }
436 void XonoticCreditsList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
437 {
438         SUPER(XonoticCreditsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
439
440         me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
441         me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
442         me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
443 }
444 void XonoticCreditsList_drawListBoxItem(entity me, int i, vector absSize, bool isSelected, bool isFocused)
445 {
446         string s;
447         float theAlpha;
448         vector theColor;
449
450         s = bufstr_get(me.bufferIndex, i);
451
452         if(substring(s, 0, 2) == "**")
453         {
454                 s = substring(s, 2, strlen(s) - 2);
455                 theColor = SKINCOLOR_CREDITS_TITLE;
456                 theAlpha = SKINALPHA_CREDITS_TITLE;
457         }
458         else if(substring(s, 0, 1) == "*")
459         {
460                 s = substring(s, 1, strlen(s) - 1);
461                 theColor = SKINCOLOR_CREDITS_FUNCTION;
462                 theAlpha = SKINALPHA_CREDITS_FUNCTION;
463         }
464         else
465         {
466                 theColor = SKINCOLOR_CREDITS_PERSON;
467                 theAlpha = SKINALPHA_CREDITS_PERSON;
468         }
469
470         draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, theColor, theAlpha, 0);
471 }
472
473 float XonoticCreditsList_keyDown(entity me, float key, float ascii, float shift)
474 {
475         me.scrolling = 0;
476         return SUPER(XonoticCreditsList).keyDown(me, key, ascii, shift);
477 }