]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/textlabel.c
Make the menu header style editable in skinfiles
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / textlabel.c
index d0107525f980a559062f1cc0adee43d418205a75..c0e0806d83dc379e5276d48f2c30fc5a95ec3c0e 100644 (file)
@@ -17,11 +17,20 @@ entity makeXonoticTextLabel(float theAlign, string theText)
        me.configureXonoticTextLabel(me, theAlign, theText);
        return me;
 }
-void configureXonoticTextLabelXonoticTextLabel(entity me, float theAlign, string theText)
+entity makeXonoticHeaderLabel(string theText)
+{
+       entity me;
+       me = makeXonoticTextLabel(0.5, theText);
+       me.colorL = SKINCOLOR_HEADER;
+       me.alpha = SKINALPHA_HEADER;
+       me.isBold = TRUE;
+       return me;
+}
+void XonoticTextLabel_configureXonoticTextLabel(entity me, float theAlign, string theText)
 {
        me.configureLabel(me, theText, me.fontSize, theAlign);
 }
-void drawXonoticTextLabel(entity me)
+void XonoticTextLabel_draw(entity me)
 {
        SUPER(XonoticTextLabel).draw(me);
 }