2023-04-09 13:23:36 -04:00
|
|
|
LUI.addmenubutton("main_campaign", {
|
|
|
|
index = 6,
|
2023-04-09 14:21:16 -04:00
|
|
|
text = "@MENU_MODS",
|
|
|
|
description = Engine.Localize("@MENU_MODS_DESC"),
|
2023-04-09 13:23:36 -04:00
|
|
|
callback = function()
|
2023-04-09 14:21:16 -04:00
|
|
|
LUI.FlowManager.RequestAddMenu(nil, "mods_menu")
|
2023-04-09 13:23:36 -04:00
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
LUI.addmenubutton("main_campaign", {
|
|
|
|
index = 6,
|
2023-04-09 14:21:16 -04:00
|
|
|
text = "@LUA_MENU_ACHIEVEMENTS",
|
|
|
|
description = Engine.Localize("@LUA_MENU_ACHIEVEMENTS_DESC"),
|
2023-04-09 13:23:36 -04:00
|
|
|
callback = function()
|
2023-04-09 14:21:16 -04:00
|
|
|
LUI.FlowManager.RequestAddMenu(nil, "achievements_menu")
|
2023-04-09 13:23:36 -04:00
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
local maincampaign = LUI.MenuBuilder.m_types_build["main_campaign"]
|
|
|
|
LUI.MenuBuilder.m_types_build["main_campaign"] = function(...)
|
|
|
|
local initlist = LUI.Options.InitScrollingList
|
|
|
|
LUI.Options.InitScrollingList = function(list)
|
|
|
|
initlist(list, nil ,{
|
|
|
|
rows = 10
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
local menu = maincampaign(...)
|
|
|
|
LUI.Options.InitScrollingList = initlist
|
|
|
|
return menu
|
|
|
|
end
|