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
- Fast Inserter
- Posts: 103
- Joined: Sat Sep 16, 2017 9:04 pm
- Contact:
- Cooldude2606
- Fast Inserter
- Posts: 103
- 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.
-
- 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
- Fast Inserter
- Posts: 103
- 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.
- Cooldude2606
- Fast Inserter
- Posts: 103
- Joined: Sat Sep 16, 2017 9:04 pm
- Contact:
Re: Block map opening
[2.0]
This is now possible with the "defines.input_action.remote_view_surface" permission. It will prevent remote view (the new map) from opening when tab or the minimap is pressed. Can be moved to implemented requests unless there is an edge case where remote view can still be opened.
This is now possible with the "defines.input_action.remote_view_surface" permission. It will prevent remote view (the new map) from opening when tab or the minimap is pressed. Can be moved to implemented requests unless there is an edge case where remote view can still be opened.