Xonotic
dialog_multiplayer_media_demo_startconfirm.qc File Reference
+ Include dependency graph for dialog_multiplayer_media_demo_startconfirm.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Handle_StartDemo_Click (entity unused, entity me)
 
void XonoticDemoStartConfirmDialog_fill (entity me)
 

Function Documentation

◆ Handle_StartDemo_Click()

void Handle_StartDemo_Click ( entity  unused,
entity  me 
)

Definition at line 7 of file dialog_multiplayer_media_demo_startconfirm.qc.

References demolist.

7 { demolist.startDemo(demolist); }
entity demolist
Definition: demolist.qh:30

◆ XonoticDemoStartConfirmDialog_fill()

void XonoticDemoStartConfirmDialog_fill ( entity  me)

Definition at line 8 of file dialog_multiplayer_media_demo_startconfirm.qc.

References entity(), and makeXonoticTextLabel().

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 }
void Handle_StartDemo_Click(entity unused, entity me)
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity demolist
Definition: demolist.qh:30
+ Here is the call graph for this function: