Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_uid2name.qc File Reference
#include "dialog_uid2name.qh"
#include "textlabel.qh"
#include "commandbutton.qh"
Include dependency graph for dialog_uid2name.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void XonoticUid2NameDialog_fill (entity me)

Function Documentation

◆ XonoticUid2NameDialog_fill()

void XonoticUid2NameDialog_fill ( entity me)

Definition at line 6 of file dialog_uid2name.qc.

7{
8 entity e;
9 me.TR(me);
10 me.TD(me, 1, 2, makeXonoticTextLabel(0.5, _("Allow player statistics to use your nickname?")));
11 me.TR(me);
12 me.TD(me, 1, 2, makeXonoticTextLabel(0.5, _("Answering \"No\" you will appear as \"Anonymous player\"")));
13 me.TR(me);
14 me.TR(me);
15 me.TD(me, 1, 1, e = makeXonoticCommandButton(_("Yes"), '0 0 0', "vyes; setreport cl_allow_uid2name 1", COMMANDBUTTON_CLOSE));
16 e.preferredFocusPriority = 1;
17 me.TD(me, 1, 1, e = makeXonoticCommandButton(_("No"), '0 0 0', "vno; setreport cl_allow_uid2name 0", COMMANDBUTTON_CLOSE));
18}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags)
#define COMMANDBUTTON_CLOSE
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3

References COMMANDBUTTON_CLOSE, entity(), makeXonoticCommandButton(), and makeXonoticTextLabel().