X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fbigbutton.qc;h=0022aad5a4fd33ebd8c0de63b0bcf5e9d4f10093;hb=8d6302c73451c7f8aa7ca5d5eb54d926b73342f6;hp=a63189b63a850dc326e46216e7429f5d80ba98cb;hpb=d99a102842ced06e6e1a0c9358c07c3b64523968;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/bigbutton.qc b/qcsrc/menu/xonotic/bigbutton.qc index a63189b63..0022aad5a 100644 --- a/qcsrc/menu/xonotic/bigbutton.qc +++ b/qcsrc/menu/xonotic/bigbutton.qc @@ -1,23 +1,14 @@ -#ifdef INTERFACE -CLASS(XonoticBigButton) EXTENDS(XonoticButton) - METHOD(XonoticBigButton, configureXonoticBigButton, void(entity, string, vector)) - ATTRIB(XonoticBigButton, image, string, SKINGFX_BUTTON_BIG) - ATTRIB(XonoticBigButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY) -ENDCLASS(XonoticBigButton) -entity makeXonoticButton(string theText, vector theColor); -#endif +#include "bigbutton.qh" -#ifdef IMPLEMENTATION entity makeXonoticBigButton(string theText, vector theColor) { entity me; - me = spawnXonoticBigButton(); + me = NEW(XonoticBigButton); me.configureXonoticBigButton(me, theText, theColor); return me; } void XonoticBigButton_configureXonoticBigButton(entity me, string theText, vector theColor) { - me.configureXonoticButton(me, theText, theColor); + me.configureXonoticButton(me, theText, theColor, string_null); } -#endif