|
@ -159,11 +159,12 @@ func process_generation() -> void: |
|
|
|
|
|
|
|
|
## Toggle Pause UI and Start/Stop Generation Timer |
|
|
## Toggle Pause UI and Start/Stop Generation Timer |
|
|
func toggle_pause() -> void: |
|
|
func toggle_pause() -> void: |
|
|
if is_paused: generation_timer.start() |
|
|
|
|
|
else: generation_timer.stop() |
|
|
|
|
|
is_paused = !is_paused |
|
|
is_paused = !is_paused |
|
|
background_ui.visible = is_paused |
|
|
background_ui.visible = is_paused |
|
|
|
|
|
|
|
|
|
|
|
if is_paused: generation_timer.start() |
|
|
|
|
|
else: generation_timer.stop() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Create the cell using the rendering server |
|
|
## Create the cell using the rendering server |
|
|
## This is only performed on initial world generation |
|
|
## This is only performed on initial world generation |
|
|