Skip to content

marble3 / createInventoryHud

Function: createInventoryHud() ​

createInventoryHud(inventory, parent): object

Defined in: src/inventory.ts:39

Shows an inventory as a row of chips at the bottom left of parent, redrawn on every change and hidden while empty. dispose() on the result removes it.

Parameters ​

inventory ​

Inventory

parent ​

HTMLElement

Returns ​

object

dispose ​

dispose: () => void

Returns ​

void