2018-09-21 02:43:57 +01:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
onready var start_btn = get_node("split/buttons/start_btn")
|
|
|
|
onready var load_btn = get_node("split/buttons/load_btn")
|
|
|
|
onready var options_btn = get_node("split/buttons/options_btn")
|
|
|
|
onready var quit_btn = get_node("split/buttons/quit_btn")
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
|
2018-09-21 02:48:13 +01:00
|
|
|
# signals for buttens
|
2018-09-21 02:43:57 +01:00
|
|
|
start_btn.connect("pressed", self, "_on_start_pressed")
|
|
|
|
load_btn.connect("pressed", self, "_on_load_pressed")
|
|
|
|
options_btn.connect("pressed", self, "_on_options_pressed")
|
|
|
|
quit_btn.connect("pressed", self, "_on_quit_pressed")
|
|
|
|
|
|
|
|
|
|
|
|
func _on_start_pressed():
|
2018-09-21 18:51:38 +01:00
|
|
|
Game.switch_scene_to(Game.Scenes.INTRO)
|
2018-09-21 02:43:57 +01:00
|
|
|
|
|
|
|
func _on_load_pressed():
|
|
|
|
pass
|
|
|
|
|
|
|
|
func _on_options_pressed():
|
2018-09-21 19:39:08 +01:00
|
|
|
Game.switch_scene_to(Game.Scenes.OPTIONS_MENU, false)
|
2018-09-21 02:43:57 +01:00
|
|
|
|
|
|
|
func _on_quit_pressed():
|
|
|
|
get_tree().quit()
|