summaryrefslogtreecommitdiff
path: root/components/HackButton.tscn
blob: afafb61f767fe68e30a27e885532a19d556d2b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[gd_scene load_steps=4 format=2]

[ext_resource path="res://textures/rooot.png" type="Texture" id=1]
[ext_resource path="res://components/HackButton.gd" type="Script" id=2]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 100, 100 )

[node name="HackButton" type="Area2D"]
monitoring = false
monitorable = false
script = ExtResource( 2 )

[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 1 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

[connection signal="input_event" from="." to="." method="_on_HackButton_input_event"]
[connection signal="mouse_entered" from="." to="." method="_on_HackButton_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_on_HackButton_mouse_exited"]