Skip to content

Commit 0b6d0f7

Browse files
Fix box opened on start
1 parent b9fbab8 commit 0b6d0f7

File tree

6 files changed

+5
-32
lines changed

6 files changed

+5
-32
lines changed

addons/inventory-system-demos/fps/box_inventory.tscn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
[ext_resource type="AudioStream" uid="uid://b3gtnm1sd6eyg" path="res://addons/inventory-system-demos/assets/kenney_rpgaudio/Audio/doorClose_1.ogg" id="6_x0aos"]
99

1010
[sub_resource type="InteractAction" id="Resource_opm00"]
11-
input = "interact"
1211
description = "Open Box"
13-
code = 0
1412

1513
[sub_resource type="BoxShape3D" id="BoxShape3D_x2vdb"]
1614

addons/inventory-system-demos/fps/fps_demo.tscn

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -4)
133133
slots = Array[Slot]([])
134134
inventory_name = "Dynamic Inventory"
135135

136-
[node name="box" parent="Box Inventory" index="2"]
137-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
138-
139-
[node name="boxOpen" parent="Box Inventory" index="3"]
140-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
141-
visible = true
142-
143136
[node name="Box Inventory2" parent="." instance=ExtResource("9_ia5mg")]
144137
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.65824, 0.5, -4)
145138

@@ -149,13 +142,6 @@ create_slot_if_needed = false
149142
remove_slot_if_empty = false
150143
inventory_name = "Static Inventory"
151144

152-
[node name="box" parent="Box Inventory2" index="2"]
153-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
154-
155-
[node name="boxOpen" parent="Box Inventory2" index="3"]
156-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
157-
visible = true
158-
159145
[node name="Box Inventory3" parent="." instance=ExtResource("9_ia5mg")]
160146
transform = Transform3D(-0.0526846, 0, -0.998611, 0, 1, 0, 0.998611, 0, -0.0526846, 4.17498, 0.5, -0.65866)
161147

@@ -165,13 +151,6 @@ create_slot_if_needed = false
165151
remove_slot_if_empty = false
166152
inventory_name = "Tools Inventory"
167153

168-
[node name="box" parent="Box Inventory3" index="2"]
169-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
170-
171-
[node name="boxOpen" parent="Box Inventory3" index="3"]
172-
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
173-
visible = true
174-
175154
[node name="Workbench" parent="." instance=ExtResource("11_fkc5i")]
176155

177156
[node name="Campfire" parent="." instance=ExtResource("16_47qja")]

addons/inventory-system-demos/fps/player.tscn

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=14 format=3 uid="uid://bnr02xnvoiun5"]
1+
[gd_scene load_steps=13 format=3 uid="uid://bnr02xnvoiun5"]
22

33
[ext_resource type="Script" path="res://addons/inventory-system-demos/fps/player.gd" id="1_qhbqk"]
44
[ext_resource type="Script" path="res://addons/inventory-system/extras/hand_item_holder_3d.gd" id="2_toyi4"]
@@ -16,8 +16,6 @@
1616
[sub_resource type="BoxMesh" id="BoxMesh_d1alo"]
1717
size = Vector3(0.125, 0.125, 0.125)
1818

19-
[sub_resource type="Slot" id="Slot_fc6c0"]
20-
2119
[node name="Player" type="CharacterBody3D"]
2220
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
2321
collision_layer = 2
@@ -47,7 +45,7 @@ raycast = NodePath("../Camera3D/RayCast3D")
4745
camera_3d = NodePath("../Camera3D")
4846

4947
[node name="InventoryHandler" parent="CharacterInventorySystem" index="0"]
50-
transaction_slot = SubResource("Slot_fc6c0")
48+
transaction_slot = null
5149
database = ExtResource("4_ljenf")
5250

5351
[node name="Inventory" parent="CharacterInventorySystem/InventoryHandler" index="0"]

addons/inventory-system-demos/mp/mp_demo.tscn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -4)
105105

106106
[node name="Inventory" parent="Box Inventory" index="1"]
107107
slots = Array[Slot]([SubResource("Resource_6euhu"), null, null, null, null, null, null, null, null, null, null, null, null, null, null, null])
108-
is_open = true
109108
inventory_name = "Dynamic Inventory"
110109

111110
[node name="Box Inventory2" parent="." instance=ExtResource("9_y0513")]

addons/inventory-system/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# Godot 4+ specific ignores
22
.godot/
3+
~*.dll
4+
*.tmp

addons/inventory-system/extras/character_inventory_system.tscn

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
[gd_scene load_steps=8 format=3 uid="uid://cw4rwxc3dyovc"]
1+
[gd_scene load_steps=7 format=3 uid="uid://cw4rwxc3dyovc"]
22

33
[ext_resource type="Script" path="res://addons/inventory-system/extras/character_inventory_system.gd" id="1_mwfdb"]
44
[ext_resource type="Script" path="res://addons/inventory-system/extras/object_placer.gd" id="9_3ia0e"]
55

6-
[sub_resource type="Slot" id="Slot_3cd5c"]
7-
86
[sub_resource type="CategorizedSlot" id="Resource_rb0kk"]
97

108
[sub_resource type="CategorizedSlot" id="Resource_y52mx"]
@@ -18,7 +16,6 @@ script = ExtResource("1_mwfdb")
1816

1917
[node name="InventoryHandler" type="InventoryHandler" parent="."]
2018
inventories_path = Array[NodePath]([NodePath("Inventory"), NodePath("EquipmentInventory")])
21-
transaction_slot = SubResource("Slot_3cd5c")
2219

2320
[node name="Inventory" type="Inventory" parent="InventoryHandler"]
2421
slots = Array[Slot]([null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null])

0 commit comments

Comments
 (0)