Added hotbar backgrounds for spectate mode

master
Zughy 2021-02-17 16:12:34 +01:00
parent 86aa73faf3
commit 3b997feb41
8 changed files with 2 additions and 1 deletions

View File

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

View File

Before

Width:  |  Height:  |  Size: 172 B

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 187 B