1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Clamp hotbar selection to slots that exist (#14869)

This commit is contained in:
1F616EMO~nya
2024-08-12 21:35:13 +08:00
committed by GitHub
parent 39c2af9710
commit 98e51a0159
8 changed files with 51 additions and 11 deletions

View File

@@ -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