From e4e443b0ab434293d6d6bd13161b300423e3f328 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 19 Jul 2011 21:05:28 +1200 Subject: [PATCH] remove unused SidebarButtonWidget --- OpenRA.Mods.RA/OpenRA.Mods.RA.csproj | 1 - OpenRA.Mods.RA/Widgets/SidebarButtonWidget.cs | 45 ------------------- 2 files changed, 46 deletions(-) delete mode 100644 OpenRA.Mods.RA/Widgets/SidebarButtonWidget.cs diff --git a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj index 4bb9c4e38a..509c736075 100644 --- a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj +++ b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj @@ -331,7 +331,6 @@ - diff --git a/OpenRA.Mods.RA/Widgets/SidebarButtonWidget.cs b/OpenRA.Mods.RA/Widgets/SidebarButtonWidget.cs deleted file mode 100644 index 5c14e54685..0000000000 --- a/OpenRA.Mods.RA/Widgets/SidebarButtonWidget.cs +++ /dev/null @@ -1,45 +0,0 @@ -#region Copyright & License Information -/* - * Copyright 2007-2011 The OpenRA Developers (see AUTHORS) - * This file is part of OpenRA, which is free software. It is made - * available to you under the terms of the GNU General Public License - * as published by the Free Software Foundation. For more information, - * see COPYING. - */ -#endregion - -using System; -using System.Drawing; -using OpenRA.Graphics; -using OpenRA.Widgets; - -namespace OpenRA.Mods.RA -{ - public class SidebarButtonWidget : ButtonWidget - { - public string Image = ""; - - readonly World world; - [ObjectCreator.UseCtor] - public SidebarButtonWidget( [ObjectCreator.Param] World world ) - : base() - { - this.world = world; - } - - protected SidebarButtonWidget(SidebarButtonWidget widget) - : base(widget) - { - this.world = widget.world; - } - - public override void Draw() - { - var state = Depressed ? "pressed" : - RenderBounds.Contains(Viewport.LastMousePos) ? "hover" : "normal"; - - WidgetUtils.DrawRGBA(ChromeProvider.GetImage(Image + "-" + world.LocalPlayer.Country.Race, state), RenderOrigin); - } - } -} -