Merge pull request #10078 from penev92/actorNameOverlay

Add an actor name overlay debug option
This commit is contained in:
RoosterDragon
2015-12-08 21:16:26 +00:00
14 changed files with 213 additions and 11 deletions

View File

@@ -126,6 +126,13 @@ namespace OpenRA.Mods.Common.Widgets.Logic
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)
{
showActorTagsCheckbox.IsChecked = () => devTrait.ShowActorTags;
showActorTagsCheckbox.OnClick = () => devTrait.ShowActorTags ^= true;
}
}
public void Order(World world, string order)