Added quick build feature

This commit is contained in:
sinf
2015-04-25 14:58:13 +03:00
parent f6051b1e2b
commit 5991a9b439
4 changed files with 87 additions and 45 deletions

View File

@@ -38,6 +38,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
// When a tab is selected, scroll to the top because the current row position may be invalid for the new tab
palette.ScrollToTop();
// Attempt to pick up a completed building (if there is one) so it can be placed
palette.PickUpCompletedBuilding();
};
Func<ButtonWidget, Hotkey> getKey = _ => Hotkey.Invalid;