AddFactionSuffixLogic: add suffix to ProductionTabsWidget.Decorations
This commit is contained in:
@@ -45,6 +45,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
{
|
{
|
||||||
ptw.ArrowButton += suffix;
|
ptw.ArrowButton += suffix;
|
||||||
ptw.TabButton += 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;
|
ptw.Background += suffix;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ namespace OpenRA.Mods.Common.Widgets
|
|||||||
public string TabButton = "button";
|
public string TabButton = "button";
|
||||||
|
|
||||||
public string Background = "panel-black";
|
public string Background = "panel-black";
|
||||||
public readonly string Decorations = "scrollpanel-decorations";
|
public string Decorations = "scrollpanel-decorations";
|
||||||
public readonly string DecorationScrollLeft = "left";
|
public readonly string DecorationScrollLeft = "left";
|
||||||
public readonly string DecorationScrollRight = "right";
|
public readonly string DecorationScrollRight = "right";
|
||||||
CachedTransform<(bool Disabled, bool Pressed, bool Hover, bool Focused, bool Highlighted), Sprite> getLeftArrowImage;
|
CachedTransform<(bool Disabled, bool Pressed, bool Hover, bool Focused, bool Highlighted), Sprite> getLeftArrowImage;
|
||||||
|
|||||||
Reference in New Issue
Block a user