add audio feedback on mouse-wheel and hotkey build palette cycle

This commit is contained in:
Matthias Mailänder
2013-12-07 12:20:07 +01:00
parent bcba26a04e
commit 316161a3e0

View File

@@ -515,6 +515,7 @@ namespace OpenRA.Mods.RA.Widgets
// NOTE: Always return true here to prevent mouse events from passing through the sidebar and interacting with the world behind it.
bool ChangeTab(bool reverse)
{
Sound.PlayNotification(null, "Sounds", "TabClick", null);
var queues = VisibleQueues.Concat(VisibleQueues);
if (reverse)
queues = queues.Reverse();