]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/bigcommandbutton.qc
Merge branch 'TimePath/soundregistry' into 'master'
[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, string));
6         ATTRIB(XonoticBigCommandButton, image, string, SKINGFX_BUTTON_BIG)
7         ATTRIB(XonoticBigCommandButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)
8 ENDCLASS(XonoticBigCommandButton)
9 entity makeXonoticBigCommandButton_T(string theText, vector theColor, string theCommand, float closesMenu, string theTooltip);
10 entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float closesMenu);
11 #endif
12
13 #ifdef IMPLEMENTATION
14 entity makeXonoticBigCommandButton_T(string theText, vector theColor, string theCommand, float theFlags, string theTooltip)
15 {
16         entity me;
17         me = NEW(XonoticBigCommandButton);
18         me.configureXonoticBigCommandButton(me, theText, theColor, theCommand, theFlags, theTooltip);
19         return me;
20 }
21 entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float theFlags)
22 {
23         return makeXonoticBigCommandButton_T(theText, theColor, theCommand, theFlags, string_null);
24 }
25
26 void XonoticBigCommandButton_configureXonoticBigCommandButton(entity me, string theText, vector theColor, string theCommand, float theFlags, string theTooltip)
27 {
28         me.configureXonoticCommandButton(me, theText, theColor, theCommand, theFlags, theTooltip);
29 }
30 #endif