Add hotbar images, configure inventory style

master
Wuzzy 2022-01-10 18:46:13 +01:00
parent fe2cd30111
commit 3a50109fba
5 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,7 @@ Textures:
- Emitter, detector textures: Derivate works of xdecor textures by jp (CC0)
- Mirror textures: by Wuzzy (CC0)
- Screwdriver texture: by 12Me21 (CC0)
- Hotbar textures are a recolored version from from the hotbar textures of the Isabella Texture Pack by Bonemouse (http://www.minecraftforum.net/topic/242175-Isabella/) (CC BY 3.0)
Models:
- Player models comes from Minetest Game (see license of Minetest Game 5.4.1 for details)

View File

@ -2,9 +2,11 @@ lzr_gui = {}
lzr_gui.set_play_gui = function(player)
player:hud_set_hotbar_itemcount(3)
player:hud_set_hotbar_image("lzr_gui_hotbar_3.png")
end
lzr_gui.set_editor_gui = function(player)
player:hud_set_hotbar_itemcount(8)
player:hud_set_hotbar_image("lzr_gui_hotbar_8.png")
end
minetest.register_on_joinplayer(function(player)
@ -12,5 +14,10 @@ minetest.register_on_joinplayer(function(player)
player:set_inventory_formspec(
"formspec_version[4]size[11,6]list[current_player;main;0.5,0.5;8,4]"
)
player:set_formspec_prepend([=[
listcolors[#5c4432;#a87d5d;#3b2b20;#b75647;#ffffff]
bgcolor[#503b2c;false]
style_type[button;bgcolor=#5c4432]]=])
player:hud_set_hotbar_selected_image("lzr_gui_hotbar_selected.png")
lzr_gui.set_play_gui(player)
end)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B