ESCInventory

Extends: Control

Description

Manages the inventory on the GUI connected to the inventory_ui_container variable

Property Descriptions

inventory_ui_container

export var inventory_ui_container = ""

Define the actual container node to add items as children of. Should be a Container.

items_ids_in_inventory

var items_ids_in_inventory: Dictionary

A registry of inventory ESCInventoryItem nodes

Method Descriptions

add_new_item_by_id

func add_new_item_by_id(item_id: String) -> void

add item to Inventory UI using its id set in its scene

remove_item_by_id

func remove_item_by_id(item_id: String) -> void

remove item fromInventory UI using its id set in its scene