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);
67 if (!me.controlledCvar)
70 float m = (me.yesValue + me.noValue) * 0.5;
71 float d = (
cvar(me.controlledCvar) - m) / (me.yesValue - m);
76 if (!me.controlledCvar)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
ERASEABLE string ftos_mindecimals(float number)
Converts a number to a string with the minimum number of decimals It assumes that an extreme accuracy...
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBoxEx_T(float theYesValue, float theNoValue, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
void XonoticCheckBox_loadCvars(entity me)
void XonoticCheckBox_configureXonoticCheckBox(entity me, float theYesValue, float theNoValue, string theCvar, string theText, string theTooltip)
void XonoticCheckBox_saveCvars(entity me)
void XonoticCheckBox_setChecked(entity me, bool val)
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)