Add SpeechNotifications for InsufficientPower and Launch on support powers
This commit is contained in:
@@ -114,7 +114,11 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
protected void ClickIcon(SupportPowerIcon clicked)
|
||||
{
|
||||
if (!clicked.Power.Active)
|
||||
{
|
||||
Game.Sound.PlayToPlayer(spm.Self.Owner, clicked.Power.Info.InsufficientPowerSound);
|
||||
Game.Sound.PlayNotification(spm.Self.World.Map.Rules, spm.Self.Owner, "Speech",
|
||||
clicked.Power.Info.InsufficientPowerSpeechNotification, spm.Self.Owner.Faction.InternalName);
|
||||
}
|
||||
else
|
||||
clicked.Power.Target();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user