diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index ec5bc267..752406b9 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -622,6 +622,11 @@ void Game::handleInput() { setupWindow->action(gcn::ActionEvent(NULL, "cancel")); } + // Submits the text and proceeds to the next dialog + else if (npcStringDialog->isVisible()) + { + npcStringDialog->action(gcn::ActionEvent(NULL, "ok")); + } // Proceed to the next dialog option, or close the window else if (npcTextDialog->isVisible()) { @@ -632,6 +637,11 @@ void Game::handleInput() { npcListDialog->action(gcn::ActionEvent(NULL, "ok")); } + // Submits the text and proceeds to the next dialog + else if (npcIntegerDialog->isVisible()) + { + npcIntegerDialog->action(gcn::ActionEvent(NULL, "ok")); + } // Else, open the chat edit box else { |