]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_credits.qc
Optimize vehicle impact code by only calling vlen() if damage would be taken
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_credits.qc
1 #include "dialog_credits.qh"
2
3 #include "credits.qh"
4 #include "button.qh"
5 #include "../item/dialog.qh"
6
7 void XonoticCreditsDialog_fill(entity me)
8 {
9         entity e;
10         me.TR(me);
11                 me.TD(me, me.rows - 1, me.columns, me.creditsList = makeXonoticCreditsList());
12         me.gotoRC(me, me.rows - 1, 0);
13                 me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
14                         e.onClick = Dialog_Close;
15                         e.onClickEntity = me;
16 }
17 void XonoticCreditsDialog_focusEnter(entity me)
18 {
19         me.creditsList.scrolling = time + 1;
20 }