diff options
author | Nipun Garg | 2019-06-25 10:59:27 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:00 +0200 |
commit | f45904ca3017b82ecdf8c740f24072afcc47d5d4 (patch) | |
tree | 488d2bd510ea97b6a693f5a195045fa3e1f4c2cd /engines/hdb | |
parent | 2a3ee7e2efb97f1e0dfbf230dc53db3ead27a50d (diff) | |
download | scummvm-rg350-f45904ca3017b82ecdf8c740f24072afcc47d5d4.tar.gz scummvm-rg350-f45904ca3017b82ecdf8c740f24072afcc47d5d4.tar.bz2 scummvm-rg350-f45904ca3017b82ecdf8c740f24072afcc47d5d4.zip |
HDB: Add inventory drawing data
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/window.cpp | 4 | ||||
-rw-r--r-- | engines/hdb/window.h | 18 |
2 files changed, 20 insertions, 2 deletions
diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp index 817919076a..eb3647358a 100644 --- a/engines/hdb/window.cpp +++ b/engines/hdb/window.cpp @@ -81,7 +81,9 @@ bool Window::init() { void Window::restartSystem() { _dialogInfo.active = false; - _dialogDelay = 0; + _invWinInfo.active = false; + _dialogDelay = _invWinInfo.selection = 0; + _gemGfx = g_hdb->_drawMan->loadTile("ent_gem_white_sit01"); _infobarDimmed = 0; } diff --git a/engines/hdb/window.h b/engines/hdb/window.h index 2b4e5eb076..8bfc38c067 100644 --- a/engines/hdb/window.h +++ b/engines/hdb/window.h @@ -27,7 +27,12 @@ namespace HDB { enum { kDialogTextLeft = 64, - kDialogTextRight = (kDialogTextLeft + kTileWidth * 9) + kDialogTextRight = (kDialogTextLeft + kTileWidth * 9), + kWeaponX = (480 - 34), + kWeaponY = 2, + kInvItemSpaceX = 48, + kInvItemSpaceY = 40, + kInvItemPerLine = 3 }; struct DialogInfo { @@ -47,6 +52,13 @@ struct DialogInfo { 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("") {} }; +struct InvWinInfo { + int x, y; + int width, height; + int selection; + bool active; +}; + class Window { public: @@ -74,6 +86,8 @@ private: DialogInfo _dialogInfo; uint32 _dialogDelay; // Used for Cinematics + InvWinInfo _invWinInfo; + // Windows GFX Picture *_gfxTL, *_gfxTM, *_gfxTR; Picture *_gfxL, *_gfxM, *_gfxR; @@ -88,6 +102,8 @@ private: Picture *_gfxTry, *_gfxAgain, *_gfxInvSelect; Tile *_gfxMonkeystone; Picture *_gfxLevelRestart, *_gfxPausePlaque; + Tile *_gemGfx; + Picture *_mstoneGfx; // Info Bar Picture *_gfxInfobar, *_gfxDarken; |