mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
30 lines
719 B
Plaintext
30 lines
719 B
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://piano_keys/piano_key.gd" type="Script" id=1]
|
|
[ext_resource path="res://piano_keys/piano_key_color.gd" type="Script" id=2]
|
|
|
|
[node name="PianoKey" type="Control"]
|
|
offset_right = 20.0
|
|
offset_bottom = 200.0
|
|
size_flags_horizontal = 3
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Key" type="ColorRect" parent="."]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 1.0
|
|
offset_right = -1.0
|
|
size_flags_horizontal = 3
|
|
script = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ColorTimer" type="Timer" parent="."]
|
|
one_shot = true
|
|
|
|
[connection signal="timeout" from="ColorTimer" to="." method="deactivate"]
|