From 8be8ef73df89c1b53b62cae3209b938b36125540 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sun, 23 Jun 2019 22:15:03 +0530 Subject: HDB: Add Infobar data --- engines/hdb/window.cpp | 7 +++++++ engines/hdb/window.h | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp index 5e4482b5fb..db245529cc 100644 --- a/engines/hdb/window.cpp +++ b/engines/hdb/window.cpp @@ -68,6 +68,12 @@ bool Window::init() { _gfxInvSelect = g_hdb->_drawMan->loadPic("inventory_normal"); _gfxHandright = g_hdb->_drawMan->loadPic("menu_hand_pointright"); + _gfxInfobar = g_hdb->_drawMan->loadPic("pic_infobar"); + _gfxDarken = g_hdb->_drawMan->loadPic("screen_darken"); + _gfxPausePlaque = g_hdb->_drawMan->loadPic("pause_plaque"); + + _infobarDimmed = 0; + restartSystem(); return true; @@ -76,6 +82,7 @@ bool Window::init() { void Window::restartSystem() { _dialogInfo.active = false; _dialogDelay = 0; + _infobarDimmed = 0; } void Window::openDialog(const char *title, int tileIndex, const char *string, int more, const char *luaMore) { diff --git a/engines/hdb/window.h b/engines/hdb/window.h index 8a22b9d4cc..a498ac3d3f 100644 --- a/engines/hdb/window.h +++ b/engines/hdb/window.h @@ -83,8 +83,11 @@ private: Picture *_gfxIndent, *_gfxArrowTo, *_gfxHandright; Picture *_gfxTry, *_gfxAgain, *_gfxInvSelect; Tile *_gfxMonkeystone; - Picture *_gfxLevelRestart, *_gfxPuasePlaque; + Picture *_gfxLevelRestart, *_gfxPausePlaque; + // Info Bar + Picture *_gfxInfobar, *_gfxDarken; + int _infobarDimmed; }; } // End of Namespace -- cgit v1.2.3