mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 04:16:34 +00:00
MOHAWK: Move debug rect draw control to the console
It was previously bound to F4
This commit is contained in:
parent
d821c089bf
commit
e9525f53c6
@ -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() {
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user