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)
8 entity makeNexuizButton(string theText, vector theColor);
12 entity makeNexuizButton(string theText, vector theColor)
15 me = spawnNexuizButton();
16 me.configureNexuizButton(me, theText, theColor);
20 void configureNexuizButtonNexuizButton(entity me, string theText, vector theColor)
22 if(theColor == '0 0 0')
24 me.configureButton(me, theText, me.fontSize, me.image);
28 me.configureButton(me, theText, me.fontSize, me.grayImage);