Thank you! I am glad you like this mod.
What I would love is if the codex would either not close other UIs in the first place, or at least reopen them to the best of it's abilities.
That sounds like a very good idea (I assume you mean the text input UI where you can do the calculations - from now I call this "quick search").
Sadly this feature cannot be implemented as-is because of a few quirks in Factorio.
Here are two options I came up with including their drawbacks:
-
One of the better options might be to pin the other UIs so the quick search UI doesn't close them.
Most mods include a little icon of a pin needle in the window title bar
and when active it prevents the window from closing unless you press the "X" button yourself.
-
Another option is to add ESC
as a hotkey to close the quick search UI while preventing the UI from closing previous UIs.
This will have the side effect that the quick search UI cannot be closed by opening another UI.
Also the ESC
key has to be pressed twice, the first time will bring up the game menu and the second time closes the game menu and quick search UI.
Since you mentioned reopening UIs, while this seems like a good workaround there is no universal way of reopening UIs
and every mod would need to implement a way for me to reopen their UIs. This would quickly become unmanageable.
So to summarize:
There is not much that I can do to prevent this issue without introducing other problems that occur more often.
In the future I might make this an option when I figure out how to properly have per-user settings.
In the meantime the best option is to pin the UIs you want to keep open.