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