]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add num_leading back to the old skin, and fix the maximized chat panel bg
authorFruitieX <rasse@rasse-lappy.localdomain>
Sun, 15 Aug 2010 11:53:34 +0000 (14:53 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sun, 15 Aug 2010 11:53:34 +0000 (14:53 +0300)
gfx/hud/old/num_leading.tga [new file with mode: 0644]
gfx/hud/old/weapon_current_bg.tga
qcsrc/client/hud.qc

diff --git a/gfx/hud/old/num_leading.tga b/gfx/hud/old/num_leading.tga
new file mode 100644 (file)
index 0000000..0629e49
Binary files /dev/null and b/gfx/hud/old/num_leading.tga differ
index 7f3a2af35e1ab2dc420dff1933489f9aa6686119..8111427a742c312f4e44c4aab10dbd63ea9af7fc 100644 (file)
Binary files a/gfx/hud/old/weapon_current_bg.tga and b/gfx/hud/old/weapon_current_bg.tga differ
index 30be665922f4a5e723b420acad77a0dd1f60bbec..0690e2fae5551e5bded643c8ec37a755842b62e1 100644 (file)
@@ -4431,8 +4431,15 @@ void HUD_Chat(void)
        {
                panel_pos_y = panel_bg_border;
                panel_size_y = vid_conheight - panel_bg_border * 2;
-               if(panel_bg == "0")
-                       panel_bg = "border"; // force a border when maximized
+               if(panel_bg == "0") // force a border when maximized
+               {
+                       if(precache_pic(panel_bg) == "") {
+                               panel_bg = strcat(hud_skin_path, "/border_default");
+                               if(precache_pic(panel_bg) == "") {
+                                       panel_bg = "gfx/hud/default/border_default";
+                               }
+                       }
+               }
                panel_bg_alpha = max(0.75, panel_bg_alpha); // force an alpha of at least 0.75
        }