mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Use player:set_hotbar_image() instead of hardcoded hotbar.png
This commit is contained in:
parent
5b518ed2fe
commit
7860097eda
10 changed files with 98 additions and 10 deletions
|
@ -1618,6 +1618,10 @@ Player-only: (no-op for other objects)
|
|||
^ if a flag is nil, the flag is not modified
|
||||
- hud_set_hotbar_itemcount(count): sets number of items in builtin hotbar
|
||||
^ count: number of items, must be between 1 and 23
|
||||
- hud_set_hotbar_image(texturename)
|
||||
^ sets background image for hotbar
|
||||
- hud_set_hotbar_selected_image(texturename)
|
||||
^ sets image for selected item of hotbar
|
||||
|
||||
InvRef: Reference to an inventory
|
||||
methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue