Settings code rework WIP
This commit is contained in:
@@ -15,6 +15,7 @@ func _ready() -> void:
|
||||
ui_main = get_parent()
|
||||
|
||||
reset() #Initial state
|
||||
menu_button.hide()
|
||||
|
||||
#Connecting signals
|
||||
menu_button.pressed.connect(func():
|
||||
@@ -77,5 +78,5 @@ func _on_main_menu_pressed():
|
||||
func reset():
|
||||
show()
|
||||
#Hiding everything except the menu button
|
||||
for node in [submenu, save, load, settings, menu_button]:
|
||||
for node in [submenu, save, load, settings]:
|
||||
node.hide()
|
||||
|
||||
Reference in New Issue
Block a user