AddFactionSuffixLogic: add suffix to ProductionTabsWidget.Decorations

This commit is contained in:
michaeldgg2
2023-01-25 13:18:06 +01:00
committed by Gustas
parent 949b993a4a
commit 6f87c565ac
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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;