Kill MapStub
This commit is contained in:
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|
||||
{
|
||||
public class MapChooserDelegate : IWidgetDelegate
|
||||
{
|
||||
MapStub Map = null;
|
||||
Map Map = null;
|
||||
Widget scrollpanel;
|
||||
Widget itemTemplate;
|
||||
|
||||
|
||||
@@ -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. */);
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user