]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/commandbutton.qh
Fix type of a parameter of makeXonoticCommandButton
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / commandbutton.qh
index 5de59ee07b9e6d3d6d80920422e807b260255dcd..cd1063523d59f7d3273e17b5eb5800d8aecaa2a9 100644 (file)
@@ -2,13 +2,13 @@
 
 #include "button.qh"
 CLASS(XonoticCommandButton, XonoticButton)
-       METHOD(XonoticCommandButton, configureXonoticCommandButton, void(entity, string, vector, string, float, string));
+       METHOD(XonoticCommandButton, configureXonoticCommandButton, void(entity, string, vector, string, int, string));
        ATTRIB(XonoticCommandButton, onClickCommand, string);
-       ATTRIB(XonoticCommandButton, flags, float, 0);
+       ATTRIB(XonoticCommandButton, flags, int, 0);
 ENDCLASS(XonoticCommandButton)
 
-entity makeXonoticCommandButton_T(string theText, vector theColor, string theCommand, float closesMenu, string theTooltip);
-entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, float closesMenu);
+entity makeXonoticCommandButton_T(string theText, vector theColor, string theCommand, int theFlags, string theTooltip);
+entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags);
 
 #ifndef COMMANDBUTTON_CLOSE
 # define COMMANDBUTTON_CLOSE 1