X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fbigcommandbutton.qc;h=53067dde8bbbda6aef3add67d6791b89700ff879;hp=c96dd57a16afcc614fedff7ce68d5a65b6076182;hb=86c9dc7c3696c329496b06375c1e79fb407401ce;hpb=d1ec6cd7b36e2c16817720fe5cce775fc3d26357 diff --git a/qcsrc/menu/xonotic/bigcommandbutton.qc b/qcsrc/menu/xonotic/bigcommandbutton.qc index c96dd57a16..53067dde8b 100644 --- a/qcsrc/menu/xonotic/bigcommandbutton.qc +++ b/qcsrc/menu/xonotic/bigcommandbutton.qc @@ -1,6 +1,8 @@ -#ifdef INTERFACE -CLASS(XonoticBigCommandButton) EXTENDS(XonoticCommandButton) - METHOD(XonoticBigCommandButton, configureXonoticBigCommandButton, void(entity, string, vector, string, float)) +#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) ENDCLASS(XonoticBigCommandButton) @@ -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; }