Fix missing click sounds on observer stat hotkeys.

This commit is contained in:
Paul Chote
2018-02-03 14:49:42 +00:00
committed by ltem
parent 8174d0e69a
commit 237d9b3a29
2 changed files with 2 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
if (statsHotkeys[i].IsActivatedBy(e))
{
Game.Sound.PlayNotification(modData.DefaultRules, null, "Sounds", "ClickSound", null);
OpenMenuPanel(stats, new WidgetArgs() { { "activePanel", i } });
return true;
}

View File

@@ -128,6 +128,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
if (statsHotkeys[i].IsActivatedBy(e))
{
Game.Sound.PlayNotification(modData.DefaultRules, null, "Sounds", "ClickSound", null);
statsDropDownOptions[i].OnClick();
return true;
}