]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/bigbutton.qc
Header police
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / bigbutton.qc
1 #include "bigbutton.qh"
2 #ifndef BIGBUTTON_H
3 #define BIGBUTTON_H
4 #include "button.qc"
5 CLASS(XonoticBigButton, XonoticButton)
6         METHOD(XonoticBigButton, configureXonoticBigButton, void(entity, string, vector));
7         ATTRIB(XonoticBigButton, image, string, SKINGFX_BUTTON_BIG)
8         ATTRIB(XonoticBigButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)
9 ENDCLASS(XonoticBigButton)
10 entity makeXonoticBigButton(string theText, vector theColor);
11 #endif
12
13 #ifdef IMPLEMENTATION
14 entity makeXonoticBigButton(string theText, vector theColor)
15 {
16         entity me;
17         me = NEW(XonoticBigButton);
18         me.configureXonoticBigButton(me, theText, theColor);
19         return me;
20 }
21
22 void XonoticBigButton_configureXonoticBigButton(entity me, string theText, vector theColor)
23 {
24         me.configureXonoticButton(me, theText, theColor, string_null);
25 }
26 #endif