replace main_choose_exe_popup_menu to directly exit game confirmation (#126)
This commit is contained in:
parent
7c25cfed20
commit
fa49dd39a4
13
data/ui_scripts/no_mode_switch/__init__.lua
Normal file
13
data/ui_scripts/no_mode_switch/__init__.lua
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user