[0.14.21] Selection window closes on GUI change
Posted: Wed Feb 01, 2017 3:51 pm
When a player has a selection window open (e.g. choose item for logistic request, set filter in toolbar, select train station from list, ...) and a mod hides/shows the minimap or he uses a console command like /c game.player.minimap_enabled = false then the selection window (and only that, not the entity/parent window itself) closes.
In singleplayer this is negligible, but this also happens in multiplayer and closes all selection windows any player has open when only one player shows/hides the minimap. In my mod this happens quite often as the minimap will be shown/hidden for a player whenever he selects/deselects a logistics chest.
Parameters that are affected are LuaPlayer.minimap_enabled and all of the LuaPlayer.game_view_settings parameters (technology, toolbar, ...).
In singleplayer this is negligible, but this also happens in multiplayer and closes all selection windows any player has open when only one player shows/hides the minimap. In my mod this happens quite often as the minimap will be shown/hidden for a player whenever he selects/deselects a logistics chest.
Parameters that are affected are LuaPlayer.minimap_enabled and all of the LuaPlayer.game_view_settings parameters (technology, toolbar, ...).