From fa49dd39a45c833110f499aef17e97f510739e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B8=E3=83=A7=E3=82=AF=20=20=E3=82=A2=E3=83=BC?= =?UTF-8?q?=E3=82=A6=E3=82=A7=E3=83=B3=E3=83=88?= Date: Tue, 28 Jun 2022 19:51:39 +0200 Subject: [PATCH] replace main_choose_exe_popup_menu to directly exit game confirmation (#126) --- data/ui_scripts/no_mode_switch/__init__.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 data/ui_scripts/no_mode_switch/__init__.lua diff --git a/data/ui_scripts/no_mode_switch/__init__.lua b/data/ui_scripts/no_mode_switch/__init__.lua new file mode 100644 index 00000000..41ec9e47 --- /dev/null +++ b/data/ui_scripts/no_mode_switch/__init__.lua @@ -0,0 +1,13 @@ +LUI.MenuBuilder.m_definitions["main_choose_exe_popup_menu"] = function() + return { + type = "generic_yesno_popup", + id = "main_choose_exe_popup_menu_id", + properties = { + popup_title = Engine.Localize("@MENU_NOTICE"), + message_text = Engine.Localize("@MENU_QUIT_WARNING"), + yes_action = function() + Engine.Quit() + end + } + } +end