Xonotic
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
w
x
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
+
Enumerator
i
m
o
p
r
s
t
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerator
Macros
Pages
dialog_multiplayer_media_demo_startconfirm.qc
Go to the documentation of this file.
1
#include "
dialog_multiplayer_media_demo_startconfirm.qh
"
2
3
#include "
demolist.qh
"
4
#include "
textlabel.qh
"
5
#include "
button.qh
"
6
7
void
Handle_StartDemo_Click
(
entity
unused,
entity
me) {
demolist
.startDemo(
demolist
); }
8
void
XonoticDemoStartConfirmDialog_fill
(
entity
me)
9
{
10
entity
e;
11
12
me.TR(me);
13
me.TD(me, 1, 2, e =
makeXonoticTextLabel
(0.5, _(
"Playing a demo will disconnect you from the current match."
)));
14
me.TR(me);
15
me.TD(me, 1, 2, e =
makeXonoticTextLabel
(0.5, _(
"Do you really wish to disconnect now?"
)));
16
me.TR(me);
17
me.TR(me);
18
me.TD(me, 1, 1, e =
makeXonoticButton
(_(
"Yes"
),
'1 0 0'
));
19
e.onClick =
Handle_StartDemo_Click
;
20
e.onClickEntity =
demolist
;
21
me.TD(me, 1, 1, e =
makeXonoticButton
(_(
"No"
),
'0 1 0'
));
22
e.onClick =
Dialog_Close
;
23
e.onClickEntity = me;
24
}
Handle_StartDemo_Click
void Handle_StartDemo_Click(entity unused, entity me)
Definition:
dialog_multiplayer_media_demo_startconfirm.qc:7
makeXonoticButton
entity makeXonoticButton(string theText, vector theColor)
Definition:
button.qc:10
Dialog_Close
void Dialog_Close(entity button, entity me)
Definition:
dialog.qc:7
entity
entity() spawn
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition:
textlabel.qc:3
demolist.qh
textlabel.qh
button.qh
XonoticDemoStartConfirmDialog_fill
void XonoticDemoStartConfirmDialog_fill(entity me)
Definition:
dialog_multiplayer_media_demo_startconfirm.qc:8
dialog_multiplayer_media_demo_startconfirm.qh
demolist
entity demolist
Definition:
demolist.qh:30
menu
xonotic
dialog_multiplayer_media_demo_startconfirm.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13