open map via lua

Place to post guides, observations, things related to modding that are not mods themselves.
osldgoth
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Feb 26, 2015 3:52 am
Contact:

open map via lua

Post by osldgoth »

Does anyone know if there is a way to open/close the map using lua? or is knowing if/when the map is open/closed possible with lua? thanks
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: open map via lua

Post by aubergine18 »

Yes, it can be done: http://lua-api.factorio.com/latest/LuaP ... ap_enabled

Code: Select all

-- example
game.players[playerId].minimap_enabled = false
See also: http://lua-api.factorio.com/latest/Conc ... ewSettings

EDIT: If you're referring to the full screen overview map then I don't think there's a way to do that currently.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
osldgoth
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Thu Feb 26, 2015 3:52 am
Contact:

Re: open map via lua

Post by osldgoth »

full screen map
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: open map via lua

Post by aubergine18 »

No way to do that currently. Suggest posting in API requests forum to ask for new API feature. It would be great if all aspects of vanilla UI could be moddable. viewforum.php?f=28
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Modding discussion”