Fixed button colors
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
extends Node
|
||||
|
||||
|
||||
const TitleScreen = preload("res://title_screen.tscn")
|
||||
const Game = preload("res://game/game.tscn")
|
||||
|
||||
|
||||
var _current_scene: Node
|
||||
|
||||
|
||||
@@ -11,7 +16,7 @@ func _show_main_menu() -> void:
|
||||
if _current_scene != null:
|
||||
_current_scene.queue_free()
|
||||
|
||||
var scene : Node = load("res://title_screen.tscn").instantiate()
|
||||
var scene := TitleScreen.instantiate()
|
||||
add_child(scene)
|
||||
scene.continue_game.connect(_continue_game)
|
||||
scene.new_game.connect(_new_game)
|
||||
@@ -27,7 +32,7 @@ func _new_game() -> void:
|
||||
if _current_scene != null:
|
||||
_current_scene.queue_free()
|
||||
|
||||
var scene : Node = load("res://game/game.tscn").instantiate()
|
||||
var scene := Game.instantiate()
|
||||
add_child(scene)
|
||||
scene.show_main_menu.connect(_show_main_menu)
|
||||
_current_scene = scene
|
||||
|
||||
Reference in New Issue
Block a user