Optionally append itemstring
parent
cb693966e8
commit
7d424b7783
5
init.lua
5
init.lua
|
@ -121,6 +121,11 @@ minetest.register_globalstep(function(dtime)
|
|||
|
||||
-- Print description
|
||||
if desc then
|
||||
-- Optionally append the 'technical' itemname
|
||||
local tech = minetest.settings:get_bool("show_wielded_item_itemname", false)
|
||||
if tech and desc ~= "" then
|
||||
desc = desc .. " ["..wname.."]"
|
||||
end
|
||||
player:hud_change(huds[player_name], 'text', desc)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#If true, also append the 'technical' itemname.
|
||||
show_wielded_item_itemname (Show technical itemname) bool false
|
||||
|
||||
#Use this setting to manually set the vertical offset of the label which shows
|
||||
#the name of the wielded item. The offset is in pixels from the bottom of the
|
||||
#screen.
|
||||
|
|
Loading…
Reference in New Issue