AVALANCHE: Add tryDropdown() and _inputTextBackup to Parser, implement handleReturn(), stub tryDropdown() in Parser.

This commit is contained in:
uruk 2013-07-28 10:46:46 +02:00
parent a1a2fa2da8
commit ad7f8add4d
6 changed files with 84 additions and 74 deletions

View file

@ -70,6 +70,16 @@ void Parser::handleBackspace() {
}
void Parser::handleReturn() {
if (_vm->_dropdown->ddm_o.menunow)
_vm->_parser->tryDropdown();
else {
_vm->_logger->log_command(_inputText);
if (!_inputText.empty())
_inputTextBackup = _inputText;
_vm->_acci->parse();
_vm->_acci->do_that();
}
}
void Parser::plotText() {
@ -109,6 +119,10 @@ void Parser::cursorOff() {
_cursorState = false;
}
void Parser::tryDropdown() {
warning("STUB: Parser::tryDropdown()"); // TODO: Implement at the same time with Dropdown.
}
void Parser::drawCursor() {
// Draw the '_' character. Similar to plotText().
char cursor = '_';