]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_singleplayer_winner.qc
Merge remote-tracking branch 'origin/divVerent/crypto-fixes'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_singleplayer_winner.qc
1 #ifdef INTERFACE
2 CLASS(XonoticWinnerDialog) EXTENDS(XonoticDialog)
3         METHOD(XonoticWinnerDialog, fill, void(entity))
4         METHOD(XonoticWinnerDialog, focusEnter, void(entity))
5         ATTRIB(XonoticWinnerDialog, title, string, _("Winner"))
6         ATTRIB(XonoticWinnerDialog, color, vector, SKINCOLOR_DIALOG_SINGLEPLAYER)
7         ATTRIB(XonoticWinnerDialog, intendedWidth, float, 0.32)
8         ATTRIB(XonoticWinnerDialog, rows, float, 12)
9         ATTRIB(XonoticWinnerDialog, columns, float, 3)
10 ENDCLASS(XonoticWinnerDialog)
11 #endif
12
13 #ifdef IMPLEMENTATION
14 void XonoticWinnerDialog_fill(entity me)
15 {
16         entity e;
17
18         me.TR(me);
19                 me.TD(me, me.rows - 2, me.columns, e = makeXonoticImage("/gfx/winner", -1));
20
21         me.gotoRC(me, me.rows - 1, 0);
22                 me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
23                         e.onClick = Dialog_Close;
24                         e.onClickEntity = me;
25 }
26 void XonoticWinnerDialog_focusEnter(entity me)
27 {
28         m_play_click_sound(MENU_SOUND_WINNER);
29 }
30 #endif