h2-mod/data/cdata/ui_scripts/patches/pausequit.lua

11 lines
266 B
Lua

if (Engine.InFrontend()) then
return
end
LUI.onmenuopen("sp_pause_menu", function(element)
local menu = element:getFirstChild()
menu:AddButton("@MENU_QUIT_TO_DESKTOP", function()
LUI.FlowManager.RequestAddMenu(nil, "quit_popmenu")
end)
end)