void configureNexuizCheckBoxNexuizCheckBox(entity me, float isInverted, string theCvar, string theText) { me.inverted = isInverted; me.checked = 0; if(theCvar) { me.cvarName = theCvar; me.loadCvars(me); } me.configureCheckBox(me, theText, me.fontSize, me.image); }
void XonoticCheckBoxString_configureXonoticCheckBoxString(entity me, string theYesValue, string theNoValue, string theCvar, string theText) { me.yesString = theYesValue; me.noString = theNoValue; me.checked = 0; if(theCvar) { me.cvarName = theCvar; me.tooltip = getZonedTooltipForIdentifier(theCvar); me.loadCvars(me); } me.configureCheckBox(me, theText, me.fontSize, me.image); }
void XonoticSliderCheckBox_configureXonoticSliderCheckBox(entity me, float theOffValue, float isInverted, entity theControlledSlider, string theText) { me.offValue = theOffValue; me.inverted = isInverted; me.checked = (theControlledSlider.value == theOffValue); if(theControlledSlider.value == median(theControlledSlider.valueMin, theControlledSlider.value, theControlledSlider.valueMax)) me.savedValue = theControlledSlider.value; else me.savedValue = theControlledSlider.valueMin; me.controlledSlider = theControlledSlider; me.configureCheckBox(me, theText, me.fontSize, me.image); me.tooltip = theControlledSlider.tooltip; }