[0.8.8] Changing recipe status from Lua causes GUI weirdness
Posted: Tue Feb 11, 2014 10:55 am
If a Lua script sets the "enabled" field of a recipe while the game is running, like this:
then:
Code: Select all
game.player.force.recipes["solar-panel"].enabled = false
- If the player's cursor is over any entity, the information panel under the minimap will disappear and not reappear until the cursor is over a different entity. The selection box, radius visualizations, power boxes (the blue ones), and other "overlays" are not affected.
- If the player's cursor is over an item in a GUI, it will be treated as if the GUI was not there, for one frame. If there is an entity behind the GUI under the cursor, it will show that entity's information panel for one frame. If the cursor is over a GUI element with a tooltip, the tooltip will not be displayed for one frame.