remove unused SidebarButtonWidget

This commit is contained in:
Chris Forbes
2011-07-19 21:05:28 +12:00
committed by Paul Chote
parent e81cbceb99
commit e4e443b0ab
2 changed files with 0 additions and 46 deletions

View File

@@ -331,7 +331,6 @@
<Compile Include="Widgets\Logic\GameInitLogic.cs" />
<Compile Include="AttackWander.cs" />
<Compile Include="ScaredyCat.cs" />
<Compile Include="Widgets\SidebarButtonWidget.cs" />
<Compile Include="Widgets\RadarWidget.cs" />
<Compile Include="ActorExts.cs" />
<Compile Include="Render\WithRotor.cs" />

View File

@@ -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);
}
}
}