Add coordinate tooltip to named teleports
parent
df6c4d659f
commit
453bccbe23
1
init.lua
1
init.lua
|
@ -157,6 +157,7 @@ teleports.set_formspec = function(pos, shown_teleports)
|
|||
end
|
||||
if EachTeleport["name"] then
|
||||
buttons = buttons.."button_exit["..x..","..y..";3.5,0.5;tp"..i..";"..F(S("GO> @1",EachTeleport.name)).."]";
|
||||
buttons = buttons.."tooltip[tp"..i..";"..F(S("(@1, @2, @3)", EachTeleport.pos.x,EachTeleport.pos.y,EachTeleport.pos.z)).."]";
|
||||
else
|
||||
buttons = buttons.."button_exit["..x..","..y..";3.5,0.5;tp"..i..";"..F(S("GO> (@1, @2, @3)",EachTeleport.pos.x,EachTeleport.pos.y,EachTeleport.pos.z)).."]";
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue