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