ESCInventoryContainer

Extends: Control

Description

Inventory container handler that acts as a base for UIs inventory containers

Method Descriptions

is_empty

func is_empty() -> bool

Get whether the inventory container currently is empty Returns Whether the container is empty or not

add_item

func add_item(inventory_item: ESCInventoryItem) -> ESCInventoryButton

Add a new item into the container and return the control generated for it so its events can be handled by the inputs manager

Parameters

  • inventory_item: Item to add Returns The button generated for the item

remove_item

func remove_item(inventory_item: ESCInventoryItem)

Remove an item from the container

Parameters

  • inventory_item: Item to remove