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