Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
ui_bloodloss.qc
Go to the documentation of this file.
1#include "ui_bloodloss.qh"
2
6
8{
10 me.configureDialog(me);
11 return me;
12}
13
15{
16 entity e;
17 entity s = makeXonoticSlider(10, 50, 1, me.message);
18
19 me.TR(me);
20 me.TDempty(me, 1.75);
21 me.TD(me, 1, 2.25, e = makeXonoticSliderCheckBox(0, 1, s, _("Enable")));
23 me.TR(me);
24 me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Bleed below health:")));
25 me.TD(me, 1, 2.5, s);
26}
27
29{
30 return _("Amount of health below which players start bleeding out (health rots and they can't jump).");
31}
33{
34 bool can_enable = true;
35 if (is_already_enabled)
36 return can_enable && cvar(me.message);
37 return can_enable;
38}
entity makeXonoticSliderCheckBox(float theOffValue, float isInverted, entity theControlledSlider, string theText)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float cvar(string name)
void Mutators_add_SliderCheckBox(entity me, entity e)
Definition mutatortab.qc:60
#define NEW(cname,...)
Definition oo.qh:120
#define METHOD(cname, name, prototype)
Definition oo.qh:274
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
void XonoticMutatorBloodLossTab_fill(entity me)
entity makeXonoticMutatorBloodLossTab()
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition slider.qc:9