The solution is to add the following to the data.lua of your mod.
Code: Select all
data.raw['tile']['landfill']["autoplace"] = {}
Code: Select all
data.raw['tile']['landfill']["autoplace"] = {}
Or add x/y offset to the on_gui_click event, so we can deduce what the player clicked ourselvesI_IBlackI_I wrote: βThu Jul 11, 2019 12:06 pmor 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.
Code: Select all
/c game.print(serpent.line(game.player.selected.get_control_behavior().disabled))