enforce a margin for button text
authorRudolf Polzer <divverent@alientrap.org>
Tue, 18 Jan 2011 18:29:40 +0000 (19:29 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 18 Jan 2011 18:29:40 +0000 (19:29 +0100)
qcsrc/menu/skin-customizables.inc
qcsrc/menu/xonotic/button.c

index 30ea052006c5f8e72d97fba241dd012986bb76b7..fa88d92246b25a473456882cdf371c877fa1be1c 100644 (file)
@@ -102,6 +102,7 @@ SKINBEGIN
        SKINVECTOR(COLOR_BUTTON_C, '1 1 1');
        SKINVECTOR(COLOR_BUTTON_F, '1 1 1');
        SKINVECTOR(COLOR_BUTTON_D, '1 1 1');
+       SKINFLOAT(MARGIN_BUTTON, 0.5);
 
        // item: campaign
        SKINFLOAT(ALPHA_CAMPAIGN_SELECTABLE, 0.8);
index 5522905bc2a54cdf1baa07371e6972895c5a846a..cbc7c47c40acbb84a88f39c154b7299428559531 100644 (file)
@@ -10,6 +10,8 @@ CLASS(XonoticButton) EXTENDS(Button)
        ATTRIB(XonoticButton, colorD, vector, SKINCOLOR_BUTTON_D)
        ATTRIB(XonoticButton, alpha, float, SKINALPHA_TEXT)
        ATTRIB(XonoticButton, disabledAlpha, float, SKINALPHA_DISABLED)
+       ATTRIB(XonoticButton, marginLeft, float, SKINMARGIN_BUTTON) // chars
+       ATTRIB(XonoticButton, marginRight, float, SKINMARGIN_BUTTON) // chars
 ENDCLASS(XonoticButton)
 entity makeXonoticButton(string theText, vector theColor);
 #endif