1 #ifndef DIALOG_SINGLEPLAYER_WINNER_H
2 #define DIALOG_SINGLEPLAYER_WINNER_H
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)
16 void XonoticWinnerDialog_fill(entity me)
21 me.TD(me, me.rows - 2, me.columns, e = makeXonoticImage("/gfx/winner", -1));
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;
28 void XonoticWinnerDialog_focusEnter(entity me)
30 m_play_click_sound(MENU_SOUND_WINNER);