From 15010f9567eb9b98a3ee2067bf307374de5751d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 9 Aug 2020 13:49:09 +0200 Subject: [PATCH] Fix production palette ignoring yaml font overrides. --- OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs b/OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs index 0d2f9079c5..6faf6fe56c 100644 --- a/OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ProductionPaletteWidget.cs @@ -151,9 +151,6 @@ namespace OpenRA.Mods.Common.Widgets cantBuild = new Animation(world, NotBuildableAnimation); cantBuild.PlayFetchIndex(NotBuildableSequence, () => 0); clock = new Animation(world, ClockAnimation); - - overlayFont = Game.Renderer.Fonts[OverlayFont]; - Game.Renderer.Fonts.TryGetValue(SymbolsFont, out symbolFont); } public override void Initialize(WidgetArgs args) @@ -162,6 +159,9 @@ namespace OpenRA.Mods.Common.Widgets hotkeys = Exts.MakeArray(HotkeyCount, i => modData.Hotkeys[HotkeyPrefix + (i + 1).ToString("D2")]); + + overlayFont = Game.Renderer.Fonts[OverlayFont]; + Game.Renderer.Fonts.TryGetValue(SymbolsFont, out symbolFont); } public void ScrollDown()