commit ce776002d036cfcbba7639e91daf41a1b731bf8f Author: LeMagnesium Date: Thu Sep 17 14:50:48 2015 +0200 Initial commit diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..9328b6d --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +default +hudbars? diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..ef9f329 --- /dev/null +++ b/init.lua @@ -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) diff --git a/textures/crosshair.png b/textures/crosshair.png new file mode 100644 index 0000000..ed328f6 Binary files /dev/null and b/textures/crosshair.png differ diff --git a/textures/hud_hotbar.png b/textures/hud_hotbar.png new file mode 100644 index 0000000..490c74e Binary files /dev/null and b/textures/hud_hotbar.png differ diff --git a/textures/hud_hotbar_selected.png b/textures/hud_hotbar_selected.png new file mode 100644 index 0000000..b104723 Binary files /dev/null and b/textures/hud_hotbar_selected.png differ