Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes changes to improve the user interface and functionality of the
MenuModal
andTerrainGenerator
components in the game. The most important changes include hiding the menu modal on initialization, showing the menu when paused, and ensuring the terrain generator only redraws when the node is ready.Improvements to
MenuModal
:game/scenes/interface/MenuModal/MenuModal.gd
: Added a call tohide()
in the_ready()
function to ensure the menu modal is hidden on initialization.game/scenes/interface/MenuModal/MenuModal.gd
: Modified thepause
function to callshow()
to display the menu when the game is paused.game/scenes/interface/MenuModal/MenuModal.gd
: Modified theunpause
function to callhide()
to hide the menu when the game is unpaused.Improvements to
TerrainGenerator
:game/scenes/systems/TerrainGenerator/TerrainGenerator.gd
: Added a check inredraw_terrain()
to ensure the node is ready before clearing and redrawing the terrain.