diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/AddFactionSuffixLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/AddFactionSuffixLogic.cs index 09384449ec..c51162732a 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/AddFactionSuffixLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/AddFactionSuffixLogic.cs @@ -45,6 +45,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic { ptw.ArrowButton += suffix; ptw.TabButton += suffix; + + // TODO: This isn't functional, ProductionTabsWidget's caches aren't updated with the new values. + ptw.Decorations += suffix; ptw.Background += suffix; } else diff --git a/OpenRA.Mods.Common/Widgets/ProductionTabsWidget.cs b/OpenRA.Mods.Common/Widgets/ProductionTabsWidget.cs index c31e0b0daf..95dde77eb5 100644 --- a/OpenRA.Mods.Common/Widgets/ProductionTabsWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ProductionTabsWidget.cs @@ -85,7 +85,7 @@ namespace OpenRA.Mods.Common.Widgets public string TabButton = "button"; public string Background = "panel-black"; - public readonly string Decorations = "scrollpanel-decorations"; + public string Decorations = "scrollpanel-decorations"; public readonly string DecorationScrollLeft = "left"; public readonly string DecorationScrollRight = "right"; CachedTransform<(bool Disabled, bool Pressed, bool Hover, bool Focused, bool Highlighted), Sprite> getLeftArrowImage;