HDB: Comment out the modify controls button
This was uncommented in previous commit for testing and was kept by mistake In this commit, some of the functions for the modify controls screen are not implemented at a basic level. The modify controls screen is just a picture, but other than the remapping of keys, which would need more work to implement and probably synch with the ScummVM keymapped, it contains useful info on how the game controls work.
This commit is contained in:
parent
e401d2814f
commit
313c3ef89a
2 changed files with 11 additions and 4 deletions
|
@ -720,7 +720,7 @@ void Menu::drawMenu() {
|
|||
_menuBackoutGfx->drawMasked(_backoutX, _backoutY);
|
||||
|
||||
// Ignore Controls Screen Button
|
||||
_controlButtonGfx->drawMasked(centerPic(_controlButtonGfx), _mControlsY);
|
||||
//_controlButtonGfx->drawMasked(centerPic(_controlButtonGfx), _mControlsY);
|
||||
} else if (_optionsScreenId == kOptionsScreenModifyControls) {
|
||||
//
|
||||
// Draw CONTROLS screen
|
||||
|
@ -1427,7 +1427,7 @@ void Menu::processInput(int x, int y) {
|
|||
// Controls screen
|
||||
//
|
||||
if (_optionsScreenId == kOptionsScreenModifyControls) {
|
||||
controlsInput(x, y);
|
||||
controlsInput(x, y, xit);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1628,10 +1628,17 @@ void Menu::processInput(int x, int y) {
|
|||
}
|
||||
}
|
||||
|
||||
void Menu::controlsInput(int x, int y) {
|
||||
void Menu::controlsInput(int x, int y, int xit) {
|
||||
if (y >= _menuExitY || y < _menuExitYTop || xit) {
|
||||
_optionsScreenId = kOptionsScreenMain;
|
||||
_clickDelay = 20;
|
||||
g_hdb->_sound->playSound(SND_MENU_BACKOUT);
|
||||
}
|
||||
}
|
||||
|
||||
void Menu::controlsDraw() {
|
||||
_controlsGfx->drawMasked(centerPic(_controlsGfx), _oBannerY);
|
||||
_menuBackoutGfx->drawMasked(_backoutX, _backoutY);
|
||||
}
|
||||
|
||||
void Menu::drawNebula() {
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
void freeMenu();
|
||||
|
||||
void processInput(int x, int y); // this is where the items are clicked!
|
||||
void controlsInput(int x, int y); // take mouse input and pass through to menu
|
||||
void controlsInput(int x, int y, int xit); // take mouse input and pass through to menu
|
||||
void controlsDraw();
|
||||
void drawNebula();
|
||||
void drawRocketAndSelections(); // draw the background stuff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue