From dd7e01488f3cbc4b2df58a945027ac3a9ea35eac Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 10 Aug 2026 20:26:43 +0300 Subject: [PATCH] fix gui.ask --- res/modules/internal/gui_util.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/res/modules/internal/gui_util.lua b/res/modules/internal/gui_util.lua index 656a0dfc8..971bad39f 100644 --- a/res/modules/internal/gui_util.lua +++ b/res/modules/internal/gui_util.lua @@ -192,13 +192,15 @@ function gui.ask(text, on_yes, on_no, yes_text, no_text) - + - ]], id, string.escape_xml(text)), {on_yes=yes_callback, on_no=no_callback}, - string.escape_xml(yes_text), string.escape_xml(no_text)) + ]], id, + string.escape_xml(text), + string.escape_xml(yes_text), + string.escape_xml(no_text)), {on_yes=yes_callback, on_no=no_callback}) input.add_callback("key:escape", no_callback, gui.root[id]) end