1#pragma once
2
3#include "button.qh"
4CLASS(XonoticCommandButton, XonoticButton)
5	METHOD(XonoticCommandButton, configureXonoticCommandButton, void(entity, string, vector, string, float, string));
6	ATTRIB(XonoticCommandButton, onClickCommand, string);
7	ATTRIB(XonoticCommandButton, flags, float, 0);
8ENDCLASS(XonoticCommandButton)
9
10entity makeXonoticCommandButton_T(string theText, vector theColor, string theCommand, float closesMenu, string theTooltip);
11entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, float closesMenu);
12
13#ifndef COMMANDBUTTON_CLOSE
14# define COMMANDBUTTON_CLOSE 1
15# define COMMANDBUTTON_APPLY 2
16//# define COMMANDBUTTON_REVERT 4
17#endif
18