From d332508eb5c7f2f53229ee629ae8727231626093 Mon Sep 17 00:00:00 2001 From: Alli Date: Sat, 6 Feb 2010 17:11:23 +1300 Subject: [PATCH] stop tooltip showing when build palette closed --- OpenRa.Game/Chrome.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRa.Game/Chrome.cs b/OpenRa.Game/Chrome.cs index 3ad153b8ba..130f1f1032 100644 --- a/OpenRa.Game/Chrome.cs +++ b/OpenRa.Game/Chrome.cs @@ -931,7 +931,7 @@ namespace OpenRa rgbaRenderer.DrawSprite(ChromeProvider.GetImage(renderer, paletteCollection, "dock-bottom"), new float2(Game.viewport.Width - 14, origin.Y - 1 + 48 * y), "chrome"); rgbaRenderer.Flush(); - if (tooltipItem != null) + if (tooltipItem != null && paletteOpen) DrawProductionTooltip(world, tooltipItem, new float2(Game.viewport.Width, origin.Y + y * 48 + 9).ToInt2()/*tooltipPos*/); return y*48+9;