Add localisation support to transient lines.
This commit is contained in:
committed by
Gustas
parent
43d1a20d8c
commit
1899eed839
@@ -99,12 +99,12 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (activated)
|
||||
{
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, manager.Self.Owner, "Speech", info.ReadyAudio, self.Owner.Faction.InternalName);
|
||||
TextNotificationsManager.AddTransientLine(info.ReadyTextNotification, manager.Self.Owner);
|
||||
TextNotificationsManager.AddTransientLine(manager.Self.Owner, info.ReadyTextNotification);
|
||||
}
|
||||
else
|
||||
{
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, manager.Self.Owner, "Speech", info.BlockedAudio, self.Owner.Faction.InternalName);
|
||||
TextNotificationsManager.AddTransientLine(info.BlockedTextNotification, manager.Self.Owner);
|
||||
TextNotificationsManager.AddTransientLine(manager.Self.Owner, info.BlockedTextNotification);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user