raiguard / UltimateResearchQueue

Advanced Factorio research queue GUI.
MIT License
3 stars 5 forks source link

Enhancement, single player pause toggle #5

Closed Layarion closed 1 year ago

Layarion commented 1 year ago

Sometimes when i'm looking through the tree, i want it to remain unpaused. However, i'm playing deathworld currently, and i def want it paused while i waste time thinking about my next move.

Currently I just save the game, do my thinkings, and load it when i'm done messing around with ideas.

raiguard commented 1 year ago

Unfortunately, this has one major issue: if the tick is paused, then the GUI does not update correctly. URQ waits until the next tick to update the interface after you click something or a research finishes, to avoid doing more processing than is needed and to greatly simplify the logic. There is no on_tick_played event, so the GUI breaks if the tick is paused.