Browse Source

Comment update

pull/16/head
Ryan Reed 3 months ago
parent
commit
260e168179
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      save_load/ui/save_load_ui.gd

+ 1
- 1
save_load/ui/save_load_ui.gd View File

@ -25,7 +25,7 @@ func _on_create_save_button_pressed() -> void:
var _save_level_data_component: SaveLevelDataComponent = get_tree().get_first_node_in_group("save_level_data_component")
if _save_level_data_component.ui_node != null:
_save_level_data_component.ui_node.visible = false
await get_tree().create_timer(.150).timeout # A hack to delay to allow UI to hide before taking screenshot
await get_tree().create_timer(.150).timeout # A hack to allow time for UI to hide before taking screenshot
SaveGameManager.create_save_file.emit(save_name)
if _save_level_data_component.ui_node != null:
_save_level_data_component.ui_node.visible = true


Loading…
Cancel
Save