]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/menu/nexuiz/textlabel.c
menu-div0test -> menu
[divverent/nexuiz.git] / data / qcsrc / menu / nexuiz / textlabel.c
1 #ifdef INTERFACE
2 CLASS(NexuizTextLabel) EXTENDS(Label)
3         METHOD(NexuizTextLabel, configureNexuizTextLabel, void(entity, float, string))
4         METHOD(NexuizTextLabel, draw, void(entity))
5         ATTRIB(NexuizTextLabel, fontSize, float, SKINFONTSIZE_NORMAL)
6         ATTRIB(NexuizTextLabel, disabledAlpha, float, SKINALPHA_DISABLED)
7 ENDCLASS(NexuizTextLabel)
8 entity makeNexuizTextLabel(float theAlign, string theText);
9 #endif
10
11 #ifdef IMPLEMENTATION
12 entity makeNexuizTextLabel(float theAlign, string theText)
13 {
14         entity me;
15         me = spawnNexuizTextLabel();
16         me.configureNexuizTextLabel(me, theAlign, theText);
17         return me;
18 }
19 void configureNexuizTextLabelNexuizTextLabel(entity me, float theAlign, string theText)
20 {
21         me.configureLabel(me, theText, me.fontSize, theAlign);
22 }
23 void drawNexuizTextLabel(entity me)
24 {
25         drawLabel(me);
26 }
27 #endif