aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/window.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-02 11:40:04 +0200
committerEugene Sandulenko2019-09-03 17:17:08 +0200
commit6247f1ebec805205758d03d6107ae0ee3c4bce50 (patch)
tree47819cde8624bade37cd59ac807352fa6126206f /engines/hdb/window.cpp
parentdcce09471d348a37fa22f072951aaa1053c79b00 (diff)
downloadscummvm-rg350-6247f1ebec805205758d03d6107ae0ee3c4bce50.tar.gz
scummvm-rg350-6247f1ebec805205758d03d6107ae0ee3c4bce50.tar.bz2
scummvm-rg350-6247f1ebec805205758d03d6107ae0ee3c4bce50.zip
HDB: Implement Window::closeAll()
Now the player is not locked when pressing ESC with dialog on screen
Diffstat (limited to 'engines/hdb/window.cpp')
-rw-r--r--engines/hdb/window.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp
index 0b26a21b41..5d5b7d3bda 100644
--- a/engines/hdb/window.cpp
+++ b/engines/hdb/window.cpp
@@ -116,6 +116,13 @@ void Window::checkPause(uint x, uint y) {
}
}
+void Window::closeAll() {
+ closeDialog();
+ closeDialogChoice();
+ closeMsg();
+ closeTextOut();
+}
+
void Window::openDialog(const char *title, int tileIndex, const char *string, int more, const char *luaMore) {
if (_dialogInfo.active)
return;