]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_disconnect.qc
Merge branch 't0uYK8Ne/set_slick_friction' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_disconnect.qc
1 #include "dialog_disconnect.qh"
2
3 #include "textlabel.qh"
4 #include "button.qh"
5
6 void Disconnect_Click(entity btn, entity me)
7 {
8         localcmd("disconnect");
9         Dialog_Close(btn, me);
10 }
11
12 void XonoticDisconnectDialog_fill(entity me)
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 }