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);
41 me.onChange(me, me.onChangeEntity);
47 me.configureSliderVisuals(me, me.fontSize, me.align, me.valueSpace, me.image);
51 if (!me.controlledCvar)
58 if (!me.controlledCvar)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
ERASEABLE string ftos_mindecimals(float number)
Converts a number to a string with the minimum number of decimals It assumes that an extreme accuracy...
void XonoticSlider_setValue(entity me, float val, bool allowAnim)
void XonoticSlider_setValueSpace(entity me, float val)
void XonoticSlider_saveCvars(entity me)
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
void XonoticSlider_configureXonoticSlider(entity me, float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
void XonoticSlider_loadCvars(entity me)