HUGO: Replace Utils::Box by Utils::notifyBox + Common::String::format
This commit is contained in:
parent
458ebbafd2
commit
dd88f39bc7
17 changed files with 97 additions and 117 deletions
|
@ -182,7 +182,7 @@ void Parser_v1w::lineHandler() {
|
|||
|
||||
// If a not-near comment was generated, print it
|
||||
if (*farComment != '\0') {
|
||||
Utils::Box(kBoxAny, "%s", farComment);
|
||||
Utils::notifyBox(farComment);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -190,16 +190,16 @@ void Parser_v1w::lineHandler() {
|
|||
const char *verb = findVerb();
|
||||
const char *noun = findNoun();
|
||||
if (verb == _vm->_text->getVerb(_vm->_look, 0) && _vm->_maze.enabledFl) {
|
||||
Utils::Box(kBoxAny, "%s", _vm->_text->getTextParser(kTBMaze));
|
||||
Utils::notifyBox(_vm->_text->getTextParser(kTBMaze));
|
||||
_vm->_object->showTakeables();
|
||||
} else if (verb && noun) { // A combination I didn't think of
|
||||
Utils::Box(kBoxAny, "%s", _vm->_text->getTextParser(kTBNoPoint));
|
||||
Utils::notifyBox(_vm->_text->getTextParser(kTBNoPoint));
|
||||
} else if (noun) {
|
||||
Utils::Box(kBoxAny, "%s", _vm->_text->getTextParser(kTBNoun));
|
||||
Utils::notifyBox(_vm->_text->getTextParser(kTBNoun));
|
||||
} else if (verb) {
|
||||
Utils::Box(kBoxAny, "%s", _vm->_text->getTextParser(kTBVerb));
|
||||
Utils::notifyBox(_vm->_text->getTextParser(kTBVerb));
|
||||
} else {
|
||||
Utils::Box(kBoxAny, "%s", _vm->_text->getTextParser(kTBEh));
|
||||
Utils::notifyBox(_vm->_text->getTextParser(kTBEh));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue