From e2527f085f2affb3119cafce6dd81065d2e62c8b Mon Sep 17 00:00:00 2001 From: Mauro Junior <45118493+jetrotal@users.noreply.github.com> Date: Mon, 13 Nov 2023 06:28:36 -0300 Subject: [PATCH] Skip Dialogs - Basic Implementation --- src/window_message.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/window_message.cpp b/src/window_message.cpp index 4c00c6e918..89bcf4659f 100644 --- a/src/window_message.cpp +++ b/src/window_message.cpp @@ -664,6 +664,14 @@ void Window_Message::UpdateMessage() { text_index = text_prev; continue; } + + if (Player::debug_flag && Input::IsPressed(Input::CANCEL)){ + line_char_counter = 0; + if (strlen(text_index) < 3 && !pending_message.HasNumberInput() && pending_message.GetNumChoices() <= 0) { + SetWait(5); + FinishMessageProcessing(); + } + } } } }