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