]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/item/label.qh
Merge branch 'master' into Mirio/balance
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / label.qh
1 #pragma once
2
3 #include "../item.qh"
4 CLASS(Label, Item)
5         METHOD(Label, configureLabel, void(entity, string, float, float));
6         METHOD(Label, draw, void(entity));
7         METHOD(Label, resizeNotify, void(entity, vector, vector, vector, vector));
8         METHOD(Label, setText, void(entity, string));
9         METHOD(Label, toString, string(entity));
10         METHOD(Label, recalcPositionWithText, void(entity, string));
11         ATTRIB(Label, isBold, float, 0)
12         ATTRIB(Label, text, string, string_null)
13         ATTRIB(Label, currentText, string, string_null)
14         ATTRIB(Label, fontSize, float, 8)
15         ATTRIB(Label, align, float, 0.5)
16         ATTRIB(Label, allowCut, float, 0)
17         ATTRIB(Label, allowColors, float, 0)
18         ATTRIB(Label, keepspaceLeft, float, 0) // for use by subclasses (radiobuttons for example)
19         ATTRIB(Label, keepspaceRight, float, 0)
20         ATTRIB(Label, marginLeft, float, 0)    // alternate way to specify keepspace* (in characters from the font)
21         ATTRIB(Label, marginRight, float, 0)
22         ATTRIB(Label, realFontSize, vector, '0 0 0')
23         ATTRIB(Label, realOrigin, vector, '0 0 0')
24         ATTRIB(Label, alpha, float, 0.7)
25         ATTRIB(Label, colorL, vector, SKINCOLOR_TEXT)
26         ATTRIB(Label, disabled, float, 0)
27         ATTRIB(Label, disabledAlpha, float, 0.3)
28         ATTRIB(Label, textEntity, entity, NULL)
29         ATTRIB(Label, allowWrap, float, 0)
30         ATTRIB(Label, recalcPos, float, 0)
31         ATTRIB(Label, condenseFactor, float, 1)
32         ATTRIB(Label, overrideRealOrigin, vector, '0 0 0')
33         ATTRIB(Label, overrideCondenseFactor, float, 0)
34 ENDCLASS(Label)