Commit Graph

326 Commits

Author SHA1 Message Date
izawartka
b68d4e76c0 Add embedded dialogs
- Extracted DialogManager component selection to utils/getDialogComponent
- Added EmbeddedDialog
- Updated DialogManager to use EmbeddedDialog instead of Dialog if an app is running in embedded mode
2026-07-29 19:47:28 +02:00
izawartka
895a294098 Add EmbeddedContext
- Added EmbeddedContext and ?embeded=true param support
2026-07-29 19:44:18 +02:00
izawartka
6a0f945a0d Set view to main signalbox on load
- Updated scenery loading to set the view to main signalbox on scenery load
2026-07-28 17:38:58 +02:00
izawartka
e9960c4839 1.7.1 Release tweaks
- Bumped up version to 1.7.1
2026-01-14 23:51:58 +01:00
izawartka
9622bc87fc Add scenery info version 30 support
+Added support for scenery info version 30 (sceneries with info version 29 are still supported)
+Added UUID field in SceneryInfoView
2026-01-14 23:50:01 +01:00
izawartka
91173c13c1 1.7.0 Release tweaks
*Updated buildVersion to 1.7.0
*Updated REAMDE.md
2025-08-18 21:58:59 +02:00
Igor Zawartka
7c7de43749
Merge pull request #11 from izawartka/svg-export
Svg export
2025-08-18 21:52:39 +02:00
izawartka
9d2fef5e73 Added export animation
+Added svg export animation
*Moved Constants.originalPublicBuildUrl to Constants.svgExport.originalPublicBuildUrl
2025-08-18 21:51:08 +02:00
izawartka
6f44d148ed Distance meter export fix
*Fixed background rect of the distance meter being exported
2025-08-18 21:25:01 +02:00
izawartka
24ecffe63b Improved export error handling
*Improved svg export error handling
2025-08-17 18:13:12 +02:00
izawartka
97e1063cb5 Fixed export visibility check
*Fixed export visibility check (some tracks were falsely detected as invisible)
2025-08-17 18:04:44 +02:00
izawartka
cfe28689ff Added metadata export
+Added basic metadata to the exported svg
2025-08-17 18:04:01 +02:00
izawartka
6a04b5feec Added export trimming
*Objects in the exported SVG are now removed if they lay outside of the view
2025-08-17 17:49:13 +02:00
izawartka
4c849d96bb Added SVG export
+Added basic SVG export option
2025-08-17 12:09:16 +02:00
izawartka
e80a28e9c0 Moved parsing tools
*Moved scenery parsing tools to /src/model/parsing/
2025-08-16 14:42:46 +02:00
izawartka
e19d2ff7e4 Updated invisible track check
*Updated Track.hasNoMaterials to detect a track as invisible if it has no sleepers and rails
2025-08-16 14:31:41 +02:00
Igor Zawartka
ad064734d1
Merge pull request #10 from izawartka/light-mode
Light mode
2025-08-16 14:17:47 +02:00
izawartka
48c14f3a95 Updated CSS
*Updated SceneryParserLogView background color
*Updated some light mode color variables
2025-08-16 14:16:07 +02:00
izawartka
ff3ab7049f Fixed more CSS errors
*Sign texts no longer have shadow
*TrackHoverInfo is now using the standard background color
*Fixed z-indexes
*Tweaked disabled text color
2025-08-16 00:15:09 +02:00
izawartka
61026481f8 Updated styling colors
*Changed color values of some theme variables
*Tracks now have different colors depending on the theme
*Changed colors of some elements
2025-08-16 00:07:36 +02:00
izawartka
2f80998a50 Fixed standard signals and map text rendering
*Fixed broken signal icon
*Fixed AlwaysUpText anchor bug
2025-08-15 23:32:18 +02:00
izawartka
06f2d2080f Updated css for the light mode
*Updated all CSS to work with the new light mode
2025-08-15 21:24:48 +02:00
izawartka
285c5b04e8 Added theme toggle
+Added dark-mode and light-mode component icons
+Added ThemeToggle in the toolbar
+Added ThemeManager and ThemeContext
2025-08-15 21:23:46 +02:00
izawartka
0d2580f23e Added SideMenuIcon as a component
*SideMenu icon used in the toolbar is now a component
2025-08-15 20:29:46 +02:00
izawartka
d023eb9dad Icon tweaks
*Moved TrackHoverInfo icons to src/icons/track-hover-info
*Tweaked TrackHoverInfo css
-Removed width and height icon params
2025-08-15 20:28:36 +02:00
izawartka
f5bc06ad8b Optimized objects rendering
*Optimized objects on the map to render only above the specified zoom threshold
2025-08-13 14:04:42 +02:00
izawartka
0ca6f6b9e0 Optimized track rendering
*Optimized track rendering to not always render both scaled and unscaled versions of the track
2025-08-13 13:36:13 +02:00
izawartka
d7fdf0fc7e Updated map text styles
*Updated map text styles to always have shadow
2025-08-13 13:35:15 +02:00
izawartka
40ad1e678b Cleaned up map class names
*Cleaned up map class names and CSS
*Fixed signalbox icons having color property
2025-08-12 23:15:23 +02:00
izawartka
82d2b7d01c 1.6.2 Release tweaks
*Changed buildVersion to 1.6.2
2025-08-12 12:42:39 +02:00
izawartka
362d0aef65 Added slope signs def
+Added slope signs def (just to not how the warning, no icons yet)
2025-08-12 12:33:40 +02:00
izawartka
4106dbd474 Improved invisible track detection
+Added Track.hasNoMaterials()
*Now a track is considered invisible if it has trans-mat set in ALL material slots instead of just one
2025-08-11 22:28:23 +02:00
izawartka
fb90fffcde Optimized electrification resolution
*Optimized electrification resolution to use a chained list for the queue instead of the standard JS array
*Replaced ElectrificationResolver with this in electrification-resolver.js
2025-08-11 22:26:53 +02:00
izawartka
647a324357 Added electrification resolver step mode
+Added electrification resolver step mode. It can be enabled using the appropriate Constant
2025-08-11 21:54:09 +02:00
izawartka
709b279147 Fixed extended signal parser signs parsing
*Fixed some extended signal parsers returning empty signs array instead of dictionary
2025-08-11 20:58:07 +02:00
izawartka
5f57eb24ee Improved switches
+Added support for the speedLimit field in switch definitions
*Updated defined-switches.js, removing unused fields and adding speedLimit
*Changed the header of StandardTrack.createSwitchTrack
2025-08-05 22:31:25 +02:00
izawartka
415878ba02 Updated parse_prefabs.py
+Added track speed limit info parsing in parse_switch_prefabs.py
*Renamed parse-prefabs.py to parse_switch_prefabs.py
*parse_switch_prefabs.py will no longer provide track  slope and banking information unless specified otherwise with the --extended-track-shape flag
*Modified parse_prefabs.py to use argparse
-Removed shebang from parse_prefabs.py script (caused problems on some python installations)
2025-08-05 20:30:54 +02:00
izawartka
56561587fc Removed unused npm packages
-Removed unused npm packages
2025-08-05 00:53:33 +02:00
izawartka
c25b62001c 1.6.1 Release tweaks
*Changed buildVersion to 1.6.1
2025-08-04 22:29:21 +02:00
izawartka
7ed656016a Fixed overhead signals leg bug
*Fixed overhead signals with no signs or bars still having a pole
2025-08-04 22:27:14 +02:00
izawartka
354f797f6c Added pos param parsing
+Added an option to provide start camera position through url `pos` param
2025-08-04 22:27:03 +02:00
izawartka
82c3c7cfbb Updated glb_bounds.py
*Changed optional params of glb_bounds.py to use dashes instead of underscores in optional params
*Added missing glb_bounds.py header
2025-08-02 00:46:32 +02:00
izawartka
2fb7f8e698 Minor Signal and SpawnPoint names tweaks
*Fixed SpawnPoint constructor not assiging spawn_point_name correctly
*SpawnPoint.getPrintableSpawnPointName now returns the name field instead of the unused (in-game) spawn_point_name field
*Signal renderers now trim original signal names
2025-08-02 00:46:31 +02:00
izawartka
d042897d90 Updated platform defs
+Added a definiton for the wgt_peron_ursus_pln platform
*Fixed -0.0 values in platform definitons
2025-08-02 00:46:31 +02:00
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