]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/radiobutton.qh
Compact weapon flag checks
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / radiobutton.qh
1 #pragma once
2
3 #include "../item/radiobutton.qh"
4 CLASS(XonoticRadioButton, RadioButton)
5         METHOD(XonoticRadioButton, configureXonoticRadioButton, void(entity, float, string, string, string, string));
6         METHOD(XonoticRadioButton, draw, void(entity));
7         METHOD(XonoticRadioButton, setChecked, void(entity, float));
8         ATTRIB(XonoticRadioButton, fontSize, float, SKINFONTSIZE_NORMAL);
9         ATTRIB(XonoticRadioButton, image, string, SKINGFX_RADIOBUTTON);
10         ATTRIB(XonoticRadioButton, color, vector, SKINCOLOR_RADIOBUTTON_N);
11         ATTRIB(XonoticRadioButton, colorC, vector, SKINCOLOR_RADIOBUTTON_C);
12         ATTRIB(XonoticRadioButton, colorF, vector, SKINCOLOR_RADIOBUTTON_F);
13         ATTRIB(XonoticRadioButton, colorD, vector, SKINCOLOR_RADIOBUTTON_D);
14
15         ATTRIB(XonoticRadioButton, cvarName, string);
16         ATTRIB(XonoticRadioButton, cvarValue, string);
17         ATTRIB(XonoticRadioButton, cvarOffValue, string);
18         ATTRIB(XonoticRadioButton, cvarValueIsAnotherCvar, float, 0);
19         METHOD(XonoticRadioButton, loadCvars, void(entity));
20         METHOD(XonoticRadioButton, saveCvars, void(entity));
21
22         ATTRIB(XonoticRadioButton, alpha, float, SKINALPHA_TEXT);
23         ATTRIB(XonoticRadioButton, disabledAlpha, float, SKINALPHA_DISABLED);
24 ENDCLASS(XonoticRadioButton)
25 entity makeXonoticRadioButton_T(float, string, string, string, string theTooltip);
26 entity makeXonoticRadioButton(float, string, string, string);