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

Go to the source code of this file.

Functions

entity makeXonoticMutatorNewToysTab ()
void XonoticMutatorNewToysTab_fill (entity me)

Function Documentation

◆ makeXonoticMutatorNewToysTab()

entity makeXonoticMutatorNewToysTab ( )

Definition at line 5 of file ui_new_toys.qc.

6{
8 me.configureDialog(me);
9 return me;
10}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:120

References entity(), and NEW.

◆ XonoticMutatorNewToysTab_fill()

void XonoticMutatorNewToysTab_fill ( entity me)

Definition at line 12 of file ui_new_toys.qc.

13{
14 entity e;
15
17
18 me.TR(me);
19 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Replacement:")));
20 me.TR(me);
21 const string nta_tooltip = _("Automatically replace some normal weapons of the map with their corresponding additional weapons");
22 me.TDempty(me, 0.2);
23 me.TD(me, 1, (4 - 0.2) / 3, e = makeXonoticRadioButton_T(1, "g_new_toys_autoreplace", "0", _("Never"), nta_tooltip));
24 me.TD(me, 1, (4 - 0.2) / 3, e = makeXonoticRadioButton_T(1, "g_new_toys_autoreplace", "1", _("Always"), nta_tooltip));
25 me.TD(me, 1, (4 - 0.2) / 3, e = makeXonoticRadioButton_T(1, "g_new_toys_autoreplace", "2", _("Randomly"), nta_tooltip));
26}
entity Mutators_main_checkbox(entity me)
Definition mutatortab.qc:25
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
entity makeXonoticRadioButton_T(float theGroup, string theCvar, string theValue, string theText, string theTooltip)
Definition radiobutton.qc:3

References entity(), makeXonoticRadioButton_T(), makeXonoticTextLabel(), and Mutators_main_checkbox().