diff options
author | Paul Gilbert | 2011-08-29 22:01:11 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-08-29 22:01:11 +1000 |
commit | a28bffec1cf37517f3dd9d7fda7ad511c921a7db (patch) | |
tree | 0b3d63bb71b58e1e0be5207f126aab240e72765a /engines/tsage/graphics.cpp | |
parent | b12fed08356d8cd59de5ae5867bb8f8f9b0c5453 (diff) | |
download | scummvm-rg350-a28bffec1cf37517f3dd9d7fda7ad511c921a7db.tar.gz scummvm-rg350-a28bffec1cf37517f3dd9d7fda7ad511c921a7db.tar.bz2 scummvm-rg350-a28bffec1cf37517f3dd9d7fda7ad511c921a7db.zip |
TSAGE: Implemented the Blue Force right-click dialog
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r-- | engines/tsage/graphics.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp index 1884bfb4f5..69c9995b93 100644 --- a/engines/tsage/graphics.cpp +++ b/engines/tsage/graphics.cpp @@ -1069,12 +1069,23 @@ GfxButton *GfxDialog::execute(GfxButton *defaultButton) { } void GfxDialog::setPalette() { - _globals->_scenePalette.loadPalette(0); - _globals->_scenePalette.setPalette(0, 1); - _globals->_scenePalette.setPalette(_globals->_scenePalette._colors.foreground, 1); - _globals->_scenePalette.setPalette(_globals->_fontColors.background, 1); - _globals->_scenePalette.setPalette(_globals->_fontColors.foreground, 1); - _globals->_scenePalette.setPalette(255, 1); + if (_vm->getGameID() == GType_BlueForce) { + _globals->_scenePalette.loadPalette(2); + _globals->_scenePalette.setPalette(0, 1); + _globals->_scenePalette.setPalette(_globals->_gfxColors.background, 1); + _globals->_scenePalette.setPalette(_globals->_gfxColors.foreground, 1); + _globals->_scenePalette.setPalette(_globals->_fontColors.background, 1); + _globals->_scenePalette.setPalette(_globals->_fontColors.foreground, 1); + _globals->_scenePalette.setEntry(255, 0xff, 0xff, 0xff); + _globals->_scenePalette.setPalette(255, 1); + } else { + _globals->_scenePalette.loadPalette(0); + _globals->_scenePalette.setPalette(0, 1); + _globals->_scenePalette.setPalette(_globals->_scenePalette._colors.foreground, 1); + _globals->_scenePalette.setPalette(_globals->_fontColors.background, 1); + _globals->_scenePalette.setPalette(_globals->_fontColors.foreground, 1); + _globals->_scenePalette.setPalette(255, 1); + } } /*--------------------------------------------------------------------------*/ |