Rename widgets
This commit is contained in:
@@ -21,13 +21,13 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
{
|
||||
widget.Get<LabelWidget>("VERSION_LABEL").Text = Game.modData.Manifest.Mod.Version;
|
||||
|
||||
var panelName = "LEAVE_RESTART_SIMPLE";
|
||||
var panelName = "LEAVE_MAP_SIMPLE";
|
||||
|
||||
var iop = world.WorldActor.TraitsImplementing<IObjectivesPanel>().FirstOrDefault();
|
||||
var showObjectives = iop != null && iop.PanelName != null && world.LocalPlayer != null;
|
||||
|
||||
if (showObjectives)
|
||||
panelName = "LEAVE_RESTART_FULL";
|
||||
panelName = "LEAVE_MAP_FULL";
|
||||
|
||||
var showStats = false;
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
Action ShowLeaveRestartDialog = () =>
|
||||
{
|
||||
ingameRoot.RemoveChildren();
|
||||
Game.LoadWidget(world, "LEAVE_RESTART_WIDGET", Ui.Root, new WidgetArgs());
|
||||
Game.LoadWidget(world, "LEAVE_MAP_WIDGET", Ui.Root, new WidgetArgs());
|
||||
};
|
||||
world.GameOver += ShowLeaveRestartDialog;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user