initial commit, hope i didnt push any keys :P

This commit is contained in:
anne
2023-02-07 17:46:01 +01:00
commit 1416a35df1
362 changed files with 7234 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
extends GridContainer
signal selected(idx)
func _ready():
var x := 0
for item in get_children():
item.connect("toggled",self,"_on_button_toggled", [x])
x += 1
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)
x += 1
func _on_button_toggled(state:bool, idx:int):
select(idx)