me.configureXonoticSlider(me, theValueMin, theValueMax, theValueStep, theCvar);
return me;
}
-void configureXonoticSliderXonoticSlider(entity me, float theValueMin, float theValueMax, float theValueStep, string theCvar)
+void XonoticSlider_configureXonoticSlider(entity me, float theValueMin, float theValueMax, float theValueStep, string theCvar)
{
float v, vk, vp;
v = theValueMin;
me.tooltip = getZonedTooltipForIdentifier(theCvar);
}
}
-void setValueXonoticSlider(entity me, float val)
+void XonoticSlider_setValue(entity me, float val)
{
if(val != me.value)
{
- makeHostedEasing(me, setValueSlider, easingQuadInOut, 1, me.value, val);
- me.value = val;
+ SUPER(XonoticSlider).setValue( me, val );
me.saveCvars(me);
}
}
-void loadCvarsXonoticSlider(entity me)
+void XonoticSlider_loadCvars(entity me)
{
if not(me.cvarName)
return;
- me.value = cvar(me.cvarName);
+ me.setValue( me, cvar(me.cvarName) );
}
-void saveCvarsXonoticSlider(entity me)
+void XonoticSlider_saveCvars(entity me)
{
if not(me.cvarName)
return;