Rename ListBoxWidget -> ScrollPanelWidget.

This commit is contained in:
Paul Chote
2010-11-26 10:43:09 +13:00
parent 58a92de5a1
commit 7182908728
19 changed files with 24 additions and 24 deletions

View File

@@ -165,7 +165,6 @@
<Compile Include="Widgets\ImageWidget.cs" />
<Compile Include="Widgets\TextFieldWidget.cs" />
<Compile Include="Widgets\ChatDisplayWidget.cs" />
<Compile Include="Widgets\ListBoxWidget.cs" />
<Compile Include="Widgets\SliderWidget.cs" />
<Compile Include="Widgets\TimerWidget.cs" />
<Compile Include="Widgets\ShpImageWidget.cs" />
@@ -182,6 +181,7 @@
<Compile Include="Traits\Armor.cs" />
<Compile Include="Graphics\CursorProvider.cs" />
<Compile Include="Server\TraitInterfaces.cs" />
<Compile Include="Widgets\ScrollPanelWidget.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">

View File

@@ -122,7 +122,7 @@ namespace OpenRA.Widgets
Widget.RootWidget.AddChild(fullscreenMask);
var origin = w.RenderOrigin;
var dropDown = new ListBoxWidget
var dropDown = new ScrollPanelWidget
{
Bounds = new Rectangle(w.RenderOrigin.X, w.RenderOrigin.Y + w.Bounds.Height, w.Bounds.Width, 100),
Visible = true,

View File

@@ -13,7 +13,7 @@ using OpenRA.Graphics;
namespace OpenRA.Widgets
{
public class ListBoxWidget : Widget
public class ScrollPanelWidget : Widget
{
public readonly string Background = "dialog3";
public readonly int ScrollbarWidth = 24;
@@ -30,8 +30,8 @@ namespace OpenRA.Widgets
Rectangle backgroundRect;
Rectangle scrollbarRect;
public ListBoxWidget() : base() {}
protected ListBoxWidget(ListBoxWidget other)
public ScrollPanelWidget() : base() {}
protected ScrollPanelWidget(ScrollPanelWidget other)
: base(other)
{
Background = other.Background;
@@ -115,6 +115,6 @@ namespace OpenRA.Widgets
return (UpPressed || DownPressed);
}
public override Widget Clone() { return new ListBoxWidget(this); }
public override Widget Clone() { return new ScrollPanelWidget(this); }
}
}