X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fbigbutton.qc;h=0022aad5a4fd33ebd8c0de63b0bcf5e9d4f10093;hp=07b6a074ceca2a341dba0c81976c0df3ab7c6046;hb=2d30ce639fd8525a6f22d383f44c4c9af89fe873;hpb=853b6160a59c1e6f1b67af9abd43cf98d25b8625 diff --git a/qcsrc/menu/xonotic/bigbutton.qc b/qcsrc/menu/xonotic/bigbutton.qc index 07b6a074c..0022aad5a 100644 --- a/qcsrc/menu/xonotic/bigbutton.qc +++ b/qcsrc/menu/xonotic/bigbutton.qc @@ -1,15 +1,5 @@ -#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) -ENDCLASS(XonoticBigButton) -entity makeXonoticButton(string theText, vector theColor); -#endif +#include "bigbutton.qh" -#ifdef IMPLEMENTATION entity makeXonoticBigButton(string theText, vector theColor) { entity me; @@ -20,6 +10,5 @@ entity makeXonoticBigButton(string theText, vector theColor) void XonoticBigButton_configureXonoticBigButton(entity me, string theText, vector theColor) { - me.configureXonoticButton(me, theText, theColor); + me.configureXonoticButton(me, theText, theColor, string_null); } -#endif