]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/button.qh
Merge branch 'master' into terencehill/dynamic_hud
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / button.qh
1 #pragma once
2
3 #include "../item/button.qh"
4 CLASS(XonoticButton, Button)
5         METHOD(XonoticButton, configureXonoticButton, void(entity, string, vector, string));
6         ATTRIB(XonoticButton, fontSize, float, SKINFONTSIZE_NORMAL)
7         ATTRIB(XonoticButton, image, string, SKINGFX_BUTTON)
8         ATTRIB(XonoticButton, grayImage, string, SKINGFX_BUTTON_GRAY)
9         ATTRIB(XonoticButton, color, vector, SKINCOLOR_BUTTON_N)
10         ATTRIB(XonoticButton, colorC, vector, SKINCOLOR_BUTTON_C)
11         ATTRIB(XonoticButton, colorF, vector, SKINCOLOR_BUTTON_F)
12         ATTRIB(XonoticButton, colorD, vector, SKINCOLOR_BUTTON_D)
13         ATTRIB(XonoticButton, alpha, float, SKINALPHA_TEXT)
14         ATTRIB(XonoticButton, disabledAlpha, float, SKINALPHA_DISABLED)
15         ATTRIB(XonoticButton, marginLeft, float, SKINMARGIN_BUTTON)  // chars
16         ATTRIB(XonoticButton, marginRight, float, SKINMARGIN_BUTTON) // chars
17 ENDCLASS(XonoticButton)
18
19 entity makeXonoticButton_T(string theText, vector theColor, string theTooltip);
20 entity makeXonoticButton(string theText, vector theColor);