bring back click sound for TAB and PageUp/Down
This commit is contained in:
@@ -279,9 +279,15 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
var hotkey = Hotkey.FromKeyInput(e);
|
var hotkey = Hotkey.FromKeyInput(e);
|
||||||
|
|
||||||
if (hotkey == Game.Settings.Keys.NextProductionTabKey)
|
if (hotkey == Game.Settings.Keys.NextProductionTabKey)
|
||||||
|
{
|
||||||
|
Sound.PlayNotification(world.Map.Rules, null, "Sounds", "ClickSound", null);
|
||||||
return SelectNextTab(false);
|
return SelectNextTab(false);
|
||||||
|
}
|
||||||
else if (hotkey == Game.Settings.Keys.PreviousProductionTabKey)
|
else if (hotkey == Game.Settings.Keys.PreviousProductionTabKey)
|
||||||
|
{
|
||||||
|
Sound.PlayNotification(world.Map.Rules, null, "Sounds", "ClickSound", null);
|
||||||
return SelectNextTab(true);
|
return SelectNextTab(true);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -227,6 +227,8 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
|
|
||||||
world.Selection.Combine(world, new Actor[] { next }, false, true);
|
world.Selection.Combine(world, new Actor[] { next }, false, true);
|
||||||
|
|
||||||
|
Sound.PlayNotification(world.Map.Rules, null, "Sounds", "ClickSound", null);
|
||||||
|
|
||||||
return ToSelection();
|
return ToSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user