Add a ShowActorTags property to DeveloperMode

This commit is contained in:
Pavel Penev
2015-11-22 22:16:10 +02:00
parent 4bbb406d4d
commit 6217ec0360
2 changed files with 10 additions and 0 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)