CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
574 stars 85 forks source link

routing detector tool #1534

Closed kianzarrin closed 2 years ago

kianzarrin commented 2 years ago

image it shows different lane transitions type with different colors. when you hover over target lane it shows list of all transitions to that lane.

TODO:

Future:

TMPE.zip

originalfoo commented 2 years ago

Is this just for dev/debug, or is it aimed at end-users?

EDIT: Debug only - I suggest just re-use existing icons for button, rather than adding new ones, to avoid further filesize bloat of the mod.

kianzarrin commented 2 years ago

@aubergine10

I'd remove TLM/TLM/UI/MainMenu/MainMenuPanel.cs before merge.

That is what I did. it was an empty file so I just deleted it :). that is why it is showing here.

I suggest just re-use existing icons

But then how can you tell the difference between different tools? these icons are not too big. EDIT: I will include the files conditionally: https://github.com/CitiesSkylinesMods/TMPE/pull/1534/commits/3587b21937a387373c9cbd58322d122b5599c7dc

krzychu124 commented 2 years ago

Select node, hover above an outgoing lane (any without white circle):

NullReferenceException: Object reference not set to an instance of an object
  at TrafficManager.UI.SubTools.RoutingDetector.RoutingDetectorTool.RenderActiveToolOverlay (.CameraInfo cameraInfo) [0x00000] in <filename unknown>:0 
  at TrafficManager.UI.TrafficManagerTool.RenderOverlayImpl (.CameraInfo cameraInfo) [0x00000] in <filename unknown>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
TrafficManager.Util.Shortcuts:LogException(Exception, Boolean)
TrafficManager.UI.TrafficManagerTool:RenderOverlayImpl(CameraInfo)
TrafficManager.UI.TrafficManagerTool:RenderOverlay(CameraInfo)
ToolManager:EndOverlayImpl(CameraInfo)
SimulationManagerBase`2:EndOverlay(CameraInfo)
ToolManager:IRenderableManager.EndOverlay(CameraInfo)
RenderManager:Managers_RenderOverlay(CameraInfo)
OverlayEffect:OnPostRender()