AVALANCHE: Add tryDropdown() and _inputTextBackup to Parser, implement handleReturn(), stub tryDropdown() in Parser.
This commit is contained in:
parent
a1a2fa2da8
commit
ad7f8add4d
6 changed files with 84 additions and 74 deletions
|
@ -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 = '_';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue