Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rail Map #99

Merged
merged 14 commits into from
Aug 27, 2021
Merged

Rail Map #99

merged 14 commits into from
Aug 27, 2021

Conversation

DasCapschen
Copy link
Member

This adds a map to the game. See #76.

Press "M" to open the overlay map, which shows only the current route, player position and station names.
It is always zoomed out fully.

Press "M" again to show the fullscreen map, which shows all rails on the map, the players position, station names and signals.
Player can use the mouse wheel to zoom in and out. Player can also click and hold middle mouse button and drag to move the view around. Pressing "Space" will center the map on the player and follow the player.

Press "M" a third time to close the map.

Changes to existing code:

  • added setgetand signals in Signal.gd to update the map when signals change
  • added a signal in World.gd when a big chunk updates the world origin translation
  • added get_global_transform_at_rail_distance(distance) in Rail.gd

Here is a sample of the overview map:
overview_map

Here is a sample of the fullscreen map:
full_map

@Jean28518 Jean28518 added this to In progress in v0.9 (Old) via automation Aug 27, 2021
@Jean28518 Jean28518 moved this from In progress to Done in v0.9 (Old) Aug 27, 2021
@Jean28518 Jean28518 moved this from Done to In progress in v0.9 (Old) Aug 27, 2021
@Jean28518 Jean28518 linked an issue Aug 27, 2021 that may be closed by this pull request
@Jean28518 Jean28518 merged commit a558955 into Libre-TrainSim:master Aug 27, 2021
v0.9 (Old) automation moved this from In progress to Done Aug 27, 2021
@DasCapschen DasCapschen deleted the railmap branch September 2, 2021 10:10
@nalquas nalquas added enhancement New feature or request ux Usability and Expierience issues. labels Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux Usability and Expierience issues.
Projects
No open projects
v0.9 (Old)
  
Done
Development

Successfully merging this pull request may close these issues.

Adding overview map with stations
3 participants