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