godot-docs/scenes/button.tscn

19 lines
559 B
Text

[gd_scene load_steps=2 format=3 uid="uid://cn4bsud8kgyvp"]
[ext_resource type="PackedScene" uid="uid://6ws803s4tnhy" path="res://scenes/icon.tscn" id="1_or1o1"]
[node name="Node2D" type="Node2D"]
[node name="Icon" parent="." instance=ExtResource("1_or1o1")]
[node name="Timer" type="Timer" parent="Icon"]
autostart = true
[node name="Button" type="Button" parent="."]
offset_left = 48.0
offset_top = 33.0
offset_right = 238.0
offset_bottom = 108.0
text = "Toggle motion"
[connection signal="pressed" from="Button" to="Icon" method="_on_button_pressed"]