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