From 237d9b3a29c3f82106144145464c6533f33a19e6 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 3 Feb 2018 14:49:42 +0000 Subject: [PATCH] Fix missing click sounds on observer stat hotkeys. --- .../Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs | 1 + OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverStatsLogic.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs index 77e709734d..25db464cae 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/MenuButtonsChromeLogic.cs @@ -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; } diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverStatsLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverStatsLogic.cs index 1fec5bbe28..6ad38bd85b 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverStatsLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/ObserverStatsLogic.cs @@ -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; }