11 else if(isInverted < -1)
16 else if(isInverted == 1)
37 me.configureXonoticCheckBox(me, theYesValue, theNoValue, theCvar, theText, theTooltip);
47 me.yesValue = theYesValue;
48 me.noValue = theNoValue;
50 me.controlledCvar = (theCvar) ? theCvar :
string_null;
53 me.configureCheckBox(me, theText, me.fontSize, me.image);
62 me.linkedCheckBox.loadCvars(me.linkedCheckBox);
69 if (!me.controlledCvar)
72 m = (me.yesValue + me.noValue) * 0.5;
73 d = (
cvar(me.controlledCvar) - m) / (me.yesValue - m);
78 if (!me.controlledCvar)
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
ERASEABLE string ftos_mindecimals(float number)
converts a number to a string with the minimum number of decimals
void XonoticCheckBox_saveCvars(entity me)
void XonoticCheckBox_setChecked(entity me, float val)
entity makeXonoticCheckBoxEx_T(float theYesValue, float theNoValue, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
void XonoticCheckBox_configureXonoticCheckBox(entity me, float theYesValue, float theNoValue, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
void XonoticCheckBox_loadCvars(entity me)