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.cvarName = theCvar;
me.loadCvars(me);
- if(tooltipdb >= 0)
- me.tooltip = getZonedTooltipForIdentifier(theCvar);
+ me.tooltip = getZonedTooltipForIdentifier(theCvar);
}
}
-void setValueXonoticSlider(entity me, float val)
+void XonoticSlider_setValue(entity me, float val)
{
if(val != me.value)
{
me.saveCvars(me);
}
}
-void loadCvarsXonoticSlider(entity me)
+void XonoticSlider_loadCvars(entity me)
{
if not(me.cvarName)
return;
me.setValue( me, cvar(me.cvarName) );
}
-void saveCvarsXonoticSlider(entity me)
+void XonoticSlider_saveCvars(entity me)
{
if not(me.cvarName)
return;