diff options
author | Nipun Garg | 2019-06-23 03:13:55 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:56 +0200 |
commit | 32b99eb8b8069ce68d46e8f00d21dd0edb95f985 (patch) | |
tree | 4befb6900d7f512d68438456f3f49d65b9987dd4 | |
parent | 0cd1ffc34ef0d6943e8b97e7f22d9502b040a324 (diff) | |
download | scummvm-rg350-32b99eb8b8069ce68d46e8f00d21dd0edb95f985.tar.gz scummvm-rg350-32b99eb8b8069ce68d46e8f00d21dd0edb95f985.tar.bz2 scummvm-rg350-32b99eb8b8069ce68d46e8f00d21dd0edb95f985.zip |
HDB: Add struct DialogInfo and _dialogInfo
-rw-r--r-- | engines/hdb/window.cpp | 1 | ||||
-rw-r--r-- | engines/hdb/window.h | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp index 048ea06037..559f3809cc 100644 --- a/engines/hdb/window.cpp +++ b/engines/hdb/window.cpp @@ -74,6 +74,7 @@ bool Window::init() { } void Window::restartSystem() { + _dialogInfo.active = false; _dialogDelay = 0; } diff --git a/engines/hdb/window.h b/engines/hdb/window.h index 32df5be377..d725eb816f 100644 --- a/engines/hdb/window.h +++ b/engines/hdb/window.h @@ -25,6 +25,23 @@ namespace HDB { +struct DialogInfo { + char title[64]; // TITLE string + int tileIndex; // this is for a character picture + char string[160]; // actual text in the dialog + + bool active; // is it drawing or not? + int x, y; // where to draw dialog + int width, height; // size of the dialog itself + int titleWidth; + Picture *gfx; // character tile (picture) + int more; // whether we want to draw the MORE icon or not + int el, er, et, eb; // saves the text edges + char luaMore[64]; // the name of the function to call after clicking the MORE button + + DialogInfo() : title(""), tileIndex(0), string(""), active(false), x(0), y(0), width(0), height(0), titleWidth(0), gfx(NULL), more(0), el(0), er(0), et(0), eb(0), luaMore("") {} +}; + class Window { public: @@ -41,6 +58,7 @@ public: private: + DialogInfo _dialogInfo; uint32 _dialogDelay; // Used for Cinematics // Windows GFX |