Kill MapStub

This commit is contained in:
Paul Chote
2011-02-11 21:21:02 +13:00
parent 73020a9419
commit c2db816837
8 changed files with 79 additions and 112 deletions

View File

@@ -19,7 +19,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
{
public class MapChooserDelegate : IWidgetDelegate
{
MapStub Map = null;
Map Map = null;
Widget scrollpanel;
Widget itemTemplate;

View File

@@ -57,7 +57,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
widget.GetWidget("REPLAY_INFO").IsVisible = () => currentReplay != null;
}
MapStub MapStubFromSummary(ReplaySummary rs)
Map MapFromSummary(ReplaySummary rs)
{
if (rs.LobbyInfo == null)
return null;
@@ -81,7 +81,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
try
{
var summary = new ReplaySummary(currentReplay);
var mapStub = MapStubFromSummary(summary);
var mapStub = MapFromSummary(summary);
widget.GetWidget<LabelWidget>("DURATION").GetText =
() => WidgetUtils.FormatTime(summary.Duration * 3 /* todo: 3:1 ratio isnt always true. */);

View File

@@ -98,7 +98,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
};
}
MapStub CurrentMap()
Map CurrentMap()
{
return (currentServer == null || !Game.modData.AvailableMaps.ContainsKey(currentServer.Map))
? null : Game.modData.AvailableMaps[currentServer.Map];