forked from mtcontrib/hangglider
parent
54afc348ee
commit
b65b6473c7
10
init.lua
10
init.lua
@ -49,7 +49,9 @@
|
|||||||
-- 2018-12-29
|
-- 2018-12-29
|
||||||
-- Physics overrides use player_monoids mod if available
|
-- Physics overrides use player_monoids mod if available
|
||||||
|
|
||||||
|
-- Modifications by SwissalpS
|
||||||
|
-- 2022-05-16
|
||||||
|
-- Add Z-index to theoretically be behind hotbar and practically behind other HUDs
|
||||||
|
|
||||||
local HUD_Overlay = true --show glider struts as overlay on HUD
|
local HUD_Overlay = true --show glider struts as overlay on HUD
|
||||||
local debug = false --show debug info in top-center of hud
|
local debug = false --show debug info in top-center of hud
|
||||||
@ -302,8 +304,10 @@ minetest.register_on_joinplayer(function(player)
|
|||||||
position = {x=0, y=0},
|
position = {x=0, y=0},
|
||||||
scale = {x=-100, y=-100},
|
scale = {x=-100, y=-100},
|
||||||
alignment = {x=1, y=1},
|
alignment = {x=1, y=1},
|
||||||
offset = {x=0, y=0}
|
offset = {x=0, y=0},
|
||||||
}) end
|
z_index = -150
|
||||||
|
})
|
||||||
|
end
|
||||||
if debug then
|
if debug then
|
||||||
hangglider.debug[pname] = {id = player:hud_add({hud_elem_type = "text",
|
hangglider.debug[pname] = {id = player:hud_add({hud_elem_type = "text",
|
||||||
position = {x=0.5, y=0.1},
|
position = {x=0.5, y=0.1},
|
||||||
|
Loading…
Reference in New Issue
Block a user