Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions NodeController/GUI/TrafficRulesOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Binary file modified libs/CSUtil.Commons.dll
Binary file not shown.
Binary file modified libs/TMPE.API.dll
Binary file not shown.
Binary file modified libs/TrafficManager.dll
Binary file not shown.