Added debug inventory menu
This commit is contained in:
@@ -30,6 +30,14 @@ layout_mode = 2
|
||||
text = "Prototype Quests
|
||||
"
|
||||
|
||||
[node name="Inventory" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = "Player Inventory"
|
||||
|
||||
[node name="Event" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = "Event Flags"
|
||||
|
||||
[node name="Cutscene" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
disabled = true
|
||||
|
42
scenes/UI/Inventory/FullInventoryMenu.tscn
Normal file
42
scenes/UI/Inventory/FullInventoryMenu.tscn
Normal file
@@ -0,0 +1,42 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dl8iqhrpsplmk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cla3ph1j2ligp" path="res://scripts/UI/Inventory/FullInventoryMenu.gd" id="1_m5r8e"]
|
||||
[ext_resource type="PackedScene" uid="uid://dmu8i175kp35q" path="res://scenes/UI/Inventory/ItemLine.tscn" id="1_mmy80"]
|
||||
|
||||
[node name="FullInventory" type="Panel" node_paths=PackedStringArray("itemList")]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_m5r8e")
|
||||
itemLine = ExtResource("1_mmy80")
|
||||
itemList = NodePath("VBoxContainer/ScrollContainer/ItemList")
|
||||
metadata/_custom_type_script = "uid://cla3ph1j2ligp"
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="ItemList" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="ItemLine" parent="VBoxContainer/ScrollContainer/ItemList" instance=ExtResource("1_mmy80")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Add Item"
|
22
scenes/UI/Inventory/ItemLine.tscn
Normal file
22
scenes/UI/Inventory/ItemLine.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dmu8i175kp35q"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dgblia2ukssbe" path="res://scripts/UI/Inventory/ItemLine.gd" id="1_mcq7n"]
|
||||
|
||||
[node name="ItemLine" type="HBoxContainer"]
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 12.0
|
||||
grow_horizontal = 2
|
||||
script = ExtResource("1_mcq7n")
|
||||
metadata/_custom_type_script = "uid://dgblia2ukssbe"
|
||||
|
||||
[node name="ItemName" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Potion"
|
||||
|
||||
[node name="ItemQuantity" type="Label" parent="."]
|
||||
custom_minimum_size = Vector2(24, 0)
|
||||
layout_mode = 2
|
||||
text = "255"
|
||||
horizontal_alignment = 2
|
Reference in New Issue
Block a user