mirror of
https://github.com/MinetestForFun/mff_hud.git
synced 2024-12-22 16:50:34 +01:00
Initial commit
This commit is contained in:
commit
ce776002d0
2
depends.txt
Normal file
2
depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
hudbars?
|
9
init.lua
Normal file
9
init.lua
Normal file
@ -0,0 +1,9 @@
|
||||
local hotbar_size = minetest.setting_get("hotbar_size") or 16
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player:hud_set_hotbar_itemcount(hotbar_size)
|
||||
|
||||
player:hud_set_flags({crosshair = true, hotbar = true, healthbar = false, wielditem = true, breathbar = false})
|
||||
player:hud_set_hotbar_image("hud_hotbar.png")
|
||||
player:hud_set_hotbar_selected_image("hud_hotbar_selected.png")
|
||||
end)
|
BIN
textures/crosshair.png
Normal file
BIN
textures/crosshair.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 539 B |
BIN
textures/hud_hotbar.png
Normal file
BIN
textures/hud_hotbar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 B |
BIN
textures/hud_hotbar_selected.png
Normal file
BIN
textures/hud_hotbar_selected.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 305 B |
Loading…
Reference in New Issue
Block a user