X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fbigcommandbutton.qc;h=a6f8615de4b26c47f3f714cd625caed14fa3a53a;hb=0d4410adb034af1a9989862211e49e442fa9b9dd;hp=53067dde8bbbda6aef3add67d6791b89700ff879;hpb=c67e77ba36fb8dd44b39722e41943b6671b549ff;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/bigcommandbutton.qc b/qcsrc/menu/xonotic/bigcommandbutton.qc index 53067dde8..a6f8615de 100644 --- a/qcsrc/menu/xonotic/bigcommandbutton.qc +++ b/qcsrc/menu/xonotic/bigcommandbutton.qc @@ -1,25 +1,18 @@ -#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) -entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float closesMenu); -#endif +#include "bigcommandbutton.qh" -#ifdef IMPLEMENTATION -entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float theFlags) +entity makeXonoticBigCommandButton_T(string theText, vector theColor, string theCommand, float theFlags, string theTooltip) { entity me; me = NEW(XonoticBigCommandButton); - me.configureXonoticBigCommandButton(me, theText, theColor, theCommand, theFlags); + me.configureXonoticBigCommandButton(me, theText, theColor, theCommand, theFlags, theTooltip); return me; } +entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float theFlags) +{ + return makeXonoticBigCommandButton_T(theText, theColor, theCommand, theFlags, string_null); +} -void XonoticBigCommandButton_configureXonoticBigCommandButton(entity me, string theText, vector theColor, string theCommand, float theFlags) +void XonoticBigCommandButton_configureXonoticBigCommandButton(entity me, string theText, vector theColor, string theCommand, float theFlags, string theTooltip) { - me.configureXonoticCommandButton(me, theText, theColor, theCommand, theFlags); + me.configureXonoticCommandButton(me, theText, theColor, theCommand, theFlags, theTooltip); } -#endif