From 2050d55b213c1531509ee3483129b9d8dcc443de Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:44:09 +0200 Subject: [PATCH] Add player's name to super weapon timers --- OpenRA.Mods.Common/Widgets/SupportPowerTimerWidget.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/SupportPowerTimerWidget.cs b/OpenRA.Mods.Common/Widgets/SupportPowerTimerWidget.cs index 090d28e54b..4b3430199e 100644 --- a/OpenRA.Mods.Common/Widgets/SupportPowerTimerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/SupportPowerTimerWidget.cs @@ -21,7 +21,7 @@ namespace OpenRA.Mods.Common.Widgets public class SupportPowerTimerWidget : Widget { public readonly string Font = "Bold"; - public readonly string Format = "{0}: {1}"; + public readonly string Format = "{0}'s {1}: {2}"; public readonly TextAlign Align = TextAlign.Left; public readonly TimerOrder Order = TimerOrder.Descending; @@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Widgets { var self = p.Instances[0].Self; var time = WidgetUtils.FormatTime(p.RemainingTicks, false, self.World.Timestep); - var text = Format.F(p.Info.Name, time); + var text = Format.F(self.Owner.PlayerName, p.Info.Name, time); var playerColor = self.Owner.Color; if (Game.Settings.Game.UsePlayerStanceColors)