Commit f5fea615 authored by Julia Santos's avatar Julia Santos

Fixed inventory bug

parent 150266c3
......@@ -167,17 +167,11 @@ visible = false
script = ExtResource( 4 )
items = [ NodePath("Laundry door"), NodePath("Groceries"), NodePath("Stool"), NodePath("Noise") ]
[node name="Sprite2" parent="Laundry area/Noise/Hitbox" index="0"]
frame = 0
[node name="Kitchen" parent="." instance=ExtResource( 8 )]
visible = false
script = ExtResource( 4 )
items = [ NodePath("Fridge"), NodePath("Cabinet"), NodePath("Stool"), NodePath("Granola bar"), NodePath("Sink"), NodePath("Noise") ]
[node name="Sprite2" parent="Kitchen/Noise/Hitbox" index="0"]
frame = 0
[node name="Fridge" parent="." instance=ExtResource( 17 )]
visible = false
script = ExtResource( 4 )
......@@ -203,6 +197,9 @@ visible = false
script = ExtResource( 4 )
items = [ NodePath("Balcony door"), NodePath("Plants"), NodePath("Lab notes"), NodePath("Yoga mat"), NodePath("Front door"), NodePath("Noise"), NodePath("Yoga mat2") ]
[node name="Sprite2" parent="Living room/Noise/Hitbox" index="0"]
frame = 0
[node name="Living room - Notepad" parent="." instance=ExtResource( 32 )]
visible = false
script = ExtResource( 4 )
......@@ -213,9 +210,6 @@ visible = false
script = ExtResource( 4 )
items = [ NodePath("Door to neighbor"), NodePath("Door to Moxie"), NodePath("Trash chute"), NodePath("Neighbor doorbell"), NodePath("Noise") ]
[node name="Sprite2" parent="Hallway/Noise/Hitbox" index="0"]
frame = 0
[node name="Balcony" parent="." instance=ExtResource( 24 )]
visible = false
script = ExtResource( 4 )
......@@ -226,9 +220,6 @@ visible = false
script = ExtResource( 4 )
items = [ NodePath("Ladder"), NodePath("Neighbor to balcony"), NodePath("Neighbor"), NodePath("Reptile memorabilia"), NodePath("Toolbox"), NodePath("Screwdriver"), NodePath("Neighbor to hallway"), NodePath("Dialogue arrow"), NodePath("Noise") ]
[node name="Sprite3" parent="Neighbor\'s room/Noise/Hitbox" index="0"]
frame = 0
[node name="Neighbor\'s balcony" parent="." instance=ExtResource( 23 )]
visible = false
script = ExtResource( 4 )
......
......@@ -46,12 +46,14 @@ func _on_Inventory_right_pressed():
if (inventory.get_item_count() > firstIndex + 5):
firstIndex = firstIndex + 5
updateUI()
unselect_all()
func _on_Inventory_left_pressed():
if firstIndex != 0:
firstIndex = firstIndex - 5
updateUI()
unselect_all()
func disableAll():
var j = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment