working on items and inventory
This commit is contained in:
@@ -1,31 +1,10 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://defhc376y3h1d"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://defhc376y3h1d"]
|
||||
|
||||
[ext_resource type="Script" path="res://UI/Inventory/InventorySlot.gd" id="1_pltri"]
|
||||
[ext_resource type="FontFile" uid="uid://dj4pldmxeqmtt" path="res://UI/PressStart2P-Regular.ttf" id="1_wew62"]
|
||||
[ext_resource type="Texture2D" uid="uid://cgtkkroa583fo" path="res://TileSets/Stuff.png" id="2_mxhl7"]
|
||||
[ext_resource type="Texture2D" uid="uid://4txm3cwkoncp" path="res://UI/Inventory/circle_progress.png" id="3_5flhr"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_wthnv"]
|
||||
resource_name = "blink"
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:self_modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5, 1),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_b5fyj"]
|
||||
_data = {
|
||||
"blink": SubResource("Animation_wthnv")
|
||||
}
|
||||
|
||||
[node name="InventorySlot" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 8
|
||||
@@ -48,34 +27,21 @@ theme_override_fonts/font = ExtResource("1_wew62")
|
||||
theme_override_font_sizes/font_size = 0
|
||||
text = "1"
|
||||
|
||||
[node name="ItemImage" type="Sprite2D" parent="."]
|
||||
|
||||
[node name="ToolbarSlot" type="Sprite2D" parent="."]
|
||||
scale = Vector2(4, 4)
|
||||
texture = ExtResource("2_mxhl7")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(80, 144, 16, 16)
|
||||
|
||||
[node name="ItemSelector" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
modulate = Color(0.054902, 0.290196, 0.258824, 1)
|
||||
self_modulate = Color(1, 1, 1, 0.822247)
|
||||
scale = Vector2(4, 4)
|
||||
texture = ExtResource("2_mxhl7")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(64, 144, 16, 16)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="ItemSelector"]
|
||||
autoplay = "blink"
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_b5fyj")
|
||||
}
|
||||
|
||||
[node name="SlotLabel" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = -51.0
|
||||
offset_top = -58.0
|
||||
offset_right = 61.0
|
||||
offset_bottom = -35.0
|
||||
offset_left = -53.0
|
||||
offset_top = -65.0
|
||||
offset_right = 75.0
|
||||
offset_bottom = -42.0
|
||||
theme_override_fonts/font = ExtResource("1_wew62")
|
||||
theme_override_font_sizes/font_size = 0
|
||||
text = "ItemName"
|
||||
@@ -92,5 +58,3 @@ texture_under = ExtResource("3_5flhr")
|
||||
texture_progress = ExtResource("3_5flhr")
|
||||
tint_under = Color(1, 1, 1, 0)
|
||||
tint_progress = Color(0.254902, 0.654902, 0.407843, 0.588235)
|
||||
|
||||
[node name="ItemImage" type="Sprite2D" parent="."]
|
||||
|
Reference in New Issue
Block a user