AVALANCHE: Move wipeText() from Basher to Parser, implement it. Fix parts of Acci::do_that().
This commit is contained in:
parent
e08980c7a4
commit
e32110339e
6 changed files with 27 additions and 12 deletions
|
@ -79,6 +79,8 @@ void Parser::handleReturn() {
|
|||
_inputTextBackup = _inputText;
|
||||
_vm->_acci->parse();
|
||||
_vm->_acci->do_that();
|
||||
_inputText.clear();
|
||||
wipeText();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -148,4 +150,18 @@ void Parser::drawCursor() {
|
|||
_vm->_trip->getset[fv].remember(bf);
|
||||
}
|
||||
|
||||
void Parser::wipeText() {
|
||||
if (_vm->_gyro->mouse_near_text())
|
||||
_vm->_gyro->super_off();
|
||||
|
||||
cursorOff();
|
||||
|
||||
_vm->_graphics->drawBar(24, 161, 640, 169, black); // Black out the line of the text.
|
||||
|
||||
_quote = true;
|
||||
_inputTextPos = 0;
|
||||
cursorOn();
|
||||
_vm->_gyro->super_on();
|
||||
}
|
||||
|
||||
} // End of namespace Avalanche
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue