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))
|
if (statsHotkeys[i].IsActivatedBy(e))
|
||||||
{
|
{
|
||||||
|
Game.Sound.PlayNotification(modData.DefaultRules, null, "Sounds", "ClickSound", null);
|
||||||
OpenMenuPanel(stats, new WidgetArgs() { { "activePanel", i } });
|
OpenMenuPanel(stats, new WidgetArgs() { { "activePanel", i } });
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
{
|
{
|
||||||
if (statsHotkeys[i].IsActivatedBy(e))
|
if (statsHotkeys[i].IsActivatedBy(e))
|
||||||
{
|
{
|
||||||
|
Game.Sound.PlayNotification(modData.DefaultRules, null, "Sounds", "ClickSound", null);
|
||||||
statsDropDownOptions[i].OnClick();
|
statsDropDownOptions[i].OnClick();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user