fix format
This commit is contained in:
parent
364813c486
commit
7bc8ae7798
@ -11,21 +11,21 @@ function SystemLinkMenuButtons(menu, controller)
|
|||||||
|
|
||||||
SystemLinkMenuButtons:SetSpacing(10 * _1080p)
|
SystemLinkMenuButtons:SetSpacing(10 * _1080p)
|
||||||
|
|
||||||
local casButton = nil
|
local CASButton = nil
|
||||||
if CONDITIONS.IsCoreMultiplayer(SystemLinkMenuButtons) then
|
if CONDITIONS.IsCoreMultiplayer(SystemLinkMenuButtons) then
|
||||||
casButton = MenuBuilder.BuildRegisteredType("MenuButton", {
|
CASButton = MenuBuilder.BuildRegisteredType("MenuButton", {
|
||||||
controllerIndex = controllerIndex
|
controllerIndex = controllerIndex
|
||||||
})
|
})
|
||||||
casButton.id = "CASButton"
|
CASButton.id = "CASButton"
|
||||||
|
|
||||||
if CONDITIONS.IsCoreMultiplayer(SystemLinkMenuButtons) then
|
if CONDITIONS.IsCoreMultiplayer(SystemLinkMenuButtons) then
|
||||||
casButton.buttonDescription = Engine.Localize("LUA_MENU_DESC_CREATE_A_CLASS")
|
CASButton.buttonDescription = Engine.Localize("LUA_MENU_DESC_CREATE_A_CLASS")
|
||||||
end
|
end
|
||||||
|
|
||||||
casButton.Text:setText(ToUpperCase(Engine.Localize("LUA_MENU_CREATE_A_CLASS")), 0)
|
CASButton.Text:setText(ToUpperCase(Engine.Localize("LUA_MENU_CREATE_A_CLASS")), 0)
|
||||||
casButton:SetAnchorsAndPosition(0, 1, 0, 1, 0, _1080p * 500, _1080p * 80, _1080p * 110)
|
CASButton:SetAnchorsAndPosition(0, 1, 0, 1, 0, _1080p * 500, _1080p * 80, _1080p * 110)
|
||||||
SystemLinkMenuButtons:addElement(casButton)
|
SystemLinkMenuButtons:addElement(CASButton)
|
||||||
SystemLinkMenuButtons.CASButton = casButton
|
SystemLinkMenuButtons.CASButton = CASButton
|
||||||
end
|
end
|
||||||
|
|
||||||
local LoadoutButton = nil
|
local LoadoutButton = nil
|
||||||
@ -46,7 +46,7 @@ function SystemLinkMenuButtons(menu, controller)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if CONDITIONS.IsCoreMultiplayer(SystemLinkMenuButtons) then
|
if CONDITIONS.IsCoreMultiplayer(SystemLinkMenuButtons) then
|
||||||
casButton:addEventHandler("button_action", function(button, event)
|
CASButton:addEventHandler("button_action", function(button, event)
|
||||||
local currentControllerIndex = event.controller or controllerIndex
|
local currentControllerIndex = event.controller or controllerIndex
|
||||||
ClientWeapon.SetWeaponVisible(0, true)
|
ClientWeapon.SetWeaponVisible(0, true)
|
||||||
ClientCharacter.SetCharacterVisible(0, true)
|
ClientCharacter.SetCharacterVisible(0, true)
|
||||||
@ -55,7 +55,7 @@ function SystemLinkMenuButtons(menu, controller)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if CONDITIONS.IsThirdGameMode(SystemLinkMenuButtons) then
|
if CONDITIONS.IsThirdGameMode(SystemLinkMenuButtons) then
|
||||||
loadoutButton:addEventHandler("button_action", function(button, event)
|
LoadoutButton:addEventHandler("button_action", function(button, event)
|
||||||
ACTIONS.OpenMenu("CPLoadoutMenu", true, event.controller or controllerIndex)
|
ACTIONS.OpenMenu("CPLoadoutMenu", true, event.controller or controllerIndex)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
@ -251,7 +251,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
|
|
||||||
local LobbyMembers = nil
|
local LobbyMembers = nil
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
f22_local9 = MenuBuilder.BuildRegisteredType("LobbyMembers", {
|
LobbyMembers = MenuBuilder.BuildRegisteredType("LobbyMembers", {
|
||||||
controllerIndex = controllerIndex
|
controllerIndex = controllerIndex
|
||||||
})
|
})
|
||||||
LobbyMembers.id = "LobbyMembers"
|
LobbyMembers.id = "LobbyMembers"
|
||||||
@ -383,7 +383,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
CPMenuOuterMask:RegisterAnimationSequence("Intro", {{function()
|
OuterMaskTop:RegisterAnimationSequence("Intro", {{function()
|
||||||
return self.OuterMaskTop:SetAlpha(0, 0)
|
return self.OuterMaskTop:SetAlpha(0, 0)
|
||||||
end, function()
|
end, function()
|
||||||
return self.OuterMaskTop:SetAlpha(0.6, 500, LUI.EASING.outBack)
|
return self.OuterMaskTop:SetAlpha(0.6, 500, LUI.EASING.outBack)
|
||||||
@ -408,7 +408,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
end}})
|
end}})
|
||||||
end
|
end
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
f22_local4:RegisterAnimationSequence("Intro", {{function()
|
OuterMaskBottom:RegisterAnimationSequence("Intro", {{function()
|
||||||
return self.OuterMaskBottom:SetAlpha(0, 0)
|
return self.OuterMaskBottom:SetAlpha(0, 0)
|
||||||
end, function()
|
end, function()
|
||||||
return self.OuterMaskBottom:SetAlpha(0.6, 500, LUI.EASING.outBack)
|
return self.OuterMaskBottom:SetAlpha(0.6, 500, LUI.EASING.outBack)
|
||||||
@ -443,7 +443,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
_1080p * 406, _1080p * 628, 0)
|
_1080p * 406, _1080p * 628, 0)
|
||||||
end}})
|
end}})
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
f22_local9:RegisterAnimationSequence("Intro", {{function()
|
LobbyMembers:RegisterAnimationSequence("Intro", {{function()
|
||||||
return self.LobbyMembers:SetAlpha(0, 0)
|
return self.LobbyMembers:SetAlpha(0, 0)
|
||||||
end, function()
|
end, function()
|
||||||
return self.LobbyMembers:SetAlpha(0, 2000)
|
return self.LobbyMembers:SetAlpha(0, 2000)
|
||||||
@ -456,7 +456,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
_1080p * 802, 0)
|
_1080p * 802, 0)
|
||||||
end}})
|
end}})
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
controllerIndex1:RegisterAnimationSequence("Intro", {{function()
|
BloodSplat:RegisterAnimationSequence("Intro", {{function()
|
||||||
return self.BloodSplat:SetAlpha(0, 0)
|
return self.BloodSplat:SetAlpha(0, 0)
|
||||||
end, function()
|
end, function()
|
||||||
return self.BloodSplat:SetAlpha(0, 1000)
|
return self.BloodSplat:SetAlpha(0, 1000)
|
||||||
@ -488,7 +488,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
end}})
|
end}})
|
||||||
end
|
end
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
controllerIndex2:RegisterAnimationSequence("Intro", {{function()
|
ZombiesLogo:RegisterAnimationSequence("Intro", {{function()
|
||||||
return self.ZombiesLogo:SetAlpha(0, 0)
|
return self.ZombiesLogo:SetAlpha(0, 0)
|
||||||
end, function()
|
end, function()
|
||||||
return self.ZombiesLogo:SetAlpha(0, 1000)
|
return self.ZombiesLogo:SetAlpha(0, 1000)
|
||||||
@ -551,7 +551,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
end}})
|
end}})
|
||||||
end
|
end
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
controllerIndex3:RegisterAnimationSequence("Intro", {{function()
|
ZomLanPartyShadow:RegisterAnimationSequence("Intro", {{function()
|
||||||
return self.ZomLanPartyShadow:SetAlpha(0, 0)
|
return self.ZomLanPartyShadow:SetAlpha(0, 0)
|
||||||
end, function()
|
end, function()
|
||||||
return self.ZomLanPartyShadow:SetAlpha(0, 1710)
|
return self.ZomLanPartyShadow:SetAlpha(0, 1710)
|
||||||
@ -560,7 +560,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
end}})
|
end}})
|
||||||
end
|
end
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
controllerIndex4:RegisterAnimationSequence("Intro", {{function()
|
ZomLanParty:RegisterAnimationSequence("Intro", {{function()
|
||||||
return self.ZomLanParty:SetAlpha(0, 0)
|
return self.ZomLanParty:SetAlpha(0, 0)
|
||||||
end, function()
|
end, function()
|
||||||
return self.ZomLanParty:SetAlpha(0, 1220)
|
return self.ZomLanParty:SetAlpha(0, 1220)
|
||||||
@ -593,27 +593,27 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
|
|||||||
end}})
|
end}})
|
||||||
self._sequences.Intro = function()
|
self._sequences.Intro = function()
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
CPMenuOuterMask:AnimateSequence("Intro")
|
OuterMaskTop:AnimateSequence("Intro")
|
||||||
end
|
end
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
f22_local4:AnimateSequence("Intro")
|
OuterMaskBottom:AnimateSequence("Intro")
|
||||||
end
|
end
|
||||||
SystemLinkMenuButtons:AnimateSequence("Intro")
|
SystemLinkMenuButtons:AnimateSequence("Intro")
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
f22_local9:AnimateSequence("Intro")
|
LobbyMembers:AnimateSequence("Intro")
|
||||||
end
|
end
|
||||||
ServerBrowser:AnimateSequence("Intro")
|
ServerBrowser:AnimateSequence("Intro")
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
controllerIndex1:AnimateSequence("Intro")
|
BloodSplat:AnimateSequence("Intro")
|
||||||
end
|
end
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
controllerIndex2:AnimateSequence("Intro")
|
ZombiesLogo:AnimateSequence("Intro")
|
||||||
end
|
end
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
controllerIndex3:AnimateSequence("Intro")
|
ZomLanPartyShadow:AnimateSequence("Intro")
|
||||||
end
|
end
|
||||||
if CONDITIONS.IsThirdGameMode(self) then
|
if CONDITIONS.IsThirdGameMode(self) then
|
||||||
controllerIndex4:AnimateSequence("Intro")
|
ZomLanParty:AnimateSequence("Intro")
|
||||||
end
|
end
|
||||||
MPLobbyMembersPlayercards:AnimateSequence("Intro")
|
MPLobbyMembersPlayercards:AnimateSequence("Intro")
|
||||||
ButtonDescriptionText:AnimateSequence("Intro")
|
ButtonDescriptionText:AnimateSequence("Intro")
|
||||||
@ -689,7 +689,7 @@ end
|
|||||||
|
|
||||||
local PopFunc = function()
|
local PopFunc = function()
|
||||||
clearMatchData()
|
clearMatchData()
|
||||||
WipeGlobalModelsAtPath(f0_local0)
|
WipeGlobalModelsAtPath(serverBrowserPath)
|
||||||
end
|
end
|
||||||
|
|
||||||
LUI.FlowManager.RegisterStackPushBehaviour("SystemLinkMenu", PushFunc)
|
LUI.FlowManager.RegisterStackPushBehaviour("SystemLinkMenu", PushFunc)
|
||||||
|
Loading…
Reference in New Issue
Block a user