X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fbigcommandbutton.qc;h=6798d9b01b2602ba4cae85e78768788a6dde2467;hb=fc62dfa34fa5b13d63660d5249633af1222d6476;hp=c96dd57a16afcc614fedff7ce68d5a65b6076182;hpb=ea48961feb50159e05ef56f38b7fd0ebc15cc64e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/bigcommandbutton.qc b/qcsrc/menu/xonotic/bigcommandbutton.qc index c96dd57a1..6798d9b01 100644 --- a/qcsrc/menu/xonotic/bigcommandbutton.qc +++ b/qcsrc/menu/xonotic/bigcommandbutton.qc @@ -1,5 +1,7 @@ -#ifdef INTERFACE -CLASS(XonoticBigCommandButton) EXTENDS(XonoticCommandButton) +#ifndef BIGCOMMANDBUTTON_H +#define BIGCOMMANDBUTTON_H +#include "commandbutton.qc" +CLASS(XonoticBigCommandButton, XonoticCommandButton) METHOD(XonoticBigCommandButton, configureXonoticBigCommandButton, void(entity, string, vector, string, float)) ATTRIB(XonoticBigCommandButton, image, string, SKINGFX_BUTTON_BIG) ATTRIB(XonoticBigCommandButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY) @@ -11,7 +13,7 @@ entity makeXonoticBigCommandButton(string theText, vector theColor, string theCo entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float theFlags) { entity me; - me = spawnXonoticBigCommandButton(); + me = NEW(XonoticBigCommandButton); me.configureXonoticBigCommandButton(me, theText, theColor, theCommand, theFlags); return me; }