open map via lua
open map via lua
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
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: open map via lua
Yes, it can be done: http://lua-api.factorio.com/latest/LuaP ... ap_enabled
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.
Code: Select all
-- example
game.players[playerId].minimap_enabled = false
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.
Re: open map via lua
full screen map
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: open map via lua
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.