...
This commit is contained in:
parent
d16160323c
commit
1e22d28754
34 changed files with 708 additions and 1822 deletions
|
|
@ -0,0 +1,17 @@
|
|||
```python
|
||||
func create_button_pink() -> void:
|
||||
var button := Button.new()
|
||||
row_bodies.add_child(button)
|
||||
```
|
||||
|
||||
|
||||
```python
|
||||
func create_buttons() -> void:
|
||||
for current_body: String in bodies:
|
||||
var button := Button.new()
|
||||
row_bodies.add_child(button)
|
||||
button.text = current_body.capitalize()
|
||||
button.pressed.connect(func()-> void:
|
||||
body.texture = bodies[current_body]
|
||||
)
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue