2022-02-24 05:23:47 +00:00
|
|
|
extends Control
|
2022-02-24 04:31:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
if OS.get_name() == "HTML5":
|
|
|
|
find_node("QuitButton").hide()
|
|
|
|
|
|
|
|
|
|
|
|
func _on_DailyButton_pressed() -> void:
|
|
|
|
Global.daily_mode = true
|
|
|
|
var error := get_tree().change_scene("res://src/Main.tscn")
|
|
|
|
assert(not error)
|
|
|
|
|
|
|
|
|
|
|
|
func _on_RandomButton_pressed() -> void:
|
|
|
|
Global.daily_mode = false
|
|
|
|
var error := get_tree().change_scene("res://src/Main.tscn")
|
|
|
|
assert(not error)
|
|
|
|
|
|
|
|
|
|
|
|
func _on_CreditsButton_pressed() -> void:
|
2022-02-24 05:23:47 +00:00
|
|
|
$Credits.show()
|
2022-02-24 04:31:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
func _on_QuitButton_pressed() -> void:
|
|
|
|
get_tree().notification(NOTIFICATION_WM_QUIT_REQUEST)
|
2022-02-24 05:23:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
func _on_CreditsBackButton_pressed() -> void:
|
|
|
|
$Credits.hide()
|