mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-23 19:09:45 +00:00
Merge pull request #1043 from ostermine/feat/hotbar-control
make hotbar size and layout configurable
This commit is contained in:
commit
bb73e3f354
16 changed files with 188 additions and 20 deletions
|
|
@ -218,6 +218,8 @@ Element is a container. Does not have specific attributes.
|
|||
> [!WARNING]
|
||||
> Slots not linked to an inventory will not be displayed. "Linked to an inventory" refers to the association between an inventory UI element and an inventory via an ID. This link can be explicitly established using `inventory_ui.inventory = inventory_id`. [(see ui.md)](scripting/ui.md#inventory)
|
||||
|
||||
A pack can replace the player inventory screen and the hotbar with its own layouts using `inventory-layout` (`"core:inventory"` by default) and `hotbar-layout` in `config/defaults.toml`. The root element of such a layout must be `inventory`, it is bound to the player inventory. The hotbar layout is placed at the bottom center of the screen unless it has `position-func`.
|
||||
|
||||
## *slot*
|
||||
|
||||
Element must be a direct sub-element of *inventory*.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue