void NexuizTextSlider_configureNexuizTextSlider(entity me, string theCvar) { me.configureSliderVisuals(me, me.fontSize, me.align, me.valueSpace, me.image); if(theCvar) { me.cvarName = theCvar; me.tooltip = getZonedTooltipForIdentifier(theCvar); // don't load it yet } }
void configureNexuizSliderNexuizSlider(entity me, float theValueMin, float theValueMax, float theValueStep, string theCvar) { float v, vk, vp; v = theValueMin; vk = theValueStep; vp = theValueStep * 10; while(fabs(vp) < fabs(theValueMax - theValueMin) / 40) vp *= 10; me.configureSliderVisuals(me, me.fontSize, me.align, me.valueSpace, me.image); me.configureSliderValues(me, theValueMin, v, theValueMax, theValueStep, vk, vp); if(theCvar && tooltipdb >= 0) { me.cvarName = theCvar; me.tooltip = getZonedTooltipForIdentifier(theCvar); me.loadCvars(me); } }