Add hotbar images, configure inventory style
This commit is contained in:
parent
fe2cd30111
commit
3a50109fba
@ -16,6 +16,7 @@ Textures:
|
|||||||
- Emitter, detector textures: Derivate works of xdecor textures by jp (CC0)
|
- Emitter, detector textures: Derivate works of xdecor textures by jp (CC0)
|
||||||
- Mirror textures: by Wuzzy (CC0)
|
- Mirror textures: by Wuzzy (CC0)
|
||||||
- Screwdriver texture: by 12Me21 (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:
|
Models:
|
||||||
- Player models comes from Minetest Game (see license of Minetest Game 5.4.1 for details)
|
- Player models comes from Minetest Game (see license of Minetest Game 5.4.1 for details)
|
||||||
|
@ -2,9 +2,11 @@ lzr_gui = {}
|
|||||||
|
|
||||||
lzr_gui.set_play_gui = function(player)
|
lzr_gui.set_play_gui = function(player)
|
||||||
player:hud_set_hotbar_itemcount(3)
|
player:hud_set_hotbar_itemcount(3)
|
||||||
|
player:hud_set_hotbar_image("lzr_gui_hotbar_3.png")
|
||||||
end
|
end
|
||||||
lzr_gui.set_editor_gui = function(player)
|
lzr_gui.set_editor_gui = function(player)
|
||||||
player:hud_set_hotbar_itemcount(8)
|
player:hud_set_hotbar_itemcount(8)
|
||||||
|
player:hud_set_hotbar_image("lzr_gui_hotbar_8.png")
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
@ -12,5 +14,10 @@ minetest.register_on_joinplayer(function(player)
|
|||||||
player:set_inventory_formspec(
|
player:set_inventory_formspec(
|
||||||
"formspec_version[4]size[11,6]list[current_player;main;0.5,0.5;8,4]"
|
"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)
|
lzr_gui.set_play_gui(player)
|
||||||
end)
|
end)
|
||||||
|
BIN
mods/lzr_gui/textures/lzr_gui_hotbar_3.png
Normal file
BIN
mods/lzr_gui/textures/lzr_gui_hotbar_3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
mods/lzr_gui/textures/lzr_gui_hotbar_8.png
Normal file
BIN
mods/lzr_gui/textures/lzr_gui_hotbar_8.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
BIN
mods/lzr_gui/textures/lzr_gui_hotbar_selected.png
Normal file
BIN
mods/lzr_gui/textures/lzr_gui_hotbar_selected.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 412 B |
Loading…
x
Reference in New Issue
Block a user