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 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 configureNexuizGametypeButtonNexuizGametypeButton(entity me, float theGroup, string theCvar, string theText) { if(theCvar) { me.cvarName = theCvar; me.tooltip = getZonedTooltipForIdentifier(theCvar); me.loadCvars(me); } me.configureRadioButton(me, theText, me.fontSize, me.image, theGroup, 0); me.align = 0.5; me.onClick = GameTypeButton_Click; me.onClickEntity = NULL; }
void configureNexuizButtonNexuizButton(entity me, string theText, vector theColor) { if(theColor == '0 0 0') { me.configureButton(me, theText, me.fontSize, me.image); } else { me.configureButton(me, theText, me.fontSize, me.grayImage); me.color = theColor; me.colorC = theColor; me.colorF = theColor; } me.tooltip = getZonedTooltipForIdentifier(strcat(currentDialog.classname, "/", me.text)); }
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); } }
void NexuizDialog_configureDialog(entity me) { currentDialog = me; SUPER(NexuizDialog).configureDialog(me); me.tooltip = getZonedTooltipForIdentifier(me.classname); }