2020-10-04 18:26:45 +00:00
|
|
|
[gd_scene load_steps=6 format=2]
|
2020-10-04 16:17:54 +00:00
|
|
|
|
|
|
|
[ext_resource path="res://Sprites/button.png" type="Texture" id=1]
|
|
|
|
[ext_resource path="res://Objects/ScrollingObjects/Buttons/GameButton.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://Objects/ScrollingObjects/Utilities/ConveyorScrollParent.tscn" type="PackedScene" id=3]
|
|
|
|
[ext_resource path="res://Objects/ScrollingObjects/Utilities/WrapParent.tscn" type="PackedScene" id=4]
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
|
|
extents = Vector2( 20, 20 )
|
|
|
|
|
|
|
|
[node name="GameButton" type="Area2D"]
|
|
|
|
collision_layer = 8
|
|
|
|
collision_mask = 2147483648
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
|
|
texture = ExtResource( 1 )
|
|
|
|
|
2020-10-04 18:26:45 +00:00
|
|
|
[node name="Icon" type="Sprite" parent="."]
|
|
|
|
|
2020-10-04 16:17:54 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource( 1 )
|
|
|
|
|
|
|
|
[node name="ConveyorScrollParent" parent="." instance=ExtResource( 3 )]
|
|
|
|
|
|
|
|
[node name="WrapParent" parent="." instance=ExtResource( 4 )]
|
2020-10-04 18:26:45 +00:00
|
|
|
[connection signal="clicked" from="." to="." method="_on_GameButton_clicked"]
|
2020-10-04 16:17:54 +00:00
|
|
|
[connection signal="input_event" from="." to="." method="_on_GameButton_input_event"]
|