9 me.configureXonoticColorpickerString(me, theCvar, theDefaultCvar);
15 me.configureImage(me, me.image);
16 me.controlledCvar = (theCvar) ? theCvar :
string_null;
22 if (!me.controlledCvar)
25 if(
substring(me.controlledCvar, -1, 1) ==
"_")
39 if (!me.controlledCvar)
42 if(
substring(me.controlledCvar, -1, 1) ==
"_")
55 this.mouseDrag(
this, pos);
64 margin = me.imagemargin;
65 if(coords.x >= margin.x)
66 if(coords.y >= margin.y)
67 if(coords.x <= 1 - margin.x)
68 if(coords.y <= 1 - margin.y)
70 me.prevcoords = coords;
80 me.mouseDrag(me, coords);
98 draw_Picture(me.imgOrigin + me.prevcoords - 0.5 * sz,
strcat(me.src,
"_selected"), sz,
'1 1 1', 1);
float XonoticColorpickerString_mouseDrag(entity me, vector coords)
void XonoticColorpickerString_configureXonoticColorpickerString(entity me, string theCvar, string theDefaultCvar)
void XonoticColorpickerString_draw(entity me)
#define METHOD(cname, name, prototype)
float XonoticColorpickerString_mouseRelease(entity me, vector coords)
void XonoticColorpickerString_loadCvars(entity me)
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
vector hslimage_color(vector v, vector margin)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
entity makeXonoticColorpickerString(string theCvar, string theDefaultCvar)
vector color_hslimage(vector v, vector margin)
void XonoticColorpickerString_saveCvars(entity me)