1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- [gd_scene load_steps=7 format=2]
- [ext_resource path="res://ui/TouchScreenButton.gd" type="Script" id=1]
- [ext_resource path="res://icon.png" type="Texture" id=2]
- [ext_resource path="res://sounds/sfx1.ogg" type="AudioStream" id=3]
- [ext_resource path="res://newdynamicfont.tres" type="DynamicFont" id=4]
- [ext_resource path="res://sounds/sfx2.ogg" type="AudioStream" id=5]
- [sub_resource type="RectangleShape2D" id=1]
- [node name="Button" type="TouchScreenButton"]
- normal = ExtResource( 2 )
- script = ExtResource( 1 )
- [node name="Button" type="Button" parent="."]
- margin_right = 63.0
- margin_bottom = 66.0
- flat = true
- [node name="Label" type="Label" parent="."]
- margin_left = -275.0
- margin_top = 1.0
- margin_right = -6.0
- margin_bottom = 61.0
- custom_fonts/font = ExtResource( 4 )
- text = "stuff"
- align = 1
- valign = 1
- [node name="ColorRect" type="ColorRect" parent="Label"]
- show_behind_parent = true
- anchor_right = 1.0
- anchor_bottom = 1.0
- margin_right = 1.0
- color = Color( 0, 0, 0, 0.321569 )
- [node name="col" type="Area2D" parent="."]
- collision_layer = 0
- collision_mask = 0
- [node name="CollisionShape2D" type="CollisionShape2D" parent="col"]
- position = Vector2( 32, 32 )
- shape = SubResource( 1 )
- [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
- stream = ExtResource( 3 )
- bus = "menu"
- [node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."]
- stream = ExtResource( 5 )
- bus = "menu"
- [connection signal="pressed" from="." to="AudioStreamPlayer" method="play"]
- [connection signal="released" from="." to="AudioStreamPlayer2" method="play"]
- [connection signal="mouse_entered" from="Button" to="." method="_on_Button_mouse_entered"]
- [connection signal="mouse_exited" from="Button" to="." method="_on_Button_mouse_exited"]
|