global takeover of transition_speed variable

This commit is contained in:
Haze Weathers 2024-02-27 19:26:35 -05:00
parent ddafe49d12
commit bfbc0dfd2b
18 changed files with 42 additions and 42 deletions

View file

@ -33,7 +33,7 @@ onready var next_board: TextureRect = $"%NextBoard"
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
Fade.fade_in(0.4)
Fade.fade_in(Options.transition_speed_secs)
yield(get_tree(), "idle_frame")
level_title.text = LevelData.levels[selected_level].title
level_title.grab_focus()
@ -48,7 +48,7 @@ func _ready() -> void:
func _input(event: InputEvent) -> void:
if event.is_action_pressed("ui_cancel"):
Fade.fade_out(0.4)
Fade.fade_out(Options.transition_speed_secs)
yield(Fade, "fade_finished")
SceneManager.current_scene = preload("res://menus/main_menu.tscn").instance()