bring back click sound for TAB and PageUp/Down

This commit is contained in:
Matthias Mailänder
2014-08-24 08:29:19 +02:00
parent ac1544e8bd
commit 97b97a4dd2
2 changed files with 8 additions and 0 deletions

View File

@@ -279,9 +279,15 @@ namespace OpenRA.Mods.RA.Widgets
var hotkey = Hotkey.FromKeyInput(e);
if (hotkey == Game.Settings.Keys.NextProductionTabKey)
{
Sound.PlayNotification(world.Map.Rules, null, "Sounds", "ClickSound", null);
return SelectNextTab(false);
}
else if (hotkey == Game.Settings.Keys.PreviousProductionTabKey)
{
Sound.PlayNotification(world.Map.Rules, null, "Sounds", "ClickSound", null);
return SelectNextTab(true);
}
return false;
}