gmtk-2024/ui/settings.gd
2024-08-19 03:16:36 +01:00

10 lines
285 B
GDScript

extends ColorRect
@onready var bar_option = $Bars/Select
func _ready() -> void:
bar_option.selected = ConfigManager.get_setting("bars")
bar_option.item_selected.connect(change_bar_selection)
func change_bar_selection(index: int) -> void:
ConfigManager.set_setting("bars", index)