X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fcommandbutton.qc;h=afea74cb47d80b0e618c266e24c5f39e13105640;hb=99c1b6ca80a69e112d410ee493d62f757b2c6df8;hp=8ee4e7de3a75503215591c49e643a68768c580bf;hpb=cd109cf922bc405155c680582745d645bd057ded;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/commandbutton.qc b/qcsrc/menu/xonotic/commandbutton.qc index 8ee4e7de3..afea74cb4 100644 --- a/qcsrc/menu/xonotic/commandbutton.qc +++ b/qcsrc/menu/xonotic/commandbutton.qc @@ -4,8 +4,10 @@ //# define COMMANDBUTTON_REVERT 4 #endif -#ifdef INTERFACE -CLASS(XonoticCommandButton) EXTENDS(XonoticButton) +#ifndef COMMANDBUTTON_H +#define COMMANDBUTTON_H +#include "button.qc" +CLASS(XonoticCommandButton, XonoticButton) METHOD(XonoticCommandButton, configureXonoticCommandButton, void(entity, string, vector, string, float)) ATTRIB(XonoticCommandButton, onClickCommand, string, string_null) ATTRIB(XonoticCommandButton, flags, float, 0) @@ -17,7 +19,7 @@ entity makeXonoticCommandButton(string theText, vector theColor, string theComma entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, float theFlags) { entity me; - me = spawnXonoticCommandButton(); + me = NEW(XonoticCommandButton); me.configureXonoticCommandButton(me, theText, theColor, theCommand, theFlags); return me; }