Add support for transient text notifications matching speech notifications
This commit is contained in:
committed by
Paul Chote
parent
9f723be65a
commit
24b9482cc1
@@ -180,6 +180,8 @@ namespace OpenRA.Mods.Common.Orders
|
||||
if (!AcceptsPlug(topLeft, plugInfo))
|
||||
{
|
||||
Game.Sound.PlayNotification(world.Map.Rules, owner, "Speech", notification, owner.Faction.InternalName);
|
||||
TextNotificationsManager.AddTransientLine(placeBuildingInfo.CannotPlaceTextNotification, owner);
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
@@ -192,6 +194,8 @@ namespace OpenRA.Mods.Common.Orders
|
||||
yield return order;
|
||||
|
||||
Game.Sound.PlayNotification(world.Map.Rules, owner, "Speech", notification, owner.Faction.InternalName);
|
||||
TextNotificationsManager.AddTransientLine(placeBuildingInfo.CannotPlaceTextNotification, owner);
|
||||
|
||||
yield break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user