Fix missing click sounds on observer stat hotkeys.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user