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

Go to the source code of this file.

Functions

entity makeXonoticMutatorVampireTab ()
void XonoticMutatorVampireTab_fill (entity me)

Function Documentation

◆ makeXonoticMutatorVampireTab()

entity makeXonoticMutatorVampireTab ( )

Definition at line 7 of file ui_vampire.qc.

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

References entity(), and NEW.

◆ XonoticMutatorVampireTab_fill()

void XonoticMutatorVampireTab_fill ( entity me)

Definition at line 14 of file ui_vampire.qc.

15{
16 entity e;
17
19
20 me.TR(me);
21 me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Factor:")));
22 me.TD(me, 1, 2.5, e = makeXonoticSlider_T(0.05, 1, 0.05, "g_vampire_factor",
23 _("Fraction of the damage dealt to be stolen as health")));
24 e.formatString = _("%sx");
25 me.TR(me);
26 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "g_vampire_use_total_damage", _("Consider both health and armor")));
27}
entity Mutators_main_checkbox(entity me)
Definition mutatortab.qc:25
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition checkbox.qc:28
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
Definition slider.qc:3

References entity(), makeXonoticCheckBox(), makeXonoticSlider_T(), makeXonoticTextLabel(), and Mutators_main_checkbox().