Add localisation support to transient lines.
This commit is contained in:
committed by
Gustas
parent
43d1a20d8c
commit
1899eed839
@@ -449,19 +449,19 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (isBuilding && !hasPlayedSound)
|
||||
{
|
||||
hasPlayedSound = Game.Sound.PlayNotification(rules, self.Owner, "Speech", Info.ReadyAudio, self.Owner.Faction.InternalName);
|
||||
TextNotificationsManager.AddTransientLine(Info.ReadyTextNotification, self.Owner);
|
||||
TextNotificationsManager.AddTransientLine(self.Owner, Info.ReadyTextNotification);
|
||||
}
|
||||
else if (!isBuilding)
|
||||
{
|
||||
if (BuildUnit(unit))
|
||||
{
|
||||
Game.Sound.PlayNotification(rules, self.Owner, "Speech", Info.ReadyAudio, self.Owner.Faction.InternalName);
|
||||
TextNotificationsManager.AddTransientLine(Info.ReadyTextNotification, self.Owner);
|
||||
TextNotificationsManager.AddTransientLine(self.Owner, Info.ReadyTextNotification);
|
||||
}
|
||||
else if (!hasPlayedSound && time > 0)
|
||||
{
|
||||
hasPlayedSound = Game.Sound.PlayNotification(rules, self.Owner, "Speech", Info.BlockedAudio, self.Owner.Faction.InternalName);
|
||||
TextNotificationsManager.AddTransientLine(Info.BlockedTextNotification, self.Owner);
|
||||
TextNotificationsManager.AddTransientLine(self.Owner, Info.BlockedTextNotification);
|
||||
}
|
||||
}
|
||||
})), !order.Queued);
|
||||
|
||||
Reference in New Issue
Block a user