Files
gymkhana-actions/docs/api/ESCInventory.md
Dennis Ploeger 58d880101d Optimized Docs (#7)
Authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-06-22 23:06:20 +02:00

902 B

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