2023-03-10 10:52:07 -05:00
|
|
|
if (Engine.InFrontend()) then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
LUI.onmenuopen("sp_pause_menu", function(element)
|
|
|
|
local menu = element:getFirstChild()
|
2023-04-26 21:55:11 -04:00
|
|
|
|
|
|
|
local button = menu:AddButton("@LUA_MENU_ACHIEVEMENTS", function()
|
|
|
|
LUI.FlowManager.RequestAddMenu(nil, "achievements_menu")
|
|
|
|
end)
|
|
|
|
|
|
|
|
menu.list:removeElement(button)
|
|
|
|
menu.list:insertElement(button, 4)
|
|
|
|
|
2023-03-10 10:52:07 -05:00
|
|
|
menu:AddButton("@MENU_QUIT_TO_DESKTOP", function()
|
|
|
|
LUI.FlowManager.RequestAddMenu(nil, "quit_popmenu")
|
|
|
|
end)
|
|
|
|
end)
|