more work on inventory
This commit is contained in:
19
UI/Inventory/UserInventory.gd
Normal file
19
UI/Inventory/UserInventory.gd
Normal file
@@ -0,0 +1,19 @@
|
||||
extends Control
|
||||
|
||||
|
||||
@export var items:Array = []
|
||||
@export var current_slot:int = 0
|
||||
@export var active_item:Dictionary = {}
|
||||
|
||||
|
||||
func _process(_delta):
|
||||
if current_slot == 0:
|
||||
return
|
||||
if Input.is_action_just_pressed("drop_item"):
|
||||
if items[current_slot]:
|
||||
print("ITEM IN SLOT: ", items[current_slot])
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user