diff options
author | Nipun Garg | 2019-06-30 00:49:54 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:05 +0200 |
commit | 56deb8604913c64e935ecffc947e1d0cf8a17608 (patch) | |
tree | c03e3d561a11cf4a859df6c591610bbdb3c83000 /engines/hdb | |
parent | a5c9e053ab8f84037290127757e52f809c475a23 (diff) | |
download | scummvm-rg350-56deb8604913c64e935ecffc947e1d0cf8a17608.tar.gz scummvm-rg350-56deb8604913c64e935ecffc947e1d0cf8a17608.tar.bz2 scummvm-rg350-56deb8604913c64e935ecffc947e1d0cf8a17608.zip |
HDB: Add _dlvsInfo data for the Deliveries Window
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/window.cpp | 5 | ||||
-rw-r--r-- | engines/hdb/window.h | 18 |
2 files changed, 23 insertions, 0 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp index a8ed9925ce..ff0f2c0b95 100644 --- a/engines/hdb/window.cpp +++ b/engines/hdb/window.cpp @@ -79,6 +79,11 @@ bool Window::init() { _invWinInfo.x = kScreenWidth - _gfxInfobar->_width + 16; _invWinInfo.y = 40; + _dlvsInfo.width = kInvItemSpaceX * 3; + _dlvsInfo.height = kInvItemSpaceY * 4; + _dlvsInfo.x = (kScreenWidth - _gfxInfobar->_width) + 16; + _dlvsInfo.y = 272; + restartSystem(); return true; diff --git a/engines/hdb/window.h b/engines/hdb/window.h index b030c86e3b..6ee95963c2 100644 --- a/engines/hdb/window.h +++ b/engines/hdb/window.h @@ -33,6 +33,11 @@ enum { kInvItemSpaceX = 48, kInvItemSpaceY = 40, kInvItemPerLine = 3, + kDlvItemSpaceX = 48, + kDlvItemSpaceY = (kTileHeight * 2 + 16), + kDlvItemPerLine = 3, + kDlvItemTextY = (kScreenHeight - 30), + kNumCrazy = 37, kTextOutCenterX = ((kScreenWidth - kTileWidth * 5) / 2), kPauseY = (kScreenHeight / 2 - 64) }; @@ -63,6 +68,18 @@ struct InvWinInfo { InvWinInfo() : x(0), y(0), width(0), height(0), selection(0), active(false) {} }; +struct DlvsInfo { + int x, y; + int width, height; + bool active; + int selected; + bool animate; + uint32 delay1, delay2, delay3; + bool go1, go2, go3; + + DlvsInfo() : x(0), y(0), width(0), height(0), active(false), selected(0), animate(false), delay1(0), delay2(0), delay3(0), go1(false), go2(false), go3(false) {} +}; + struct TOut { char text[128]; int x, y; @@ -125,6 +142,7 @@ private: InvWinInfo _invWinInfo; Common::Array<TOut *> _textOutList; + DlvsInfo _dlvsInfo; // Windows GFX Picture *_gfxTL, *_gfxTM, *_gfxTR; |