]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/bigbutton.qc
Merge branch 'TimePath/monstersys' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / bigbutton.qc
index a63189b63a850dc326e46216e7429f5d80ba98cb..07b6a074ceca2a341dba0c81976c0df3ab7c6046 100644 (file)
@@ -1,5 +1,7 @@
-#ifdef INTERFACE
-CLASS(XonoticBigButton) EXTENDS(XonoticButton)
+#ifndef BIGBUTTON_H
+#define BIGBUTTON_H
+#include "button.qc"
+CLASS(XonoticBigButton, XonoticButton)
        METHOD(XonoticBigButton, configureXonoticBigButton, void(entity, string, vector))
        ATTRIB(XonoticBigButton, image, string, SKINGFX_BUTTON_BIG)
        ATTRIB(XonoticBigButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY)
@@ -11,7 +13,7 @@ entity makeXonoticButton(string theText, vector theColor);
 entity makeXonoticBigButton(string theText, vector theColor)
 {
        entity me;
-       me = spawnXonoticBigButton();
+       me = NEW(XonoticBigButton);
        me.configureXonoticBigButton(me, theText, theColor);
        return me;
 }