Skip to content

five-on-it / apps/client/src/gui/item-blocks / containerBlock

Function: containerBlock() ​

containerBlock(container, inventory, cash, t, transfer): BoxSpec

Defined in: apps/client/src/gui/item-blocks.ts:74

The open container's panel: what it holds (a click takes it: n > 0 moves its slot n − 1) and what the player holds (a click puts it in: n < 0 moves the player's slot −n − 1); a shop's: its stock with the prices (a click buys one) and the player's Cash.

Parameters ​

container ​

ContainerView

inventory ​

InventoryView | undefined

cash ​

number

t ​

Translate

transfer ​

(n) => void

Returns ​

BoxSpec