Hotbar System #
The hotbar consists of a certain number of slots that are coupled to inputs. When these inputs are triggered, the default action is used for that item (e.g., consuming an apple). Items from the inventory can be coupled to the hotbar by dragging and dropping an item onto a hotbar slot.
The hotbar consists of its own slots with the same struct as the inventory slots. This way, an item can exist in both the inventory and the hotbar, linked through the inventory struct.
Hotbar Actions #
The following actions can be performed on the hotbar:
- Link Item: Drag an item from the inventory to a hotbar slot to add it.
- Delink Item: Right-click the hotbar slot or drag the item away from any other hotbar slots to remove it.
- Swap Item: Swap items between slots or with another item.