Page 1 of 1

[1.1] Map view and map tags related questions

Posted: Tue Dec 08, 2020 10:39 pm
by templar4522
I'm working on a mod to interact with map tags similarly to the previous versions of the game, but I encountered a few stumbling blocks. I'm a newbie when it comes to factorio modding, so maybe I have looked in all the places except the right one, so here I am asking for clues.

The most important issue I have is this:

I have my custom input event creating a tag and everything works fine, but I'd like to present the user with the vanilla edit dialog.
The problem is I can't find a way to do it. Raising some event to mimic a player action and trigger the correct respons doesn't seem an option, and I can't see a direct call from LuaPlayer like open_map.


The other issue, a minor thing tbh, is this: what is the correct way to toggle LuaPlayer.map_view_settings ? And what would the handle be for the new map filters?

Re: [1.1] Map view and map tags related questions

Posted: Wed Dec 09, 2020 6:27 am
by PFQNiet
You will need to re-create the vanilla GUI yourself. You can't invoke it.