MOHAWK: Move debug rect draw control to the console

It was previously bound to F4
This commit is contained in:
Bastien Bouclet 2016-02-07 21:23:21 +01:00
parent d821c089bf
commit e9525f53c6
3 changed files with 3 additions and 6 deletions

View File

@ -63,6 +63,7 @@ MystConsole::MystConsole(MohawkEngine_Myst *vm) : GUI::Debugger(), _vm(vm) {
registerCmd("disableInitOpcodes", WRAP_METHOD(MystConsole, Cmd_DisableInitOpcodes));
registerCmd("cache", WRAP_METHOD(MystConsole, Cmd_Cache));
registerCmd("resources", WRAP_METHOD(MystConsole, Cmd_Resources));
registerVar("show_resource_rects", &_vm->_showResourceRects);
}
MystConsole::~MystConsole() {

View File

@ -303,11 +303,6 @@ Common::Error MohawkEngine_Myst::run() {
case Common::KEYCODE_SPACE:
pauseGame();
break;
case Common::KEYCODE_F4:
_showResourceRects = !_showResourceRects;
if (_showResourceRects)
drawResourceRects();
break;
case Common::KEYCODE_F5:
_needsPageDrop = false;
_needsShowMap = false;

View File

@ -189,6 +189,8 @@ public:
bool _needsShowMap;
bool _needsShowDemoMenu;
bool _showResourceRects;
MystGraphics *_gfx;
MystGameState *_gameState;
MystScriptParser *_scriptParser;
@ -228,7 +230,6 @@ private:
uint16 _curCard;
MystView _view;
bool _showResourceRects;
bool _runExitScript;
void dropPage();