Page 1 of 1
open map via lua
Posted: Wed Sep 21, 2016 1:33 am
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
Re: open map via lua
Posted: Wed Sep 21, 2016 2:04 am
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.
Re: open map via lua
Posted: Wed Sep 21, 2016 6:49 pm
by osldgoth
full screen map
Re: open map via lua
Posted: Wed Sep 21, 2016 6:55 pm
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