forked from team-sg/hero-mark-2
52 lines
1.5 KiB
GDScript
52 lines
1.5 KiB
GDScript
extends Node
|
|
|
|
onready var continue_button = $Panel/Continue
|
|
|
|
func _ready():
|
|
Fade.fade_in(Options.transition_speed_secs)
|
|
#Grey out continue if no save files
|
|
yield(get_tree(),"idle_frame")
|
|
if Save.current_file and not Save.current_file.debug:
|
|
$Panel/Continue.grab_focus()
|
|
else:
|
|
$Panel/Body/GreyedContinue.visible = true
|
|
continue_button.visible = false
|
|
$Panel/FileSelect.grab_focus()
|
|
|
|
Vector2( 0.83205, 0.5547 )
|
|
|
|
func _on_Continue_button_down():
|
|
Fade.fade_out(Options.transition_speed_secs)
|
|
yield(Fade, "fade_finished")
|
|
SceneManager.current_scene = load("res://menus/level_select_scholar.tscn").instance()
|
|
|
|
|
|
func _on_FileSelect_button_down():
|
|
Fade.fade_out(Options.transition_speed_secs)
|
|
yield(Fade, "fade_finished")
|
|
SceneManager.current_scene = load("res://menus/file_select.tscn").instance()
|
|
|
|
|
|
func _on_Exit_button_down():
|
|
Fade.fade_out(Options.transition_speed_secs)
|
|
yield(Fade, "fade_finished")
|
|
get_tree().quit()
|
|
|
|
|
|
func _on_SoundTest_button_down():
|
|
Fade.fade_out(Options.transition_speed_secs)
|
|
yield(Fade, "fade_finished")
|
|
SceneManager.current_scene = load("res://menus/sound_test.tscn").instance()
|
|
|
|
|
|
|
|
func _on_HighScores_button_down() -> void:
|
|
Fade.fade_out(Options.transition_speed_secs)
|
|
yield(Fade, "fade_finished")
|
|
SceneManager.current_scene = load("res://menus/scoreboards.tscn").instance()
|
|
|
|
|
|
func _on_Options_button_down() -> void:
|
|
Fade.fade_out(Options.transition_speed_secs)
|
|
yield(Fade, "fade_finished")
|
|
SceneManager.current_scene = load("res://menus/options_menu.tscn").instance()
|