mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 08:05:18 +02:00
Clamp hotbar selection to slots that exist (#14869)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user