3 CLASS(XonoticButton, Button)
4 METHOD(XonoticButton, configureXonoticButton, void(entity, string, vector))
5 ATTRIB(XonoticButton, fontSize, float, SKINFONTSIZE_NORMAL)
6 ATTRIB(XonoticButton, image, string, SKINGFX_BUTTON)
7 ATTRIB(XonoticButton, grayImage, string, SKINGFX_BUTTON_GRAY)
8 ATTRIB(XonoticButton, color, vector, SKINCOLOR_BUTTON_N)
9 ATTRIB(XonoticButton, colorC, vector, SKINCOLOR_BUTTON_C)
10 ATTRIB(XonoticButton, colorF, vector, SKINCOLOR_BUTTON_F)
11 ATTRIB(XonoticButton, colorD, vector, SKINCOLOR_BUTTON_D)
12 ATTRIB(XonoticButton, alpha, float, SKINALPHA_TEXT)
13 ATTRIB(XonoticButton, disabledAlpha, float, SKINALPHA_DISABLED)
14 ATTRIB(XonoticButton, marginLeft, float, SKINMARGIN_BUTTON) // chars
15 ATTRIB(XonoticButton, marginRight, float, SKINMARGIN_BUTTON) // chars
16 ENDCLASS(XonoticButton)
17 entity makeXonoticButton(string theText, vector theColor);
21 entity makeXonoticButton(string theText, vector theColor)
24 me = NEW(XonoticButton);
25 me.configureXonoticButton(me, theText, theColor);
29 void XonoticButton_configureXonoticButton(entity me, string theText, vector theColor)
31 if(theColor == '0 0 0')
33 me.configureButton(me, theText, me.fontSize, me.image);
37 me.configureButton(me, theText, me.fontSize, me.grayImage);
42 me.tooltip = getZonedTooltipForIdentifier(strcat(currentDialog.classname, "/", me.text));