dfhack/library/include/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.h only reset extents if they are unusable 2020-12-16 11:10:47 -08:00
Burrows.h
Constructions.h
Designations.h Designate the correct tile for trees with multi-tile trunks 2017-05-05 21:25:25 -04:00
Engravings.h
EventManager.h
Filesystem.h Use initial working directory as process path on Linux, and expose to Lua 2020-11-12 19:07:51 -05:00
Graphic.h simplify Graphic module. update structures. 2020-03-08 00:12:48 -06:00
Gui.h Add Gui::inRenameBuilding 2018-05-09 10:23:05 -04:00
GuiHooks.h Fix GCC warnings in 'tweak kitchen-prefs-all' and dev plugins 2018-06-01 10:02:38 -04:00
Items.h cleaner mask-based implementation 2020-11-12 22:44:38 -08:00
Job.h cleaner mask-based implementation 2020-11-12 22:44:38 -08:00
Kitchen.h Add some exclusion functions to Kitchen module, expose to Lua, fix build 2018-05-17 19:34:03 -04:00
MapCache.h Use constexpr to prevent attempts of linking static variable 2018-06-24 17:06:32 +03:00
Maps.h Add function to infer biome type to Maps module 2018-08-15 20:28:18 -05:00
Materials.h cleaner mask-based implementation 2020-11-12 22:44:38 -08:00
Notes.h
Once.h
PerlinNoise.inc
Persistence.h Use viewscreen_savegamest instead of viewscreen_optionst 2018-08-26 19:05:44 -05:00
Random.h
Renderer.h
Screen.h Ensure that command-prompt is dismissed after a command creates a new screen 2021-03-21 20:42:50 -04:00
Translation.h
Units.h make alchemist flag valid for controllable civs 2021-02-05 16:45:39 -08:00
Windows.h
World.h Add Persistence module. 2018-08-26 18:27:58 -05:00