Blobby/src/Contraptions/Triggers/GateButton.tscn

121 lines
3.6 KiB
Plaintext

[gd_scene load_steps=11 format=2]
[ext_resource path="res://assets/meta/digits.png" type="Texture" id=1]
[ext_resource path="res://assets/contraption/freeButtonSlider.png" type="Texture" id=2]
[ext_resource path="res://assets/contraption/gateButton.png" type="Texture" id=3]
[ext_resource path="res://src/Contraptions/Triggers/GateButton.gd" type="Script" id=4]
[ext_resource path="res://assets/ui/sci-fi-godot-theme/sci-fi-pixel.tres" type="DynamicFont" id=5]
[sub_resource type="Gradient" id=23]
interpolation_mode = 2
colors = PoolColorArray( 1, 1, 1, 0.752941, 0, 0, 0, 0 )
[sub_resource type="GradientTexture2D" id=22]
gradient = SubResource( 23 )
width = 60
height = 60
fill = 1
fill_from = Vector2( 0.5, 0.5 )
fill_to = Vector2( 0.155994, 0.791965 )
[sub_resource type="Animation" id=19]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Vector2( 0, -7 ) ]
}
[sub_resource type="Animation" id=13]
resource_name = "onning"
length = 0.809
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.8 ),
"transitions": PoolRealArray( 1, 2.73207 ),
"update": 0,
"values": [ Vector2( 0, -7 ), Vector2( 0, 7 ) ]
}
[sub_resource type="CircleShape2D" id=18]
radius = 18.0
[node name="GateButton" type="Node2D"]
z_index = -1
script = ExtResource( 4 )
[node name="Highlight" type="TextureRect" parent="."]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -30.0
margin_top = -31.0
margin_right = 30.0
margin_bottom = 29.0
texture = SubResource( 22 )
[node name="Label" type="Label" parent="."]
visible = false
margin_left = -16.0
margin_top = -22.0
margin_right = 40.0
margin_bottom = -8.0
rect_scale = Vector2( 0.590909, 0.627907 )
custom_fonts/font = ExtResource( 5 )
text = "[activate]"
[node name="Button" type="Sprite" parent="."]
texture = ExtResource( 3 )
__meta__ = {
"_editor_description_": "YXNlcHJpdGVfd2l6YXJkX2NvbmZpZwpwbGF5ZXJ8PVNwcml0ZS9BbmltYXRpb25QbGF5ZXIKc291cmNlfD1yZXM6Ly9hc3NldHMvbmV1dHJhbCBvYmplY3QvYnV0dG9uLmFzZXByaXRlCmxheWVyfD0Kb3BfZXhwfD1GYWxzZQpvX2ZvbGRlcnw9Cm9fbmFtZXw9Cm9ubHlfdmlzaWJsZXw9RmFsc2UKb19leF9wfD0K"
}
[node name="Digit" type="Sprite" parent="."]
visible = false
position = Vector2( 0.5, 0.5 )
texture = ExtResource( 1 )
hframes = 10
[node name="Indicator" type="Sprite" parent="."]
position = Vector2( 0, -7 )
texture = ExtResource( 2 )
__meta__ = {
"_editor_description_": "YXNlcHJpdGVfd2l6YXJkX2NvbmZpZwpwbGF5ZXJ8PUluZGljYXRvcjIvQW5pbWF0aW9uUGxheWVyCnNvdXJjZXw9cmVzOi8vYXNzZXRzL25ldXRyYWwgb2JqZWN0L2J1dHRvblN0YXRlSW5kaWNhdG9yLmFzZXByaXRlCmxheWVyfD0Kb3BfZXhwfD1GYWxzZQpvX2ZvbGRlcnw9Cm9fbmFtZXw9Cm9ubHlfdmlzaWJsZXw9RmFsc2UKb19leF9wfD0K"
}
[node name="IndicatorPlayer" type="AnimationPlayer" parent="Indicator"]
unique_name_in_owner = true
anims/RESET = SubResource( 19 )
anims/onning = SubResource( 13 )
[node name="ActivatorArea" type="Area2D" parent="."]
unique_name_in_owner = true
collision_layer = 0
collision_mask = 3
monitorable = false
[node name="ActivatorAreaShape" type="CollisionShape2D" parent="ActivatorArea"]
unique_name_in_owner = true
shape = SubResource( 18 )
[node name="Timer" type="Timer" parent="."]
wait_time = 0.333
one_shot = true
[connection signal="body_entered" from="ActivatorArea" to="." method="_on_ActivatorArea_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]