]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/bigcommandbutton.c
Merge branch 'master' into terencehill/music_player
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / bigcommandbutton.c
1 #ifdef INTERFACE
2 CLASS(XonoticBigCommandButton) EXTENDS(XonoticCommandButton)
3         METHOD(XonoticBigCommandButton, configureXonoticBigCommandButton, void(entity, string, vector, string, float))
4         ATTRIB(XonoticBigCommandButton, image, string, SKINGFX_BUTTON_BIG)
5         ATTRIB(XonoticBigCommandButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)
6 ENDCLASS(XonoticBigCommandButton)
7 entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float closesMenu);
8 #endif
9
10 #ifdef IMPLEMENTATION
11 entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float theFlags)
12 {
13         entity me;
14         me = spawnXonoticBigCommandButton();
15         me.configureXonoticBigCommandButton(me, theText, theColor, theCommand, theFlags);
16         return me;
17 }
18
19 void XonoticBigCommandButton_configureXonoticBigCommandButton(entity me, string theText, vector theColor, string theCommand, float theFlags)
20 {
21         me.configureXonoticCommandButton(me, theText, theColor, theCommand, theFlags);
22 }
23 #endif