the-crypt/ui/Inventory.tscn

86 lines
2.3 KiB
Plaintext

[gd_scene load_steps=7 format=2]
[ext_resource path="res://ui/Inventory.png" type="Texture" id=1]
[ext_resource path="res://script/Inventory.gd" type="Script" id=2]
[ext_resource path="res://art/Wand.png" type="Texture" id=3]
[ext_resource path="res://art/TripleWand.png" type="Texture" id=4]
[sub_resource type="Animation" id=1]
resource_name = "SlideIn"
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("Inventory: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.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 160, -43 ), Vector2( 160, 50 ) ]
}
[sub_resource type="Animation" id=2]
resource_name = "SlideOut"
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("Inventory: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.2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 160, 50 ), Vector2( 160, -43 ) ]
}
[node name="Inventory" type="CanvasLayer"]
script = ExtResource( 2 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/SlideIn = SubResource( 1 )
anims/SlideOut = SubResource( 2 )
[node name="Inventory" type="Sprite" parent="."]
position = Vector2( 160, -43 )
texture = ExtResource( 1 )
[node name="Conduits" type="Node2D" parent="Inventory"]
[node name="Conduit1" type="TextureButton" parent="Inventory/Conduits"]
light_mask = -2147483647
margin_left = -74.0
margin_top = -18.0
margin_right = -70.0
margin_bottom = -4.0
toggle_mode = true
action_mode = 0
texture_normal = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Conduit2" type="TextureButton" parent="Inventory/Conduits"]
light_mask = -2147483647
margin_left = -55.0
margin_top = -20.0
margin_right = -39.0
margin_bottom = 2.0
toggle_mode = true
action_mode = 0
texture_normal = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Projectiles" type="Node2D" parent="Inventory"]
visible = false
[node name="Effects" type="Node2D" parent="Inventory"]
visible = false
[connection signal="toggled" from="Inventory/Conduits/Conduit1" to="." method="_on_Conduit1_toggled"]
[connection signal="toggled" from="Inventory/Conduits/Conduit2" to="." method="_on_Conduit1_toggled"]