]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/menu/voret/bigcommandbutton.c
Tweak the Effects menu, and add iris adaptation to it as well.
[voretournament/voretournament.git] / data / qcsrc / menu / voret / bigcommandbutton.c
1 #ifdef INTERFACE\r
2 CLASS(VoretBigCommandButton) EXTENDS(VoretCommandButton)\r
3         METHOD(VoretBigCommandButton, configureVoretBigCommandButton, void(entity, string, vector, string, float))\r
4         ATTRIB(VoretBigCommandButton, image, string, SKINGFX_BUTTON_BIG)\r
5         ATTRIB(VoretBigCommandButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)\r
6 ENDCLASS(VoretCommandButton)\r
7 entity makeVoretBigCommandButton(string theText, vector theColor, string theCommand, float closesMenu);\r
8 #endif\r
9 \r
10 #ifdef IMPLEMENTATION\r
11 entity makeVoretBigCommandButton(string theText, vector theColor, string theCommand, float theFlags)\r
12 {\r
13         entity me;\r
14         me = spawnVoretBigCommandButton();\r
15         me.configureVoretBigCommandButton(me, theText, theColor, theCommand, theFlags);\r
16         return me;\r
17 }\r
18 \r
19 void configureVoretBigCommandButtonVoretBigCommandButton(entity me, string theText, vector theColor, string theCommand, float theFlags)\r
20 {\r
21         me.configureVoretCommandButton(me, theText, theColor, theCommand, theFlags);\r
22 }\r
23 #endif\r