Rename Fluent-related code to be more precise.
This commit is contained in:
@@ -75,10 +75,10 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
|
||||
public readonly bool DrawTime = true;
|
||||
|
||||
[TranslationReference]
|
||||
[FluentReference]
|
||||
public string ReadyText = "";
|
||||
|
||||
[TranslationReference]
|
||||
[FluentReference]
|
||||
public string HoldText = "";
|
||||
|
||||
public readonly string InfiniteSymbol = "\u221E";
|
||||
@@ -178,9 +178,9 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
Game.Renderer.Fonts.TryGetValue(SymbolsFont, out symbolFont);
|
||||
|
||||
iconOffset = 0.5f * IconSize.ToFloat2() + IconSpriteOffset;
|
||||
HoldText = TranslationProvider.GetString(HoldText);
|
||||
HoldText = FluentProvider.GetString(HoldText);
|
||||
holdOffset = iconOffset - overlayFont.Measure(HoldText) / 2;
|
||||
ReadyText = TranslationProvider.GetString(ReadyText);
|
||||
ReadyText = FluentProvider.GetString(ReadyText);
|
||||
readyOffset = iconOffset - overlayFont.Measure(ReadyText) / 2;
|
||||
|
||||
if (ChromeMetrics.TryGet("InfiniteOffset", out infiniteOffset))
|
||||
|
||||
Reference in New Issue
Block a user