Xonotic
dialog_disconnect.qc File Reference
#include "dialog_disconnect.qh"
#include "textlabel.qh"
#include "button.qh"
+ Include dependency graph for dialog_disconnect.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Disconnect_Click (entity btn, entity me)
 
void XonoticDisconnectDialog_fill (entity me)
 

Function Documentation

◆ Disconnect_Click()

void Disconnect_Click ( entity  btn,
entity  me 
)

Definition at line 6 of file dialog_disconnect.qc.

References Dialog_Close(), and localcmd.

7 {
8  localcmd("disconnect\n");
9  Dialog_Close(btn, me);
10 }
+ Here is the call graph for this function:

◆ XonoticDisconnectDialog_fill()

void XonoticDisconnectDialog_fill ( entity  me)

Definition at line 12 of file dialog_disconnect.qc.

References entity(), and makeXonoticTextLabel().

13 {
14  entity e;
15  me.TR(me);
16  me.TD(me, 1, 2, makeXonoticTextLabel(0.5, _("Are you sure to disconnect from server?")));
17  me.TR(me);
18  me.TR(me);
19  me.TD(me, 1, 1, e = makeXonoticButton_T(_("Yes"), '1 0 0', _("I would disconnect from server...")));
20  e.onClick = Disconnect_Click;
21  e.onClickEntity = me;
22  me.TD(me, 1, 1, e = makeXonoticButton_T(_("No"), '0 1 0', _("I would play more!")));
23  e.onClick = Dialog_Close;
24  e.onClickEntity = me;
25 }
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
void Disconnect_Click(entity btn, entity me)
+ Here is the call graph for this function: