Merge pull request #8021 from sinf/quickbuild

Added quick build feature
This commit is contained in:
Pavel Penev
2015-05-08 17:53:57 +03:00
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;