7 me.configureXonoticColorButton(me, theGroup, theColor, theValue);
15 case 1: theValue = 10;
break;
16 case 2: theValue = 4;
break;
17 case 3: theValue = 1;
break;
18 case 4: theValue = 14;
break;
19 case 5: theValue = 12;
break;
20 case 6: theValue = 7;
break;
21 case 7: theValue = 3;
break;
22 case 8: theValue = 2;
break;
23 case 9: theValue = 6;
break;
24 case 10: theValue = 5;
break;
25 case 11: theValue = 13;
break;
26 case 12: theValue = 11;
break;
27 case 13: theValue = 8;
break;
28 case 14: theValue = 9;
break;
33 me.controlledCvar =
"_cl_color";
34 me.cvarValueFloat = theValue;
35 me.cvarPart = theColor;
37 me.configureRadioButton(me,
string_null, me.fontSize, me.image, theGroup, 0);
49 if (!me.controlledCvar)
56 me.checked = (
cvar(me.controlledCvar) & 240) == me.cvarValueFloat * 16;
58 me.checked = (
cvar(me.controlledCvar) & 15) == me.cvarValueFloat;
62 if (!me.controlledCvar)
68 cvar_set(me.controlledCvar,
ftos((
cvar(me.controlledCvar) & 15) + me.cvarValueFloat * 16));
70 cvar_set(me.controlledCvar,
ftos((
cvar(me.controlledCvar) & 240) + me.cvarValueFloat));
#define colormapPaletteColor(c, isPants)