mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Clamp hotbar selection to slots that exist (#14869)
This commit is contained in:
parent
39c2af9710
commit
98e51a0159
8 changed files with 51 additions and 11 deletions
|
@ -8225,7 +8225,9 @@ child will follow movement and rotation of that bone.
|
|||
* See `hud_set_flags` for a list of flags that can be toggled.
|
||||
* `hud_set_hotbar_itemcount(count)`: sets number of items in builtin hotbar
|
||||
* `count`: number of items, must be between `1` and `32`
|
||||
* If `count` exceeds the `"main"` list size, the list size will be used instead.
|
||||
* `hud_get_hotbar_itemcount()`: returns number of visible items
|
||||
* This value is also clamped by the `"main"` list size.
|
||||
* `hud_set_hotbar_image(texturename)`
|
||||
* sets background image for hotbar
|
||||
* `hud_get_hotbar_image()`: returns texturename
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue