Small fix

This commit is contained in:
Federico Cecchetto 2022-03-05 21:01:55 +01:00
parent efe6291eaf
commit 9bb4380f4a
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,8 @@
local Lobby = luiglobals.Lobby local Lobby = luiglobals.Lobby
local MPLobbyOnline = LUI.mp_menus.MPLobbyOnline local MPLobbyOnline = LUI.mp_menus.MPLobbyOnline
game:addlocalizedstring("LUA_MENU_SERVERLIST", "SERVER LIST")
function LeaveLobby(f5_arg0) function LeaveLobby(f5_arg0)
LeaveXboxLive() LeaveXboxLive()
if Lobby.IsInPrivateParty() == false or Lobby.IsPrivatePartyHost() then if Lobby.IsInPrivateParty() == false or Lobby.IsPrivatePartyHost() then
@ -17,7 +19,7 @@ function menu_xboxlive(f16_arg0, f16_arg1)
menu:setClass(LUI.MPLobbyOnline) menu:setClass(LUI.MPLobbyOnline)
local serverListButton = menu:AddButton("SERVER LIST", function (a1, a2) local serverListButton = menu:AddButton("@LUA_MENU_SERVERLIST", function (a1, a2)
LUI.FlowManager.RequestAddMenu(a1, "menu_systemlink_join", true, nil) LUI.FlowManager.RequestAddMenu(a1, "menu_systemlink_join", true, nil)
end) end)
serverListButton:setDisabledRefreshRate(500) serverListButton:setDisabledRefreshRate(500)

View File

@ -5,6 +5,9 @@ if (not SystemLinkJoinMenu) then
return return
end end
game:addlocalizedstring("MENU_NUMPLAYERS", "Players")
game:addlocalizedstring("MENU_PING", "Ping")
local offsets = { local offsets = {
10, 10,
500, 500,
@ -16,9 +19,9 @@ local offsets = {
local columns = { local columns = {
"@MENU_HOST_NAME", "@MENU_HOST_NAME",
"@MENU_MAP", "@MENU_MAP",
"Players", "@MENU_NUMPLAYERS",
"@MENU_TYPE1", "@MENU_TYPE1",
"Ping", "@MENU_PING",
} }
SystemLinkJoinMenu.AddHeaderButton = function(menu, f12_arg1, width) SystemLinkJoinMenu.AddHeaderButton = function(menu, f12_arg1, width)