add NewGame panel
This commit is contained in:
parent
41d2d2bd23
commit
81bf9dab8f
8 changed files with 155 additions and 47 deletions
24
src/NewGamePanel.gd
Normal file
24
src/NewGamePanel.gd
Normal file
|
@ -0,0 +1,24 @@
|
|||
tool
|
||||
class_name NewGamePanel
|
||||
extends PopupPanel
|
||||
|
||||
signal start_triggered(config)
|
||||
|
||||
func _init():
|
||||
# TODO: load config with ConfigFile
|
||||
# https://docs.godotengine.org/en/stable/tutorials/io/saving_games.html
|
||||
pass
|
||||
|
||||
func _ready():
|
||||
# TODO: load previous preferences
|
||||
$Panel/HBoxContainer/Normal.toggle_mode = true
|
||||
pass
|
||||
|
||||
func _on_Cancel_pressed():
|
||||
self.hide()
|
||||
|
||||
func _on_Start_pressed():
|
||||
var config = {}
|
||||
# TODO: save config
|
||||
emit_signal("start_triggered", config)
|
||||
self.hide()
|
Loading…
Add table
Add a link
Reference in a new issue