From ce776002d036cfcbba7639e91daf41a1b731bf8f Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Thu, 17 Sep 2015 14:50:48 +0200 Subject: [PATCH] Initial commit --- depends.txt | 2 ++ init.lua | 9 +++++++++ textures/crosshair.png | Bin 0 -> 539 bytes textures/hud_hotbar.png | Bin 0 -> 142 bytes textures/hud_hotbar_selected.png | Bin 0 -> 305 bytes 5 files changed, 11 insertions(+) create mode 100644 depends.txt create mode 100644 init.lua create mode 100644 textures/crosshair.png create mode 100644 textures/hud_hotbar.png create mode 100644 textures/hud_hotbar_selected.png 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 0000000000000000000000000000000000000000..ed328f618930cc7f22bdf21e1754b00a7d98c9d9 GIT binary patch literal 539 zcmeAS@N?(olHy`uVBq!ia0vp^HXzKw3=&b&bO2I^1AIbU72X#7|Nq~|SSZFtxjbC0 zEzPte%c3jGq$}5Ka*1_Wm`ZuLa#ge@P`oY6rZ>;Lzre;xizC88z9Z8Fs36QvHqA%9 zJ;SIw+cer)zBSXnJ;S6Y*UVLy%imnAC`=b@rZG^kE8C!060|NZ;-|KC69DLmmo@7R|F`2{mDFhhX=1PB3v6c9)Q zfh-*O`$tFDx3%?wz~srZXD?auV&6@V@L(#+pC`WO#vdT3AdaU z@+>VC5D9S*oWeMVJ>bXx{imKh)w{9xM-Qjr_ji5IYYLqkepft->lIXXJ7el+lpFqV z_I{g&uNo(rXA1syja<(6+5ULs3ZtZp8*F?Njudpes_1?97+fxW)pZ!;;4gnhbdodDwXbnb}ro2QexJDWA99 SIQ=+KF@vY8pUXO@geCx>!5}jL literal 0 HcmV?d00001 diff --git a/textures/hud_hotbar_selected.png b/textures/hud_hotbar_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..b104723e2b09c6f540f4f0bb193f5c593ecbbc32 GIT binary patch literal 305 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}a)3{WD=#lEA0Hn-Kfi#0fRK=o zsHmutl9IBrvZ|`8y1Kffqob3PldG$%ySux$x3`avkFT$pPwH@w(x>T(M8eXOJX<0jy(oiCsz{W2eK9eFv7uw3zu|&((#@y zjv*Dd=AJj_YjEIk37lLUHTmGTd;g~-L^Nhpp7q!-El@4YUg4K?RsZ!iVZ#p(8o54i za=c=&DHn@mvv4FO#rwvSl<8u literal 0 HcmV?d00001