From 23506a328f9f600b750be1afca3bf0665b4a034c Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 15 Apr 2010 19:17:06 +1200 Subject: [PATCH] remove some unused crap from DrawRightTooltip --- OpenRA.Game/Widgets/SpecialPowerBinWidget.cs | 2 +- OpenRA.Game/Widgets/WidgetUtils.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/OpenRA.Game/Widgets/SpecialPowerBinWidget.cs b/OpenRA.Game/Widgets/SpecialPowerBinWidget.cs index 5ee57c4d3d..da7541c690 100644 --- a/OpenRA.Game/Widgets/SpecialPowerBinWidget.cs +++ b/OpenRA.Game/Widgets/SpecialPowerBinWidget.cs @@ -118,7 +118,7 @@ namespace OpenRA.Widgets else br += new int2(300,0); - WidgetUtils.DrawRightTooltip("dialog4", tl, m, br, null); + WidgetUtils.DrawRightTooltip("dialog4", tl, m, br); pos += new int2(77, 5); Game.chrome.renderer.BoldFont.DrawText(sp.Info.Description, pos, Color.White); diff --git a/OpenRA.Game/Widgets/WidgetUtils.cs b/OpenRA.Game/Widgets/WidgetUtils.cs index 87207cfc09..035aa618bd 100644 --- a/OpenRA.Game/Widgets/WidgetUtils.cs +++ b/OpenRA.Game/Widgets/WidgetUtils.cs @@ -72,7 +72,7 @@ namespace OpenRA.Widgets } // todo: write this in terms of 3 DrawPanelPartial calls - public static void DrawRightTooltip(string collection, int2 tl, int2 m, int2 br, Action a) + public static void DrawRightTooltip(string collection, int2 tl, int2 m, int2 br) { var images = new[] { "border-t", "border-b", "border-l", "border-r", "corner-tl", "corner-tr", "corner-bl", "corner-br", "background"}; var ss = images.Select(i => ChromeProvider.GetImage(Game.chrome.renderer, collection, i)).ToArray(); @@ -153,8 +153,6 @@ namespace OpenRA.Widgets // BR corner DrawRGBA(ss[7], new float2(br.X - (int)ss[7].size.X, br.Y - (int)ss[7].size.Y)); - - if (a != null) a(); } static bool HasFlags(this PanelSides a, PanelSides b) { return (a & b) == b; }