me.configureSliderVisuals(me, me.fontSize, me.align, me.valueSpace, me.image);
- me.cvarName = (theCvar) ? theCvar : string_null;
+ me.controlledCvar = (theCvar) ? theCvar : string_null;
if(theCvar)
// Prevent flickering of the slider button by initialising the
// slider out of bounds to hide the button before loading the cvar
}
void XonoticSlider_loadCvars(entity me)
{
- if (!me.cvarName)
+ if (!me.controlledCvar)
return;
- me.setValue_noAnim(me, cvar(me.cvarName));
+ me.setValue_noAnim(me, cvar(me.controlledCvar));
}
void XonoticSlider_saveCvars(entity me)
{
- if (!me.cvarName)
+ if (!me.controlledCvar)
return;
- cvar_set(me.cvarName, ftos_mindecimals(me.value));
+ cvar_set(me.controlledCvar, ftos_mindecimals(me.value));
- CheckSendCvars(me, me.cvarName);
+ CheckSendCvars(me, me.controlledCvar);
}