forked from team-sg/hero-mark-2
add new options screen to main menu and pause screen
This commit is contained in:
parent
9333d5a61f
commit
24f763d3f6
10 changed files with 94 additions and 7 deletions
14
menus/options_menu.gd
Normal file
14
menus/options_menu.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends Control
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
Fade.fade_in(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
$OptionsScreen.focus()
|
||||
|
||||
|
||||
|
||||
func _on_OptionsScreen_exit() -> void:
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
yield(Fade, "fade_finished")
|
||||
SceneManager.current_scene = load("res://menus/main_menu.tscn").instance()
|
Loading…
Add table
Add a link
Reference in a new issue