forked from newt/gmtk-2024
15 lines
454 B
GDScript
15 lines
454 B
GDScript
extends ColorRect
|
|
|
|
@onready var bar_option = $Bars/Select
|
|
@onready var back_button = $BackButton
|
|
|
|
func _ready() -> void:
|
|
bar_option.selected = ConfigManager.get_setting("bars")
|
|
bar_option.item_selected.connect(change_bar_selection)
|
|
back_button.button_down.connect(main_menu)
|
|
|
|
func change_bar_selection(index: int) -> void:
|
|
ConfigManager.set_setting("bars", index)
|
|
|
|
func main_menu() -> void:
|
|
get_tree().change_scene_to_file("res://ui/MainMenu.tscn")
|