aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/window.h
diff options
context:
space:
mode:
authorNipun Garg2019-06-23 03:13:55 +0530
committerEugene Sandulenko2019-09-03 17:16:56 +0200
commit32b99eb8b8069ce68d46e8f00d21dd0edb95f985 (patch)
tree4befb6900d7f512d68438456f3f49d65b9987dd4 /engines/hdb/window.h
parent0cd1ffc34ef0d6943e8b97e7f22d9502b040a324 (diff)
downloadscummvm-rg350-32b99eb8b8069ce68d46e8f00d21dd0edb95f985.tar.gz
scummvm-rg350-32b99eb8b8069ce68d46e8f00d21dd0edb95f985.tar.bz2
scummvm-rg350-32b99eb8b8069ce68d46e8f00d21dd0edb95f985.zip
HDB: Add struct DialogInfo and _dialogInfo
Diffstat (limited to 'engines/hdb/window.h')
-rw-r--r--engines/hdb/window.h18
1 files changed, 18 insertions, 0 deletions
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