]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make the server category text color editable in menu skins
authorSeverin Meyer <sev.ch@web.de>
Fri, 12 Sep 2014 02:35:34 +0000 (04:35 +0200)
committerSeverin Meyer <sev.ch@web.de>
Fri, 12 Sep 2014 02:35:34 +0000 (04:35 +0200)
qcsrc/menu/skin-customizables.inc
qcsrc/menu/xonotic/serverlist.c

index 6b5cac042ca970af7df0cc83c1c4e9f5e5e14585..6b084f54aef1090a7afbdecbfabf724ec392fbdd 100644 (file)
@@ -227,6 +227,8 @@ SKINBEGIN
        SKINFLOAT(WIDTH_SCROLLBAR, 16);
 
        // item: server list
+       SKINFLOAT(ALPHA_SERVERLIST_CATEGORY, 0.7);
+       SKINVECTOR(COLOR_SERVERLIST_CATEGORY, '1 1 1');
        SKINFLOAT(ALPHA_SERVERLIST_FULL, 0.4);
        SKINFLOAT(ALPHA_SERVERLIST_EMPTY, 0.7);
        SKINVECTOR(COLOR_SERVERLIST_LOWPING, '0 1 0');
index 0c7fe148be6ea7b0eed1c01ec353c6d59ffbd282..7537027512bfee66d7f5ad43c7bca65f9864aaca 100644 (file)
@@ -1013,8 +1013,8 @@ void XonoticServerList_drawListBoxItem(entity me, float i, vector absSize, float
                                strcat(catent.cat_string, ":"),
 #endif
                                me.realFontSize,
-                               '1 1 1',
-                               SKINALPHA_TEXT,
+                               SKINCOLOR_SERVERLIST_CATEGORY,
+                               SKINALPHA_SERVERLIST_CATEGORY,
                                0
                        );
                        SET_YRANGE(me.categoriesHeight / (me.categoriesHeight + 1), 1);