2 CLASS(NexuizButton) EXTENDS(Button)
3 METHOD(NexuizButton, configureNexuizButton, void(entity, string, vector))
4 ATTRIB(NexuizButton, fontSize, float, SKINFONTSIZE_NORMAL)
5 ATTRIB(NexuizButton, image, string, SKINGFX_BUTTON)
6 ATTRIB(NexuizButton, grayImage, string, SKINGFX_BUTTON_GRAY)
7 ATTRIB(NexuizButton, color, vector, SKINCOLOR_BUTTON_N)
8 ATTRIB(NexuizButton, colorC, vector, SKINCOLOR_BUTTON_C)
9 ATTRIB(NexuizButton, colorF, vector, SKINCOLOR_BUTTON_F)
10 ATTRIB(NexuizButton, colorD, vector, SKINCOLOR_BUTTON_D)
11 ATTRIB(NexuizButton, alpha, float, SKINALPHA_TEXT)
12 ATTRIB(NexuizButton, disabledAlpha, float, SKINALPHA_DISABLED)
13 ENDCLASS(NexuizButton)
14 entity makeNexuizButton(string theText, vector theColor);
18 entity makeNexuizButton(string theText, vector theColor)
21 me = spawnNexuizButton();
22 me.configureNexuizButton(me, theText, theColor);
26 void configureNexuizButtonNexuizButton(entity me, string theText, vector theColor)
28 if(theColor == '0 0 0')
30 me.configureButton(me, theText, me.fontSize, me.image);
34 me.configureButton(me, theText, me.fontSize, me.grayImage);
39 me.tooltip = getZonedTooltipForIdentifier(strcat(currentDialog.classname, "/", me.text));