]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/commandbutton.qh
Welcome dialog: use capitals in Join and Spectate, fix compilation unit test
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / commandbutton.qh
1 #pragma once
2
3 #include "button.qh"
4 CLASS(XonoticCommandButton, XonoticButton)
5         METHOD(XonoticCommandButton, configureXonoticCommandButton, void(entity, string, vector, string, int, string));
6         ATTRIB(XonoticCommandButton, onClickCommand, string);
7         ATTRIB(XonoticCommandButton, flags, int, 0);
8 ENDCLASS(XonoticCommandButton)
9
10 entity makeXonoticCommandButton_T(string theText, vector theColor, string theCommand, int theFlags, string theTooltip);
11 entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags);
12 void XonoticCommandButton_Click(entity me, entity other);
13
14 #ifndef COMMANDBUTTON_CLOSE
15 # define COMMANDBUTTON_CLOSE 1
16 # define COMMANDBUTTON_APPLY 2
17 //# define COMMANDBUTTON_REVERT 4
18 #endif