Added debug inventory menu
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://dx6fv8n4jl5ku"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://dx6fv8n4jl5ku"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://yhtpoum3eek7" path="res://scenes/Entities/Rosa.tscn" id="1_7b7hx"]
|
||||
[ext_resource type="Script" uid="uid://c37crdel0m5mw" path="res://scripts/Map/Map.gd" id="1_ru75d"]
|
||||
@@ -11,6 +11,7 @@
|
||||
[ext_resource type="Script" uid="uid://c4d7nithqnx5y" path="res://scripts/Event/Quest/EventStartQuest.gd" id="7_brp0k"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkj630bhmnvsi" path="res://scenes/Entities/Sign.tscn" id="9_xfqoe"]
|
||||
[ext_resource type="Script" uid="uid://b41umpbgqfuc2" path="res://scripts/Event/Item/EventGetItem.gd" id="10_avybc"]
|
||||
[ext_resource type="Script" uid="uid://0ygswaohp7kj" path="res://scripts/Event/EventFlagModify.gd" id="12_ncdgy"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_e1h75"]
|
||||
sky_horizon_color = Color(0.59625, 0.6135, 0.6375, 1)
|
||||
@@ -44,6 +45,8 @@ interactEvent = NodePath("../../Events/TestConversation")
|
||||
|
||||
[node name="ItemOnGround" parent="Entities" instance=ExtResource("4_ejcqv")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.546944, -0.547748, -3.46628)
|
||||
itemType = 1
|
||||
quantity = 2
|
||||
|
||||
[node name="Map" type="Node3D" parent="."]
|
||||
metadata/_edit_lock_ = true
|
||||
@@ -75,6 +78,13 @@ omni_range = 281.646
|
||||
[node name="TestConversation" type="Node" parent="Events"]
|
||||
script = ExtResource("5_cg1ph")
|
||||
|
||||
[node name="EventFlagModify" type="Node" parent="Events/TestConversation"]
|
||||
script = ExtResource("12_ncdgy")
|
||||
action = 2
|
||||
event = 1
|
||||
eventFlag = 1
|
||||
metadata/_custom_type_script = "uid://0ygswaohp7kj"
|
||||
|
||||
[node name="Text 0" type="Node" parent="Events/TestConversation"]
|
||||
script = ExtResource("6_gxq5o")
|
||||
text = "I am giving you a quest to gather some ingredients."
|
||||
@@ -87,10 +97,15 @@ metadata/_custom_type_script = "uid://c4d7nithqnx5y"
|
||||
script = ExtResource("6_gxq5o")
|
||||
text = "Thanks for closing the quest menu"
|
||||
|
||||
[node name="Get Item" type="Node" parent="Events/TestConversation"]
|
||||
script = ExtResource("10_avybc")
|
||||
getType = 1
|
||||
metadata/_custom_type_script = "uid://b41umpbgqfuc2"
|
||||
|
||||
[node name="Text 2" type="Node" parent="Events/TestConversation"]
|
||||
script = ExtResource("6_gxq5o")
|
||||
text = "Thanks for taking that potion."
|
||||
|
||||
[node name="EventConversation" type="Node" parent="Events"]
|
||||
script = ExtResource("5_cg1ph")
|
||||
metadata/_custom_type_script = "uid://tkfc88q8m86f"
|
||||
|
||||
[node name="Get Item" type="Node" parent="Events"]
|
||||
script = ExtResource("10_avybc")
|
||||
metadata/_custom_type_script = "uid://b41umpbgqfuc2"
|
||||
|
@@ -1,9 +1,10 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b5bwpsh0gcicf"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://b5bwpsh0gcicf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dahhuhiu8u88b" path="res://scripts/Singleton/UI.gd" id="1_g3au4"]
|
||||
[ext_resource type="PackedScene" uid="uid://verg13jtqwvh" path="res://scenes/UI/DebugMenu.tscn" id="2_is0g4"]
|
||||
[ext_resource type="PackedScene" uid="uid://bfioi52hjn2kf" path="res://scenes/UI/QuestMenu.tscn" id="2_mpokx"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkx3l0kckf4a8" path="res://scenes/UI/VNTextbox.tscn" id="3_btpxp"]
|
||||
[ext_resource type="PackedScene" uid="uid://dl8iqhrpsplmk" path="res://scenes/UI/Inventory/FullInventoryMenu.tscn" id="5_6dyff"]
|
||||
|
||||
[node name="UI" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -17,8 +18,14 @@ script = ExtResource("1_g3au4")
|
||||
metadata/_custom_type_script = "uid://dahhuhiu8u88b"
|
||||
|
||||
[node name="QuestMenu" parent="." instance=ExtResource("2_mpokx")]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
|
||||
[node name="FullInventory" parent="." instance=ExtResource("5_6dyff")]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
anchors_preset = 0
|
||||
|
||||
[node name="VNTextbox" parent="." instance=ExtResource("3_btpxp")]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
|
@@ -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