Xonotic
dialog_singleplayer_winner.qc
Go to the documentation of this file.
1
#include "
dialog_singleplayer_winner.qh
"
2
3
#include "
image.qh
"
4
#include "
button.qh
"
5
6
void
XonoticWinnerDialog_fill
(
entity
me)
7
{
8
entity
e;
9
10
me.TR(me);
11
me.TD(me, me.rows - 2, me.columns, e =
makeXonoticImage
(
"/gfx/winner"
, -1));
12
13
me.gotoRC(me, me.rows - 1, 0);
14
me.TD(me, 1, me.columns, e =
makeXonoticButton
(_(
"OK"
),
'0 0 0'
));
15
e.onClick =
Dialog_Close
;
16
e.onClickEntity = me;
17
}
18
void
XonoticWinnerDialog_focusEnter
(
entity
me)
19
{
20
m_play_click_sound
(
MENU_SOUND_WINNER
);
21
}
XonoticWinnerDialog_focusEnter
void XonoticWinnerDialog_focusEnter(entity me)
Definition:
dialog_singleplayer_winner.qc:18
makeXonoticButton
entity makeXonoticButton(string theText, vector theColor)
Definition:
button.qc:10
MENU_SOUND_WINNER
const string MENU_SOUND_WINNER
Definition:
menu.qh:56
Dialog_Close
void Dialog_Close(entity button, entity me)
Definition:
dialog.qc:7
image.qh
entity
entity() spawn
m_play_click_sound
void m_play_click_sound(string soundfile)
Definition:
menu.qc:997
XonoticWinnerDialog_fill
void XonoticWinnerDialog_fill(entity me)
Definition:
dialog_singleplayer_winner.qc:6
button.qh
dialog_singleplayer_winner.qh
makeXonoticImage
entity makeXonoticImage(string theImage, float theAspect)
Definition:
image.qc:3
menu
xonotic
dialog_singleplayer_winner.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13