[Request] Redraw flag for vanilla gui's

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Nagrom_17
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Sep 28, 2018 8:15 pm
Contact:

[Request] Redraw flag for vanilla gui's

Post by Nagrom_17 »

Currently vanilla gui's do not update to reflect changes in data done through scripts (see viewtopic.php?p=585326#p585326). The workaround that is generally used in the modding community is to close the gui, wait a tick, and then reopen it to force a redraw. The issue is this causes flicker when the gui is closed for a tick, as well as the close/open sound to play, leading to a very non optimal experience.

Automatic determination of when to redraw is complicated and varies depending on the exact gui that is open, so my suggestion is a flag that causes the current vanilla gui to redraw sometime on the next tick. This would allow mods to cleanly show updates to vanilla gui's in real time without relying on the close/open that is needed currently.

Post Reply

Return to “Modding interface requests”