...
This commit is contained in:
parent
5656d527f3
commit
f1b18e9b80
33 changed files with 41 additions and 0 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