[1.1] Map view and map tags related questions

Place to get help with not working mods / modding interface.
Post Reply
User avatar
templar4522
Burner Inserter
Burner Inserter
Posts: 14
Joined: Fri Jan 26, 2018 5:10 am
Contact:

[1.1] Map view and map tags related questions

Post 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?

PFQNiet
Fast Inserter
Fast Inserter
Posts: 235
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

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

Post by PFQNiet »

You will need to re-create the vanilla GUI yourself. You can't invoke it.

Post Reply

Return to “Modding help”