7 me.configureXonoticSlider(me, theValueMin, theValueMax, theValueStep, theCvar, theTooltip);
17 vp = theValueStep * 10;
18 while(
fabs(vp) <
fabs(theValueMax - theValueMin) / 40)
21 me.configureSliderVisuals(me, me.fontSize, me.align, me.valueSpace, me.image);
23 me.controlledCvar = (theCvar) ? theCvar :
string_null;
27 me.configureSliderValues(me, theValueMin, theValueMin-theValueStep, theValueMax, theValueStep, theValueStep, vp);
29 me.configureSliderValues(me, theValueMin, theValueMin, theValueMax, theValueStep, theValueStep, vp);
51 if (!me.controlledCvar)
54 me.setValue_noAnim(me,
cvar(me.controlledCvar));
58 if (!me.controlledCvar)
void XonoticSlider_saveCvars(entity me)
void XonoticSlider_configureXonoticSlider(entity me, float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
ERASEABLE string ftos_mindecimals(float number)
converts a number to a string with the minimum number of decimals
void XonoticSlider_loadCvars(entity me)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
void XonoticSlider_setValue(entity me, float val)
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
void XonoticSlider_setValue_noAnim(entity me, float val)