[gd_scene load_steps=12 format=3 uid="uid://cn7tgd4y67wnd"] [ext_resource type="Script" uid="uid://qvoqvonnxwfc" path="res://src/inventory_ui.gd" id="1_a0rpf"] [ext_resource type="Script" uid="uid://bx4wxlm5mv268" path="res://src/root_control.gd" id="1_as33y"] [ext_resource type="Resource" uid="uid://bllq6ri54q3ne" path="res://resources/player_inventory.tres" id="2_as33y"] [ext_resource type="PackedScene" uid="uid://gn8k2ir47n1m" path="res://scenes/inventory_item.tscn" id="3_tg4gd"] [ext_resource type="Script" uid="uid://bpwbaanf6w65h" path="res://src/index_carousel.gd" id="5_uae8j"] [ext_resource type="Script" uid="uid://c8m7eq6a3tpgu" path="res://src/item_details_ui.gd" id="6_s887n"] [ext_resource type="Resource" uid="uid://cxm3s081hnw8l" path="res://resources/player_equipment.tres" id="7_s887n"] [sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_as33y"] size = Vector2(128, 128) [sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_tg4gd"] size = Vector2(128, 128) [sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_usnyx"] size = Vector2(128, 64) [sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_sebc8"] size = Vector2(256, 256) [node name="Inventory" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 3 focus_mode = 2 script = ExtResource("1_as33y") open_action = &"open_inventory" close_action = &"ui_close_inventory" [node name="ColorRect" type="ColorRect" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 color = Color(0.147672, 0.147672, 0.147672, 1) [node name="Contents" type="VBoxContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 alignment = 1 [node name="InventoryUI" type="Control" parent="Contents" node_paths=PackedStringArray("carousel")] layout_mode = 2 size_flags_vertical = 3 script = ExtResource("1_a0rpf") inventory = ExtResource("2_as33y") item_scene = ExtResource("3_tg4gd") carousel = NodePath("Carousel") metadata/_custom_type_script = "uid://qvoqvonnxwfc" [node name="Carousel" type="Container" parent="Contents/InventoryUI"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("5_uae8j") with_drag = true with_clamp = true display_range = 5 snap_behavior = 2 paging_requirement = 100 metadata/_custom_type_script = "uid://bpwbaanf6w65h" [node name="ItemDetails" type="HBoxContainer" parent="Contents" node_paths=PackedStringArray("icon_image", "description_label")] layout_mode = 2 size_flags_vertical = 3 script = ExtResource("6_s887n") equipment = ExtResource("7_s887n") icon_image = NodePath("Display/TextureRect") description_label = NodePath("Description/Label") [node name="PlayerInfo" type="VBoxContainer" parent="Contents/ItemDetails"] layout_mode = 2 size_flags_horizontal = 3 [node name="TextureRect" type="TextureRect" parent="Contents/ItemDetails/PlayerInfo"] layout_mode = 2 size_flags_horizontal = 4 texture = SubResource("PlaceholderTexture2D_as33y") [node name="TextureRect2" type="TextureRect" parent="Contents/ItemDetails/PlayerInfo"] layout_mode = 2 size_flags_horizontal = 4 texture = SubResource("PlaceholderTexture2D_tg4gd") [node name="TextureRect3" type="TextureRect" parent="Contents/ItemDetails/PlayerInfo"] layout_mode = 2 size_flags_horizontal = 4 texture = SubResource("PlaceholderTexture2D_usnyx") [node name="Display" type="VBoxContainer" parent="Contents/ItemDetails"] layout_mode = 2 size_flags_horizontal = 3 [node name="TextureRect" type="TextureRect" parent="Contents/ItemDetails/Display"] layout_mode = 2 size_flags_horizontal = 4 texture = SubResource("PlaceholderTexture2D_sebc8") [node name="Description" type="VBoxContainer" parent="Contents/ItemDetails"] layout_mode = 2 size_flags_horizontal = 3 [node name="Label" type="Label" parent="Contents/ItemDetails/Description"] layout_mode = 2 text = "a description" [connection signal="item_selected" from="Contents/InventoryUI" to="Contents/ItemDetails" method="_on_updated"]