Commit Graph

332 Commits

Author SHA1 Message Date
izawartka
d5fe2dc71d 1.6.0 Release tweaks
*Changed buildVersion to 1.6.0
*Updated README.md
2025-08-02 00:45:59 +02:00
izawartka
60488037fe Added W22 signal sign
+Added a definition and an icon for the W22 signal sign
2025-08-01 14:01:27 +02:00
izawartka
3824ae1463 Tweaked sign render conditions
*SignRenderer now won't render a sign that has no icon field in its definition - this is to allow for attachable-only signs
2025-08-01 14:00:51 +02:00
izawartka
407a787e75 Fixed SpawnInfo parsing
*Fixed SpawnInfo.fromText using 1 as the start index instead of 0
2025-07-31 23:03:20 +02:00
izawartka
17b2c89fad Added W21 sign
+Added the definition and icon for a freestanding version of the W21 sign
*Moved the definition of the W20 sign
2025-07-31 22:55:09 +02:00
izawartka
6b51882173 Added new signal signs
+Added definitions for signal signs w2k, w2s, w26a, w26b
*Renamed signal sign w21x to w21_led
*Made w21 sign use a shared rect.svg icon and a static text
2025-07-31 22:52:43 +02:00
izawartka
d600237db1 Added constant Signal Sign texts
+Signal sign definitions can now include "text" field - a static string displayed on the sign
2025-07-31 22:48:49 +02:00
izawartka
5e8a943954 Added Sign text caching
+Added the Sign.text field, assigned when the object is created
*Modified SignRenderer to use Sign.text instead of looking for the text on every render
*Sign texts are now transferred to Signal Signs when the Sign is assigned to a Signal
2025-07-31 22:45:52 +02:00
izawartka
547429e273 Improved signal names parsing
*Improved Signal.getPrintableSignalName to cut all text before the last underscore
2025-07-28 01:31:55 +02:00
izawartka
c996520b5a Fixed extended signals showing unknown columns
*Fixed SignalElementsParserCommon.getUnits not cutting off leading unknown units
2025-07-28 01:31:08 +02:00
izawartka
85eeca11f9 Fixed track view align
*Fixed user being able to align the view on bezier tracks
2025-07-27 22:37:23 +02:00
izawartka
7ffdf87409 Added original signal names option
+Added an option to show original (internal) signal names
2025-07-27 22:34:17 +02:00
izawartka
a624e092eb Added url params support
+Added option to load a scenery by specifying its name in the "scenery" URL parameter
2025-07-27 14:48:48 +02:00
izawartka
95ec3898ad Refactored scenery list logic
*Moved scenery list logic from SceneriesList to SceneryManager
*Renamed SceneriesList to SceneryList
*Updated InfoFooter texts
-Removed sceneriesListService as it is not necessary anymore
2025-07-27 13:59:22 +02:00
izawartka
e10b410f4f QuestionMarkIcon fix
-Removed QuestionMarkIcon stop-color attribute
2025-07-26 18:03:47 +02:00
izawartka
032d93a51c DistanceMeter bugfix
*Fixed DistanceMeter not reseting on scenery change
2025-07-26 18:03:47 +02:00
izawartka
6bd954ccb0 Refactored scenery state and loading logic
*Organized scenery related state and functions into SceneryManager and SceneryContext
*Fully moved scenery loading logic to SceneryManager
*Moved side menu state to SideMenuContext
*Moved stateless content of the App component to AppContent
2025-07-26 18:03:47 +02:00
izawartka
99093d35be Added TracksConnectionTest ignore Y axis option
*Added an option to ignore Y distance between connected tracks during the TracksConnectionTest
2025-07-26 18:03:47 +02:00
izawartka
18e682559d Updated Platform regex
*Updated Platform regex to exclude platform covers
2025-07-26 00:36:46 +02:00
izawartka
4131401fe6 Fixed scp.py
*Fixed scp.py allowing for any Misc object (instead of just SignalBoxes and Plaforms)
2025-07-25 20:38:38 +02:00
izawartka
05576e79ee Minor tweaks
*Tweaked electrificationConflict warning message
*Fixed no-unused-vars warning showing up in Switch._createTrackConnections
2025-07-25 17:51:42 +02:00
izawartka
f38dbe5cd3 Icons params fix
*Fixed TrackHoverInfo icons to use JSX params instead of html attributes
2025-07-25 17:50:49 +02:00
izawartka
0716440462 TrackHoverInfo tweaks
+Added optional display of the track ID in TrackHoverInfo (disabled by default)
*Renamed the shape "Circle arc" to "Curve" in TrackHoverInfo
-Removed the display of station_id and source in TrackHoverInfo
2025-07-25 17:49:54 +02:00
izawartka
58a51297c4 Improved SignalBox labels
*Moved SignalBox labels into a separate component
*SignalBoxEmpty labels now rotate towards the camera
2025-07-25 17:39:35 +02:00
izawartka
634922986e Improved and optimized label texts
+Added additionalRot prop to the SimpleLabelText component
+Added additionalPreRot prop to the AlwaysUpText component
*Optimized AlwaysUpText to not re-render everytime camera angle changes
2025-07-25 17:37:21 +02:00
izawartka
3922d925d7 Added TrackHoverInfo icons
+Added TrackHoverInfo icons
*Reorganised TrackHoverInfo entries
2025-07-25 01:54:42 +02:00
Igor Zawartka
67c64ca838
Merge pull request #5 from dominik-korsa/prefab-parser
Add a prefab-parser.py script and use it for switch prefabs
2025-07-24 23:58:07 +02:00
izawartka
77bd1a8770 Fixed W9, W14 and W15 signs
+Added a definition and an icon for sign_w9_v2 sign
*Fixed some one-sided W9 signs being incorrectly parsed as double-sided
*Fixed some one-sided W14 signs being incorrectly parsed as double-sided
*Fixed W15 signs sometimes having the arrow pointing in the wrong direction
2025-07-24 23:56:51 +02:00
dominik-korsa
f55ed15145
Fix accidental rename during refactoring 2025-07-24 22:53:25 +02:00
dominik-korsa
318e61be46
Use degToRad/radToDeg methods from AngleHelper where possible 2025-07-24 22:52:45 +02:00
dominik-korsa
a453c314bd
Rename rotation{DegToRad, RadToDeg} to vector{DegToRad, RadToDeg} 2025-07-24 22:39:10 +02:00
dominik-korsa
1f806005aa
Remove TrackSource.BEZIER and create TrackShape enum 2025-07-24 22:36:03 +02:00
izawartka
18c72c0689 1.5.0 Release tweaks
*Changed buildVersion to 1.5.0
2025-07-23 03:09:03 +02:00
izawartka
ec29f33835 Update list.py
*Updated list.py to sort the list before saving
2025-07-23 03:08:12 +02:00
izawartka
7578202e18 Improved camera hook
+When the scenery loads, the view is now rotated to match the orientation of the main SignalBox
+When the scenery loads, the zoom is set to the default value (5)
+When clicking on a SignalBox, the camera rotation is set according to its orientation
*Renamed the onCenter hook to setCamera and added rot and zoom options
2025-07-23 02:53:47 +02:00
izawartka
607599479e Added SignalBox.getFinalRotation()
+Added SignalBox.getFinalRotation()
2025-07-23 02:49:08 +02:00
izawartka
4c7e917ba5 Minor fixes and tweaks
*Changed view align to work with switch and route tracks
*Changed spawn-points layer display name
-Removed comments in useZoomPubSub.js
-Removed redundant import in misc.js
2025-07-23 01:52:45 +02:00
dominik-korsa
f52800c81d
Fix isolation IDs rendering for all switch tracks 2025-07-23 01:50:48 +02:00
dominik-korsa
9e5e6ab7cb
Merge branch 'main' into prefab-parser
# Conflicts:
#	src/components/map/object-renderers/TrackRenderer.js
#	src/components/map/track-hover-info/TrackHoverInfoPopup.js
#	src/helpers/angleHelper.js
2025-07-23 01:44:25 +02:00
dominik-korsa
642ee1cd8f
Rename QuaternionPrefabParser back to Quaternion 2025-07-23 01:23:52 +02:00
dominik-korsa
1e5ba083a8
Migrate all uses of Quaternion to QuaternionPrefabParser 2025-07-23 01:22:03 +02:00
Igor Zawartka
08a7d66490
Merge pull request #8 from dominik-korsa/align-track
Align the view to a straight track on double click
2025-07-23 01:18:22 +02:00
dominik-korsa
d60184c8cc
Fix wrong Quaternion class use in vector3.js 2025-07-23 01:10:22 +02:00
dominik-korsa
3aec232bf0
Fix wrong Quaternion class use in some places 2025-07-23 01:07:44 +02:00
dominik-korsa
b7c71e37ac
Merge branch 'main' into prefab-parser
# Conflicts:
#	src/components/map/object-renderers/TrackRenderer.js
#	src/helpers/miscHelper.js
2025-07-23 01:03:59 +02:00
dominik-korsa
9a04a7b2a8
Rename Quaternion filename and class to avoid merge conflict 2025-07-23 00:59:33 +02:00
dominik-korsa
de6d3aa5dc
Use ZoomPanEmitter/Subscriber instead of a context for aligning the view 2025-07-23 00:44:13 +02:00
dominik-korsa
2e1947a7d4
Reindent TrackRenderer.js to use 4 spaces 2025-07-23 00:24:29 +02:00
dominik-korsa
a653a5ac2e
Merge branch 'refs/heads/main' into align-track
# Conflicts:
#	src/components/map/object-renderers/TrackRenderer.js
2025-07-23 00:23:25 +02:00
Igor Zawartka
7a2c969489
Merge pull request #9 from dominik-korsa/elevation-map
Start elevation legend at 0
2025-07-23 00:18:21 +02:00