diff --git a/NodeController/GUI/TrafficRulesOverlay.cs b/NodeController/GUI/TrafficRulesOverlay.cs index 314b6bc..26d8222 100644 --- a/NodeController/GUI/TrafficRulesOverlay.cs +++ b/NodeController/GUI/TrafficRulesOverlay.cs @@ -262,6 +262,7 @@ public bool DrawSignHandles(ushort nodeId, baseZoom: TMPEUtils.GetBaseZoom()); JunctionRestrictionsManager jrMan = JunctionRestrictionsManager.Instance; + RoadSignTheme theme = RoadSignThemeManager.ActiveTheme; #region UTURN // draw "u-turns allowed" sign at (1; 0) @@ -278,9 +279,7 @@ public bool DrawSignHandles(ushort nodeId, handleClick: configurable && handleClick_, camPos: ref camPos, guiColor: guiColor, - signTexture: allowed - ? JunctionRestrictions.Instance.UturnAllowed - : JunctionRestrictions.Instance.UturnForbidden); + signTexture: theme.GetOtherRestriction(RoadSignTheme.OtherRestriction.UTurn, allowed)); if (signHovered && handleClick_ && configurable) { isAnyHovered = true; @@ -317,9 +316,7 @@ public bool DrawSignHandles(ushort nodeId, handleClick: configurable && handleClick_, camPos: ref camPos, guiColor: guiColor, - signTexture: allowed - ? JunctionRestrictions.Instance.EnterBlockedJunctionAllowed - : JunctionRestrictions.Instance.EnterBlockedJunctionForbidden); + signTexture: theme.GetOtherRestriction(RoadSignTheme.OtherRestriction.EnterBlockedJunction, allowed)); if (signHovered && this.handleClick_ && configurable) { isAnyHovered = true; @@ -369,9 +366,7 @@ public bool DrawSignHandles(ushort nodeId, handleClick: configurable && handleClick_, camPos: ref camPos, guiColor: guiColor, - signTexture: allowed - ? JunctionRestrictions.Instance.PedestrianCrossingAllowed - : JunctionRestrictions.Instance.PedestrianCrossingForbidden); + signTexture: theme.GetOtherRestriction(RoadSignTheme.OtherRestriction.Crossing, allowed)); if (signHovered && this.handleClick_ && configurable) { isAnyHovered = true; diff --git a/libs/CSUtil.Commons.dll b/libs/CSUtil.Commons.dll index 958f0d8..2610bc3 100644 Binary files a/libs/CSUtil.Commons.dll and b/libs/CSUtil.Commons.dll differ diff --git a/libs/TMPE.API.dll b/libs/TMPE.API.dll index d5bd4c0..b84e9b7 100644 Binary files a/libs/TMPE.API.dll and b/libs/TMPE.API.dll differ diff --git a/libs/TrafficManager.dll b/libs/TrafficManager.dll index a08b0f4..8c125cc 100644 Binary files a/libs/TrafficManager.dll and b/libs/TrafficManager.dll differ