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 Replace many includes with forward declarations in modules/Maps.h 2016-08-13 21:44:01 -04:00
Constructions.cpp Replace many includes with forward declarations in modules/Maps.h 2016-08-13 21:44:01 -04:00
Designations.cpp Update xml and all uses of job_handler 2017-11-25 00:59:59 -05:00
Engravings.cpp Update license, add contributors file, bump release number 2012-09-30 04:03:37 +02:00
EventManager.cpp Fix EventManager building ID type 2019-10-05 20:26:31 -04:00
Filesystem.cpp Use initial working directory as process path on Linux, and expose to Lua 2020-11-12 19:07:51 -05:00
Graphic.cpp simplify Graphic module. update structures. 2020-03-08 00:12:48 -06:00
Gui.cpp name ui_look_list union 2020-03-06 16:06:27 -06:00
Items.cpp cleaner mask-based implementation 2020-11-12 22:44:38 -08:00
Job.cpp revert skip_vector=true for now 2020-11-13 10:45:53 -08:00
Kitchen.cpp update for DFHack/df-structures#7dfea1f1d4e453b97d5529785701db46360596ce 2020-06-29 16:16:44 -05:00
MapCache.cpp update for DFHack/df-structures#7dfea1f1d4e453b97d5529785701db46360596ce 2020-06-29 16:16:44 -05:00
Maps.cpp a pox on whitespace 2018-09-11 18:41:32 -05:00
Materials.cpp undo unnecessary edits 2020-11-12 22:49:06 -08:00
Notes.cpp Update the module create calls to return unique_ptrs 2018-07-14 19:55:25 -07:00
Once.cpp New module: Once. Intended to help prevent debug error message spam. 2013-03-23 22:38:33 -04:00
Persistence.cpp update structures; fix some minor compile warnings 2020-02-05 12:35:43 -06:00
Random.cpp Add missing import/export info for MersenneRNG::unitvector<> 2014-03-25 13:30:21 -05:00
Renderer.cpp Add Renderer module - safer way to install custom renderers 2015-10-21 17:18:39 -04:00
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 update structures 2020-07-01 23:10:34 -05:00
Units.cpp only set labor validity for the player civ 2021-02-17 09:16:49 -08:00
Windows.cpp Update license, add contributors file, bump release number 2012-09-30 04:03:37 +02:00
World.cpp Add Persistence module. 2018-08-26 18:27:58 -05:00