X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fbigbutton.qc;h=0022aad5a4fd33ebd8c0de63b0bcf5e9d4f10093;hb=429e52163f53e75b848135f076b77c4eb43935ac;hp=4f0acc6814ec8e8764994560208745de3f356f49;hpb=c67e77ba36fb8dd44b39722e41943b6671b549ff;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/bigbutton.qc b/qcsrc/menu/xonotic/bigbutton.qc index 4f0acc681..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