Page 1 of 1

[0.8.8] Changing recipe status from Lua causes GUI weirdness

Posted: Tue Feb 11, 2014 10:55 am
by immibis
If a Lua script sets the "enabled" field of a recipe while the game is running, like this:

Code: Select all

game.player.force.recipes["solar-panel"].enabled = false
then:
  • 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.

Re: [0.8.8] Changing recipe status from Lua causes GUI weird

Posted: Sat Jun 14, 2014 12:14 pm
by slpwnd
The first one is fixed for 0.10.1. The rest is more tricky. Since this is purely graphical glitch I put it to Minor issues category.