signalis-eb/godot/scenes/inventory.tscn
2025-06-12 13:22:52 -04:00

97 lines
3.4 KiB
Text

[gd_scene load_steps=7 format=3 uid="uid://bshvduqysqivm"]
[ext_resource type="Script" uid="uid://ct5na682hxc6g" path="res://src/input_listener.gd" id="1_qw0r6"]
[ext_resource type="Script" uid="uid://qvoqvonnxwfc" path="res://src/inventory_ui.gd" id="2_hj2ta"]
[ext_resource type="Resource" uid="uid://bllq6ri54q3ne" path="res://resources/player_inventory.tres" id="3_ty45s"]
[ext_resource type="Script" uid="uid://c62nslejr74jw" path="res://src/h_item_list.gd" id="4_yyk2a"]
[ext_resource type="PackedScene" uid="uid://gn8k2ir47n1m" path="res://scenes/inventory_item.tscn" id="5_uae8j"]
[ext_resource type="Script" uid="uid://dfvvqpgu8r5v6" path="res://src/item_details_ui.gd" id="6_uae8j"]
[node name="Control" type="Control"]
visible = false
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_qw0r6")
action = "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.10748, 0.10748, 0.10748, 1)
[node name="VBoxContainer" type="VBoxContainer" parent="." node_paths=PackedStringArray("item_list")]
clip_contents = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("2_hj2ta")
inventory = ExtResource("3_ty45s")
item_list = NodePath("ItemNavigation/HItemList")
[node name="ItemNavigation" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
[node name="MoveLeft" type="Button" parent="VBoxContainer/ItemNavigation"]
layout_mode = 2
text = "<"
[node name="HItemList" type="HBoxContainer" parent="VBoxContainer/ItemNavigation"]
layout_mode = 2
size_flags_horizontal = 3
script = ExtResource("4_yyk2a")
item_scene = ExtResource("5_uae8j")
[node name="MoveRight" type="Button" parent="VBoxContainer/ItemNavigation"]
layout_mode = 2
text = ">"
[node name="Details" type="HBoxContainer" parent="VBoxContainer" node_paths=PackedStringArray("icon_image", "description_label")]
layout_mode = 2
size_flags_vertical = 3
script = ExtResource("6_uae8j")
icon_image = NodePath("ItemDisplay/TextureRect")
description_label = NodePath("ItemDescription/Label")
[node name="Status" type="VBoxContainer" parent="VBoxContainer/Details"]
layout_mode = 2
size_flags_horizontal = 3
[node name="ItemDisplay" type="HBoxContainer" parent="VBoxContainer/Details"]
layout_mode = 2
size_flags_horizontal = 3
alignment = 1
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/Details/ItemDisplay"]
layout_mode = 2
size_flags_horizontal = 3
expand_mode = 5
stretch_mode = 4
[node name="ItemDescription" type="Control" parent="VBoxContainer/Details"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="VBoxContainer/Details/ItemDescription"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
autowrap_mode = 2
[connection signal="pressed" from="." to="." method="set_visible"]
[connection signal="pressed" from="VBoxContainer/ItemNavigation/MoveLeft" to="VBoxContainer/ItemNavigation/HItemList" method="move_left"]
[connection signal="selected" from="VBoxContainer/ItemNavigation/HItemList" to="VBoxContainer/Details" method="_on_updated"]
[connection signal="pressed" from="VBoxContainer/ItemNavigation/MoveRight" to="VBoxContainer/ItemNavigation/HItemList" method="move_right"]