dfhack/library/modules
lethosor 59b023c71d
Ensure that command-prompt is dismissed after a command creates a new screen
Fixes #1803

Running a command that created a new screen would previously result in a screen
order that looked like this, due to how `Screen::Hide` works:

- DF screen
  - `command-prompt` screen (dismissed)
    - New screen

The `command-prompt` screen remained on the stack until the new screen was
dismissed, so it would intercept viewscreen vmethod calls intended for the
DF screen.

This change adds a new behavior to `Screen::Hide` that results in this screen
order after running a command:

- DF screen
  - New screen
    - `command-prompt` screen (dismissed) - DF removes this screen immediately
2021-03-21 20:42:50 -04:00
..
Buildings.cpp move identity check up a bit to avoid useless work 2021-01-24 08:57:56 -08:00
Burrows.cpp
Constructions.cpp
Designations.cpp
Engravings.cpp
EventManager.cpp
Filesystem.cpp
Graphic.cpp
Gui.cpp
Items.cpp
Job.cpp revert skip_vector=true for now 2020-11-13 10:45:53 -08:00
Kitchen.cpp
MapCache.cpp
Maps.cpp
Materials.cpp
Notes.cpp
Once.cpp
Persistence.cpp
Random.cpp
Renderer.cpp
Screen.cpp Ensure that command-prompt is dismissed after a command creates a new screen 2021-03-21 20:42:50 -04:00
Translation.cpp
Units.cpp only set labor validity for the player civ 2021-02-17 09:16:49 -08:00
Windows.cpp
World.cpp