Don't break if not CoD.LobbyMember

This commit is contained in:
WantedDV 2023-04-18 09:30:52 -02:30
parent 564cf28df4
commit bf30653fc2

View File

@ -2,23 +2,21 @@ if Engine.GetCurrentMap() ~= "core_frontend" then
return return
end end
if not CoD.LobbyMember then if CoD.LobbyMember then
return local oldLobbyMember = CoD.LobbyMember.new
end function CoD.LobbyMember.new(menu, controller)
local self = oldLobbyMember(menu, controller)
local oldLobbyMember = CoD.LobbyMember.new -- Hide the playlist count text
function CoD.LobbyMember.new(menu, controller) if self.SearchingForPlayer then
local self = oldLobbyMember(menu, controller) self.SearchingForPlayer:setAlpha(0)
end
if self.FEMemberBlurPanelContainer0 then
self.FEMemberBlurPanelContainer0:setAlpha(0)
end
-- Hide the playlist count text return self
if self.SearchingForPlayer then
self.SearchingForPlayer:setAlpha(0)
end end
if self.FEMemberBlurPanelContainer0 then
self.FEMemberBlurPanelContainer0:setAlpha(0)
end
return self
end end
function IsLobbyStatusVisible() function IsLobbyStatusVisible()