Remove legacy A* visualisation.

This commit is contained in:
Paul Chote
2016-08-25 19:45:18 +01:00
parent b3c4ecd7c5
commit 32eb98c17d
13 changed files with 12 additions and 152 deletions

View File

@@ -120,14 +120,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
noexplorationButton.OnClick = () =>
world.IssueOrder(new Order("DevResetExploration", world.LocalPlayer.PlayerActor, false));
var dbgOverlay = world.WorldActor.TraitOrDefault<PathfinderDebugOverlay>();
var showAstarCostCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_ASTAR");
if (showAstarCostCheckbox != null)
{
showAstarCostCheckbox.IsChecked = () => dbgOverlay != null ? dbgOverlay.Visible : false;
showAstarCostCheckbox.OnClick = () => { if (dbgOverlay != null) dbgOverlay.Visible ^= true; };
}
var showActorTagsCheckbox = widget.GetOrNull<CheckboxWidget>("SHOW_ACTOR_TAGS");
if (showActorTagsCheckbox != null)
{