make the "icon" part skinnable; fixtrans the icons
authorRudolf Polzer <divverent@alientrap.org>
Wed, 3 Nov 2010 07:11:36 +0000 (08:11 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 3 Nov 2010 07:11:36 +0000 (08:11 +0100)
gfx/menu/default/icon_pure1.tga
gfx/menu/luminos/icon_pure1.tga
gfx/menu/xaw/icon_pure1.tga
qcsrc/menu/skin-customizables.inc
qcsrc/menu/xonotic/serverlist.c

index 183ec93..62980d2 100644 (file)
Binary files a/gfx/menu/default/icon_pure1.tga and b/gfx/menu/default/icon_pure1.tga differ
index 183ec93..62980d2 100644 (file)
Binary files a/gfx/menu/luminos/icon_pure1.tga and b/gfx/menu/luminos/icon_pure1.tga differ
index 183ec93..62980d2 100644 (file)
Binary files a/gfx/menu/xaw/icon_pure1.tga and b/gfx/menu/xaw/icon_pure1.tga differ
index b93ecaa..afea3e7 100644 (file)
@@ -222,6 +222,7 @@ 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");
 
        // item: server info
        SKINVECTOR(COLOR_SERVERINFO_NAME, '1 1 1');
index 610350c..ce9676f 100644 (file)
@@ -635,10 +635,10 @@ void XonoticServerList_drawListBoxItem(entity me, float i, vector absSize, float
                iconPos_x = (me.columnIconsSize - 2 * iconSize_x) * 0.5;
                iconPos_y = (1 - iconSize_y) * 0.5;
 
-               draw_Picture(iconPos, strcat("icon_pure", ftos(strstrofs(s, ":P0:", 0) >= 0)), iconSize, '1 1 1', 1);
+               draw_Picture(iconPos, strcat(SKINGFX_SERVERLIST_ICON, "_pure", ftos(strstrofs(s, ":P0:", 0) >= 0)), iconSize, '1 1 1', 1);
 
                iconPos_x += iconSize_x;
-               draw_Picture(iconPos, strcat("icon_aeslevel", ftos(q)), iconSize, '1 1 1', 1);
+               draw_Picture(iconPos, strcat(SKINGFX_SERVERLIST_ICON, "_aeslevel", ftos(q)), iconSize, '1 1 1', 1);
        }
 
        s = ftos(p);