X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fbigcommandbutton.qc;h=68941771708b212522e86c8e7b651635762cbbd4;hb=541c234fd442f5857209128fc7a907e406f4be03;hp=53067dde8bbbda6aef3add67d6791b89700ff879;hpb=221325d0a55851348e3397354225f04cd472d42f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/bigcommandbutton.qc b/qcsrc/menu/xonotic/bigcommandbutton.qc index 53067dde8..689417717 100644 --- a/qcsrc/menu/xonotic/bigcommandbutton.qc +++ b/qcsrc/menu/xonotic/bigcommandbutton.qc @@ -2,24 +2,29 @@ #define BIGCOMMANDBUTTON_H #include "commandbutton.qc" CLASS(XonoticBigCommandButton, XonoticCommandButton) - METHOD(XonoticBigCommandButton, configureXonoticBigCommandButton, void(entity, string, vector, string, float)); + METHOD(XonoticBigCommandButton, configureXonoticBigCommandButton, void(entity, string, vector, string, float, string)); ATTRIB(XonoticBigCommandButton, image, string, SKINGFX_BUTTON_BIG) ATTRIB(XonoticBigCommandButton, grayImage, string, SKINGFX_BUTTON_BIG_GRAY) ENDCLASS(XonoticBigCommandButton) +entity makeXonoticBigCommandButton_T(string theText, vector theColor, string theCommand, float closesMenu, string theTooltip); entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float closesMenu); #endif #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