1 #ifndef DIALOG_SINGLEPLAYER_WINNER_H
2 #define DIALOG_SINGLEPLAYER_WINNER_H
3 CLASS(XonoticWinnerDialog, XonoticDialog)
4 METHOD(XonoticWinnerDialog, fill, void(entity))
5 METHOD(XonoticWinnerDialog, focusEnter, void(entity))
6 ATTRIB(XonoticWinnerDialog, title, string, _("Winner"))
7 ATTRIB(XonoticWinnerDialog, color, vector, SKINCOLOR_DIALOG_SINGLEPLAYER)
8 ATTRIB(XonoticWinnerDialog, intendedWidth, float, 0.32)
9 ATTRIB(XonoticWinnerDialog, rows, float, 12)
10 ATTRIB(XonoticWinnerDialog, columns, float, 3)
11 ENDCLASS(XonoticWinnerDialog)
15 void XonoticWinnerDialog_fill(entity me)
20 me.TD(me, me.rows - 2, me.columns, e = makeXonoticImage("/gfx/winner", -1));
22 me.gotoRC(me, me.rows - 1, 0);
23 me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
24 e.onClick = Dialog_Close;
27 void XonoticWinnerDialog_focusEnter(entity me)
29 m_play_click_sound(MENU_SOUND_WINNER);