LAB: Get rid of _interfaceOff

This commit is contained in:
Filippos Karapetis 2016-01-15 20:59:25 +02:00
parent afa75b7047
commit f3cdd217ba
3 changed files with 3 additions and 11 deletions

View File

@ -286,18 +286,12 @@ Common::String LabEngine::getInvName(uint16 curInv) {
}
void LabEngine::interfaceOff() {
if (!_interfaceOff) {
_interface->attachButtonList(nullptr);
_event->mouseHide();
_interfaceOff = true;
}
_interface->attachButtonList(nullptr);
_event->mouseHide();
}
void LabEngine::interfaceOn() {
if (_interfaceOff) {
_interfaceOff = false;
_event->mouseShow();
}
_event->mouseShow();
if (_graphics->_longWinInFront)
_interface->attachButtonList(nullptr);

View File

@ -93,7 +93,6 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc)
_journalBackImage = nullptr;
_lastTooLong = false;
_interfaceOff = false;
_alternate = false;
for (int i = 0; i < 20; i++)

View File

@ -125,7 +125,6 @@ class LabEngine : public Engine {
friend class Console;
private:
bool _interfaceOff;
bool _isCrumbWaiting;
bool _lastTooLong;
bool _lastPage;