aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-07-02 03:37:12 +0530
committerEugene Sandulenko2019-09-03 17:17:06 +0200
commit13102d05b02881f0037c29980d0dd5dd471256eb (patch)
tree60ba49f015e158780cb2eb99475f01e4787d7244 /engines
parent988ac1f25bf40e53ab2a606a548b1f8aab5271ca (diff)
downloadscummvm-rg350-13102d05b02881f0037c29980d0dd5dd471256eb.tar.gz
scummvm-rg350-13102d05b02881f0037c29980d0dd5dd471256eb.tar.bz2
scummvm-rg350-13102d05b02881f0037c29980d0dd5dd471256eb.zip
HDB: Add _msgInfo
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/window.cpp2
-rw-r--r--engines/hdb/window.h17
2 files changed, 19 insertions, 0 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp
index d353c8f28e..6adc2ba43c 100644
--- a/engines/hdb/window.cpp
+++ b/engines/hdb/window.cpp
@@ -90,6 +90,8 @@ bool Window::init() {
}
void Window::restartSystem() {
+ _numMsgQueue = 0;
+ _msgInfo.active = false;
_dialogInfo.active = false;
_dialogChoiceInfo.active = false;
_invWinInfo.active = false;
diff --git a/engines/hdb/window.h b/engines/hdb/window.h
index 542f26d02d..b7a3c5fb6a 100644
--- a/engines/hdb/window.h
+++ b/engines/hdb/window.h
@@ -30,6 +30,7 @@ enum {
kDialogTextRight = (kDialogTextLeft + kTileWidth * 9),
kOpenDialogTextLeft = kDialogTextLeft,
kOpenDialogTextRight = (kDialogTextRight + kTileWidth * 2),
+ kMaxMsgQueue = 10,
kWeaponX = (480 - 34),
kWeaponY = 2,
kInvItemSpaceX = 48,
@@ -88,6 +89,16 @@ struct DialogChoiceInfo {
}
};
+struct MessageInfo {
+ bool active;
+ char title[128];
+ int timer;
+ int x, y;
+ int width, height;
+
+ MessageInfo() : active(false), title(""), timer(0), x(0), y(0), width(0), height(0) {}
+};
+
struct InvWinInfo {
int x, y;
int width, height;
@@ -183,10 +194,16 @@ private:
DialogChoiceInfo _dialogChoiceInfo;
+ MessageInfo _msgInfo;
+
InvWinInfo _invWinInfo;
Common::Array<TOut *> _textOutList;
DlvsInfo _dlvsInfo;
+ char _msgQueueStr[kMaxMsgQueue][128];
+ int _msgQueueWait[kMaxMsgQueue];
+ int _numMsgQueue;
+
// Windows GFX
Picture *_gfxTL, *_gfxTM, *_gfxTR;
Picture *_gfxL, *_gfxM, *_gfxR;