X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fmenu%2Fxonotic%2Fbigcommandbutton.qc;fp=qcsrc%2Fmenu%2Fxonotic%2Fbigcommandbutton.qc;h=c96dd57a16afcc614fedff7ce68d5a65b6076182;hb=bb80a6aba067167c6ef8d5f3465f03bd34142fa2;hp=0000000000000000000000000000000000000000;hpb=a035d049951445f892a37bfdef3e738f8a18e8b9;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/bigcommandbutton.qc b/qcsrc/menu/xonotic/bigcommandbutton.qc new file mode 100644 index 000000000..c96dd57a1 --- /dev/null +++ b/qcsrc/menu/xonotic/bigcommandbutton.qc @@ -0,0 +1,23 @@ +#ifdef INTERFACE +CLASS(XonoticBigCommandButton) EXTENDS(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 + +#ifdef IMPLEMENTATION +entity makeXonoticBigCommandButton(string theText, vector theColor, string theCommand, float theFlags) +{ + entity me; + me = spawnXonoticBigCommandButton(); + me.configureXonoticBigCommandButton(me, theText, theColor, theCommand, theFlags); + return me; +} + +void XonoticBigCommandButton_configureXonoticBigCommandButton(entity me, string theText, vector theColor, string theCommand, float theFlags) +{ + me.configureXonoticCommandButton(me, theText, theColor, theCommand, theFlags); +} +#endif