Added hotbar backgrounds for spectate mode
@ -105,7 +105,7 @@ function arena_lib.enter_editor(sender, mod, arena_name)
|
||||
player:get_meta():set_string("arena_lib_editor.arena", arena_name)
|
||||
|
||||
player:hud_set_hotbar_itemcount(9)
|
||||
player:hud_set_hotbar_image("arenalib_gui_hotbar.png")
|
||||
player:hud_set_hotbar_image("arenalib_gui_hotbar9.png")
|
||||
|
||||
-- se c'è almeno uno spawner, teletrasporto
|
||||
if next(arena.spawn_points) then
|
||||
|
@ -305,6 +305,7 @@ function override_hotbar(player, mod, arena)
|
||||
end
|
||||
|
||||
minetest.after(0, function()
|
||||
player:hud_set_hotbar_image("arenalib_gui_hotbar" .. #tools .. ".png")
|
||||
player:hud_set_hotbar_itemcount(#tools)
|
||||
player:get_inventory():set_list("main", tools)
|
||||
end)
|
||||
|
BIN
textures/arenalib_gui_hotbar2.png
Normal file
After Width: | Height: | Size: 126 B |
BIN
textures/arenalib_gui_hotbar3.png
Normal file
After Width: | Height: | Size: 132 B |
BIN
textures/arenalib_gui_hotbar4.png
Normal file
After Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 172 B After Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 185 B After Width: | Height: | Size: 168 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 187 B |