claude godot 4 port

This commit is contained in:
2026-06-13 16:08:36 -04:00
parent aa1f470a7b
commit 1c1109fe93
227 changed files with 3112 additions and 2505 deletions
+6 -7
View File
@@ -5,17 +5,16 @@ signal selected(idx)
func _ready():
var x := 0
for item in get_children():
item.connect("toggled",self,"_on_button_toggled", [x])
item.toggled.connect(_on_button_toggled.bind(x))
x += 1
func select(index:int):
func select(index: int):
var x := 0
for item in get_children():
item.set_pressed_no_signal( x == index )
if item.pressed:
emit_signal("selected", x)
item.set_pressed_no_signal(x == index)
if item.button_pressed:
selected.emit(x)
x += 1
func _on_button_toggled(state:bool, idx:int):
func _on_button_toggled(state: bool, idx: int):
select(idx)