Add unit guarding

This commit is contained in:
Scott_NZ
2013-05-16 21:23:58 +12:00
parent 942946f1b1
commit 6e5d58379f
9 changed files with 154 additions and 8 deletions

View File

@@ -208,6 +208,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
SetupKeyBinding(deployKey, "Deploy:", () => keyConfig.DeployKey, k => keyConfig.DeployKey = k);
unitCommandHotkeyList.AddChild(deployKey);
var guardKey = ScrollItemWidget.Setup(unitCommandHotkeyTemplate, () => false, () => { });
SetupKeyBinding(guardKey, "Guard: ", () => keyConfig.GuardKey, k => keyConfig.GuardKey = k);
unitCommandHotkeyList.AddChild(guardKey);
// Debug
var debug = bg.Get("DEBUG_PANE");