From: Severin Meyer Date: Fri, 12 Sep 2014 02:35:34 +0000 (+0200) Subject: Make the server category text color editable in menu skins X-Git-Tag: xonotic-v0.8.0~181^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=edf4c4cfedd720721054b9bd06db1ac5fefd3ea9;p=xonotic%2Fxonotic-data.pk3dir.git Make the server category text color editable in menu skins --- diff --git a/qcsrc/menu/skin-customizables.inc b/qcsrc/menu/skin-customizables.inc index 6b5cac042..6b084f54a 100644 --- a/qcsrc/menu/skin-customizables.inc +++ b/qcsrc/menu/skin-customizables.inc @@ -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'); diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index 0c7fe148b..753702751 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -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);