Add localisation support to transient lines.

This commit is contained in:
Matthias Mailänder
2023-08-19 12:57:21 +02:00
committed by Gustas
parent 43d1a20d8c
commit 1899eed839
44 changed files with 95 additions and 82 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Traits
if (!world.IsLoadingGameSave)
{
Game.Sound.PlayNotification(world.Map.Rules, null, "Speech", info.Notification, world.RenderPlayer?.Faction.InternalName);
TextNotificationsManager.AddTransientLine(info.TextNotification, null);
TextNotificationsManager.AddTransientLine(null, info.TextNotification);
}
}
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
if (!world.IsReplay)
{
Game.Sound.PlayNotification(world.Map.Rules, null, "Speech", info.LoadedNotification, world.RenderPlayer?.Faction.InternalName);
TextNotificationsManager.AddTransientLine(info.LoadedTextNotification, null);
TextNotificationsManager.AddTransientLine(null, info.LoadedTextNotification);
}
}
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Traits
if (!world.IsReplay)
{
Game.Sound.PlayNotification(world.Map.Rules, null, "Speech", info.SavedNotification, world.RenderPlayer?.Faction.InternalName);
TextNotificationsManager.AddTransientLine(info.SavedTextNotification, null);
TextNotificationsManager.AddTransientLine(null, info.SavedTextNotification);
}
}
}