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