Remove FluentBundle.Arguments helper method.

This commit is contained in:
Paul Chote
2024-10-02 22:40:05 +01:00
committed by Gustas
parent b29b685058
commit d6285affec
71 changed files with 273 additions and 283 deletions

View File

@@ -59,7 +59,10 @@ namespace OpenRA.Mods.Common.Widgets
{
var self = p.Instances[0].Self;
var time = WidgetUtils.FormatTime(p.RemainingTicks, false, self.World.Timestep);
var text = FluentProvider.GetString(Format, FluentBundle.Arguments("player", self.Owner.ResolvedPlayerName, "support-power", p.Name, "time", time));
var text = FluentProvider.GetString(Format,
"player", self.Owner.ResolvedPlayerName,
"support-power", p.Name,
"time", time);
var color = !p.Ready || Game.LocalTick % 50 < 25 ? self.OwnerColor() : Color.White;