diff --git a/mods/hudbars/depends.txt b/mods/hudbars/depends.txt index e69de29b..4ad96d51 100755 --- a/mods/hudbars/depends.txt +++ b/mods/hudbars/depends.txt @@ -0,0 +1 @@ +default diff --git a/mods/hudbars/hud_legacy.lua b/mods/hudbars/hud_legacy.lua new file mode 100755 index 00000000..bbdb9231 --- /dev/null +++ b/mods/hudbars/hud_legacy.lua @@ -0,0 +1,9 @@ +-- Miscellaneous legacies from our old mod, HUD by BlockMen +-- + +minetest.register_on_joinplayer(function(player) + player:hud_set_flags({crosshair = true, hotbar = true, healthbar = false, wielditem = true, breathbar = false}) + + player:hud_set_hotbar_image("hudbars_hotbar.png") + player:hud_set_hotbar_selected_image("hudbars_hotbar_selected.png") +end) diff --git a/mods/hudbars/init.lua b/mods/hudbars/init.lua index f64d20f2..618b1f66 100755 --- a/mods/hudbars/init.lua +++ b/mods/hudbars/init.lua @@ -357,3 +357,6 @@ minetest.register_globalstep(function(dtime) end if timer > 4 then timer = 0 end end) + +-- Our legacy +dofile(minetest.get_modpath("hudbars").."/hud_legacy.lua") diff --git a/mods/hudbars/textures/crosshair.png b/mods/hudbars/textures/crosshair.png new file mode 100755 index 00000000..5822e713 Binary files /dev/null and b/mods/hudbars/textures/crosshair.png differ diff --git a/mods/hudbars/textures/hudbars_hotbar.png b/mods/hudbars/textures/hudbars_hotbar.png new file mode 100755 index 00000000..cec2ae09 Binary files /dev/null and b/mods/hudbars/textures/hudbars_hotbar.png differ diff --git a/mods/hudbars/textures/hudbars_hotbar_selected.png b/mods/hudbars/textures/hudbars_hotbar_selected.png new file mode 100755 index 00000000..d961f1ae Binary files /dev/null and b/mods/hudbars/textures/hudbars_hotbar_selected.png differ diff --git a/mods/hudbars/textures/wieldhand.png b/mods/hudbars/textures/wieldhand.png new file mode 100755 index 00000000..2307ba4e Binary files /dev/null and b/mods/hudbars/textures/wieldhand.png differ