Add a debug visualization for muzzle positions.

This commit is contained in:
Paul Chote
2013-03-29 14:11:40 +13:00
parent 5bd34bda22
commit 0cff8b5b12
11 changed files with 118 additions and 3 deletions

View File

@@ -41,6 +41,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
fastChargeCheckbox.IsChecked = () => devTrait.FastCharge;
fastChargeCheckbox.OnClick = () => Order(world, "DevFastCharge");
var showMuzzlesCheckbox = widget.Get<CheckboxWidget>("SHOW_MUZZLES");
showMuzzlesCheckbox.IsChecked = () => devTrait.ShowMuzzles;
showMuzzlesCheckbox.OnClick = () => devTrait.ShowMuzzles ^= true;
var allTechCheckbox = widget.Get<CheckboxWidget>("ENABLE_TECH");
allTechCheckbox.IsChecked = () => devTrait.AllTech;
allTechCheckbox.OnClick = () => Order(world, "DevEnableTech");