blob: 883bda7adafb24af02ab36eec5ff8ea0bec1b97d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
[gd_scene load_steps=5 format=2]
[ext_resource path="res://textures/components/button/middle.png" type="Texture" id=1]
[ext_resource path="res://textures/components/button/right.png" type="Texture" id=2]
[ext_resource path="res://textures/components/button/left.png" type="Texture" id=4]
[ext_resource path="res://components/button.gd" type="Script" id=5]
[node name="Button" type="Area2D"]
script = ExtResource( 5 )
[node name="Left" type="Sprite" parent="."]
position = Vector2( -24, 0 )
scale = Vector2( 4, 4 )
texture = ExtResource( 4 )
[node name="Right" type="Sprite" parent="."]
position = Vector2( 24, 0 )
scale = Vector2( 4, 4 )
texture = ExtResource( 2 )
[node name="Middle" type="Sprite" parent="."]
scale = Vector2( 4, 4 )
texture = ExtResource( 1 )
[node name="Hitbox" type="CollisionShape2D" parent="."]
[connection signal="input_event" from="." to="." method="_on_ButtonTest_input_event"]
[connection signal="mouse_entered" from="." to="." method="_on_ButtonTest_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_on_ButtonTest_mouse_exited"]
|