Currently we are able to disable the mini map however there is no clear way to stop the main map from opening. Could we have open_map added to input actions so that we can disallow the action for a permission group?
Since we have access to LuaPlayer::open_map and LuaPlayer::close_map would it be possible to have an event for on_player_opened_map since the map is not considered a gui according to defines.gui_type and so cant be used with on_gui_opened.
Block map opening
- Cooldude2606
- Long Handed Inserter
- Posts: 86
- Joined: Sat Sep 16, 2017 9:04 pm
- Contact:
Block map opening
--- Developer for Explosive Gaming factorio community. Find our code on GitHub. Please contact me via our Discord. ---
- Cooldude2606
- Long Handed Inserter
- Posts: 86
- Joined: Sat Sep 16, 2017 9:04 pm
- Contact:
Re: Block map opening
I was making a scenario where it would be easier to have all players on the same force but hide the map so that they dont know where other players are. It would have been easier as I had no reason to have every player on a different force in order to hide location and explored chunks.
--- Developer for Explosive Gaming factorio community. Find our code on GitHub. Please contact me via our Discord. ---
-
- Long Handed Inserter
- Posts: 96
- Joined: Sun Mar 25, 2018 5:34 am
- Contact:
Re: Block map opening
Isn't there a permission group to disable this?
- Cooldude2606
- Long Handed Inserter
- Posts: 86
- Joined: Sat Sep 16, 2017 9:04 pm
- Contact:
Re: Block map opening
Based on the documentation there is one for every gui but not for the map.
--- Developer for Explosive Gaming factorio community. Find our code on GitHub. Please contact me via our Discord. ---