]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/menu/voret/bigbutton.c
Initial checkout of Vore Tournament 0.1.alpha.
[voretournament/voretournament.git] / data / qcsrc / menu / voret / bigbutton.c
1 #ifdef INTERFACE\r
2 CLASS(VoretBigButton) EXTENDS(VoretButton)\r
3         METHOD(VoretBigButton, configureVoretBigButton, void(entity, string, vector))\r
4         ATTRIB(VoretBigButton, image, string, SKINGFX_BUTTON_BIG)\r
5         ATTRIB(VoretBigButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)\r
6 ENDCLASS(VoretButton)\r
7 entity makeVoretButton(string theText, vector theColor);\r
8 #endif\r
9 \r
10 #ifdef IMPLEMENTATION\r
11 entity makeVoretBigButton(string theText, vector theColor)\r
12 {\r
13         entity me;\r
14         me = spawnVoretBigButton();\r
15         me.configureVoretBigButton(me, theText, theColor);\r
16         return me;\r
17 }\r
18 \r
19 void configureVoretBigButtonVoretBigButton(entity me, string theText, vector theColor)\r
20 {\r
21         me.configureVoretButton(me, theText, theColor);\r
22 }\r
23 #endif\r