Add coordinate tooltip to named teleports

master
Wuzzy 2020-09-08 21:47:00 +02:00
parent df6c4d659f
commit 453bccbe23
1 changed files with 1 additions and 0 deletions

View File

@ -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