Commit Graph

18 Commits

Author SHA1 Message Date
dominik-korsa
2b94c0efaa
Align the view to a straight track on double click
This feature will be useful when exporting the visualization to an SVG file
2025-07-19 16:33:43 +02:00
dominik-korsa
b137af2843
Don't mark route tracks as derailing tracks 2025-07-12 18:28:57 +02:00
dominik-korsa
f9ef9de7ef
Do not render 0-length tracks 2025-07-12 17:07:40 +02:00
dominik-korsa
e78c1ccde5
Add route track rendering 2025-07-12 15:36:13 +02:00
izawartka
9b9262973f Optimized track slope gradients
*Slope track color mode now doesn't use gradients unless the slope is different on both track ends
2025-06-25 14:31:16 +02:00
izawartka
f3564c8c07 Red switches bugfix
*Fixed switches sometimes being shown as derail tracks in the max speed color mode
2025-06-24 21:24:12 +02:00
izawartka
66eae33e80 Added track hover info
+Added a popup showing hovered track's info
2025-06-24 21:09:43 +02:00
izawartka
715a8ffc7c Added track color mode legend
+Added track color mode legend
*Refactored track color mode resolving
*Renamed SelTrackColorMode to TrackColorModeSelect and moved it to a separate directory
2025-06-24 18:03:16 +02:00
izawartka
0666ee7c60 Electrification resolver improvements
+Added an option to disable electrification resolution in Constants
+Scenery class now has an electrificationResolved field, set by the resolver
*Improved error and warning handling during electrification resolution
*ElectrificationStatus is no longer the default export of its file
*Renamed ElectrificationStatus.ERROR to .CONFLICT
2025-06-21 14:56:29 +02:00
izawartka
c6d0bc4e41 Added electrification resolution
+Added tracks electrification resolution (EXPERIMENTAL)
+Added Vector3.mannhattanDistance()
+Added Route.points (connection points for the route tracks)
*Fixed Route.track_offset sometimes being NaN
2025-06-21 12:27:27 +02:00
izawartka
c29208b217 Track max speed tweaks
*In the "Max speed" track coloring mode, tracks with a maximum speed or derail speed of 0 are now displayed in red
*Fixed an issue where max_speed and derailspeed of Track objects could sometimes be NaN
2025-06-18 21:44:57 +02:00
izawartka
e023d6c9ff Added track max speed color mode
+Added an option to color the tracks based on their max speed
2025-06-11 11:05:39 +02:00
izawartka
ea23a691bf Made tracks more visible at smaller scales
*Made all tracks at least 1px wide, even at small scales, which improves their visibility
2025-06-08 13:34:40 +02:00
izawartka
7ec6af8c41 Needless rerenders fix
*Fixed needless rerenders of LayersMenu, SceneryLayer, SceneryRoot and TrackRenderer components when settings change
2025-06-08 12:51:40 +02:00
izawartka
f95a38f96c Invisible tracks indication
+Added prefab_name field in the Track class and track_prefab_name in the Switch class
*Invisible tracks are now drawn in gray instead of being completely skipped
2025-06-04 14:13:33 +02:00
izawartka
0b77a5a782 Tracks color indication, slope calculations
+Added option to color the tracks by type or their slope
*Slightly refactored TrackRenderer component
*Fixed points calculations in StandardTrack to include track's slope
2025-06-01 14:36:42 +02:00
izawartka
b76752e40d Added Vector3 class, code cleanup
+Added Vector3 class and replaced all position and angle values with it to clean up the code
*Minor bugfixes and code cleanup
2025-06-01 01:54:26 +02:00
izawartka
d78e72fc49 Initial commit 2025-05-29 13:11:22 +02:00