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

Go to the source code of this file.

Functions

entity makeXonoticMutatorNIXTab ()
void MutatorNIX_CheckBox_saveCvars (entity me)
void XonoticMutatorNIXTab_fill (entity me)

Function Documentation

◆ makeXonoticMutatorNIXTab()

entity makeXonoticMutatorNIXTab ( )

Definition at line 6 of file ui_nix.qc.

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

References entity(), and NEW.

◆ MutatorNIX_CheckBox_saveCvars()

void MutatorNIX_CheckBox_saveCvars ( entity me)

Definition at line 13 of file ui_nix.qc.

14{
16 if (cvar("g_nix"))
17 {
18 if (cvar_string("g_weaponarena") != "0")
19 cvar_set("g_weaponarena", "0"); // weaponarena can't be enabled if NIX is, or at least we pretend it can't
20 if (cvar("g_melee_only"))
21 cvar_set("g_melee_only", "0");
22 }
23}
void cvar_set(string name, string value)
float cvar(string name)
const string cvar_string(string name)
void XonoticCheckBox_saveCvars(entity me)
Definition checkbox.qc:73

References cvar(), cvar_set(), cvar_string(), entity(), and XonoticCheckBox_saveCvars().

Referenced by XonoticMutatorNIXTab_fill().

◆ XonoticMutatorNIXTab_fill()

void XonoticMutatorNIXTab_fill ( entity me)

Definition at line 25 of file ui_nix.qc.

26{
29
30 me.TR(me);
31 me.TD(me, 1, 4, e = makeXonoticCheckBox_T(0, "g_nix_with_blaster", _("With Blaster"),
32 _("Always carry the Blaster as an additional weapon in NIX")));
33 me.TR(me);
34 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Allow maps to spawn:")));
35 me.TR(me);
36 me.TDempty(me, 0.2);
37 me.TD(me, 1, (4 - 0.2) * 0.6, e = makeXonoticCheckBox(0, "g_nix_with_healtharmor", _("Health and armor")));
38 me.TD(me, 1, (4 - 0.2) * 0.4, e = makeXonoticCheckBox(0, "g_nix_with_powerups", _("Powerups")));
39}
entity Mutators_main_checkbox(entity me)
Definition mutatortab.qc:25
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
void MutatorNIX_CheckBox_saveCvars(entity me)
Definition ui_nix.qc:13
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
Definition checkbox.qc:3
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition checkbox.qc:28

References entity(), makeXonoticCheckBox(), makeXonoticCheckBox_T(), makeXonoticTextLabel(), MutatorNIX_CheckBox_saveCvars(), and Mutators_main_checkbox().