Page 1 of 1

Add surface to LuaPlayer.open_map(position, scale)

Posted: Tue Jul 09, 2019 8:40 pm
by bobingabout
As the title says, I want to use open_map to open the map at the position of an entity, that may not be on a different surface. I currently can't do this because the function doesn't take surface as an argument.

Re: Add surface to LuaPlayer.open_map(position, scale)

Posted: Tue Jul 09, 2019 9:07 pm
by posila
At the moment GameView doesn't support rendering surface other than the one local player is on. For remote-viewing other surfaces, you'll need to use camera widget or minimap widget.

Re: Add surface to LuaPlayer.open_map(position, scale)

Posted: Thu Jul 11, 2019 12:06 pm
by I_IBlackI_I
I would also love this feature, or make tags on a minimap element clickable. Use case would be to draw a map with locations on another surface, when a player clicks the tag they can teleport to that server.

Re: Add surface to LuaPlayer.open_map(position, scale)

Posted: Thu Jul 11, 2019 12:10 pm
by Godmave
I_IBlackI_I wrote: Thu Jul 11, 2019 12:06 pm or make tags on a minimap element clickable. Use case would be to draw a map with locations on another surface, when a player clicks the tag they can teleport to that server.
Or add x/y offset to the on_gui_click event, so we can deduce what the player clicked ourselves :)