]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove GFX_SERVERLIST_ICON. There is no reason why themes should use a custom icon...
authorSeverin Meyer <sev.ch@web.de>
Sun, 26 Jul 2015 11:31:33 +0000 (13:31 +0200)
committerSeverin Meyer <sev.ch@web.de>
Sun, 26 Jul 2015 11:31:33 +0000 (13:31 +0200)
qcsrc/menu/skin-customizables.inc
qcsrc/menu/xonotic/serverlist.qc

index bf29683f6302b1bc889e68f09017a690ab0e55cd..413f10338c48b6be12de19ffc75bf3386316dd09 100644 (file)
@@ -247,7 +247,6 @@ SKINBEGIN
        SKINVECTOR(COLOR_SERVERLIST_FAVORITE, '1 1 1');
        SKINFLOAT(ALPHA_SERVERLIST_IMPOSSIBLE, 0.7);
        SKINVECTOR(COLOR_SERVERLIST_IMPOSSIBLE, '0.3 0.3 0.3');
-       SKINSTRING(GFX_SERVERLIST_ICON, "icon");
        SKINFLOAT(ALPHA_SERVERLIST_ICON_NONPURE, 0.5);
 
        // item: server info
index 585bfcd5dc6231677eccd0c9ab25f24bc4324ae9..33203c52b9dc72c10f80ad23183b609494d3310a 100644 (file)
@@ -1164,16 +1164,16 @@ void XonoticServerList_drawListBoxItem(entity me, int i, vector absSize, bool is
        if(me.seenIPv4 && me.seenIPv6)
        {
                if(isv6)
-                       draw_Picture(iconPos, strcat(SKINGFX_SERVERLIST_ICON, "_ipv6"), iconSize, '1 1 1', 1);
+                       draw_Picture(iconPos, "icon_ipv6", iconSize, '1 1 1', 1);
                else if(isv4)
-                       draw_Picture(iconPos, strcat(SKINGFX_SERVERLIST_ICON, "_ipv4"), iconSize, '1 1 1', 1);
+                       draw_Picture(iconPos, "icon_ipv4", iconSize, '1 1 1', 1);
        }
 
        iconPos.x += iconSize.x;
 
        // AES
        if(q > 0)
-               draw_Picture(iconPos, strcat(SKINGFX_SERVERLIST_ICON, "_aeslevel", ftos(q)), iconSize, '1 1 1', 1);
+               draw_Picture(iconPos, strcat("icon_aeslevel", ftos(q)), iconSize, '1 1 1', 1);
 
        iconPos.x += iconSize.x;
 
@@ -1181,13 +1181,13 @@ void XonoticServerList_drawListBoxItem(entity me, int i, vector absSize, bool is
        if(modname == "Xonotic")
        {
                if(pure == 0)
-                       draw_Picture(iconPos, strcat(SKINGFX_SERVERLIST_ICON, "_pure1"), iconSize, '1 1 1', 1);
+                       draw_Picture(iconPos, "icon_pure1", iconSize, '1 1 1', 1);
        }
        else
        {
-               string icon = strcat(SKINGFX_SERVERLIST_ICON, "_mod_", modname);
+               string icon = strcat("icon_mod_", modname);
                if(draw_PictureSize(icon) == '0 0 0')
-                       icon = strcat(SKINGFX_SERVERLIST_ICON, "_mod_");
+                       icon = "icon_mod_";
 
                if(pure == 0)
                        draw_Picture(iconPos, icon, iconSize, '1 1 1', 1);
@@ -1199,7 +1199,7 @@ void XonoticServerList_drawListBoxItem(entity me, int i, vector absSize, bool is
 
        // Stats
        if(sflags >= 0 && (sflags & SERVERFLAG_PLAYERSTATS))
-               draw_Picture(iconPos, strcat(SKINGFX_SERVERLIST_ICON, "_stats1"), iconSize, '1 1 1', 1);
+               draw_Picture(iconPos, "icon_stats1", iconSize, '1 1 1', 1);
 
        // --------------
        //  RENDER TEXT