mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-07-11 23:44:42 -04:00
Language and theme checkboxes are now radio buttons
This commit is contained in:
parent
71fa2795b1
commit
15ef00bf46
4 changed files with 33 additions and 10 deletions
|
@ -16,9 +16,7 @@ func _ready() -> void:
|
|||
|
||||
|
||||
func _on_Theme_pressed(index : int) -> void:
|
||||
for child in get_children():
|
||||
if child is Button:
|
||||
child.pressed = child.get_index() == index
|
||||
get_child(index).pressed = true
|
||||
change_theme(index)
|
||||
|
||||
Global.config_cache.set_value("preferences", "theme", index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue