Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelrau committed Aug 6, 2024
1 parent 364813c commit 7bc8ae7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
20 changes: 10 additions & 10 deletions data/cdata/ui_scripts/SystemLinkMenu/ServerButtons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ function SystemLinkMenuButtons(menu, controller)

SystemLinkMenuButtons:SetSpacing(10 * _1080p)

local casButton = nil
local CASButton = nil
if CONDITIONS.IsCoreMultiplayer(SystemLinkMenuButtons) then
casButton = MenuBuilder.BuildRegisteredType("MenuButton", {
CASButton = MenuBuilder.BuildRegisteredType("MenuButton", {
controllerIndex = controllerIndex
})
casButton.id = "CASButton"
CASButton.id = "CASButton"

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

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)
SystemLinkMenuButtons:addElement(casButton)
SystemLinkMenuButtons.CASButton = casButton
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)
SystemLinkMenuButtons:addElement(CASButton)
SystemLinkMenuButtons.CASButton = CASButton
end

local LoadoutButton = nil
Expand All @@ -46,7 +46,7 @@ function SystemLinkMenuButtons(menu, controller)
end

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
ClientWeapon.SetWeaponVisible(0, true)
ClientCharacter.SetCharacterVisible(0, true)
Expand All @@ -55,7 +55,7 @@ function SystemLinkMenuButtons(menu, controller)
end

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)
end)
end
Expand Down
32 changes: 16 additions & 16 deletions data/cdata/ui_scripts/SystemLinkMenu/SysLinkBrowser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)

local LobbyMembers = nil
if CONDITIONS.IsThirdGameMode(self) then
f22_local9 = MenuBuilder.BuildRegisteredType("LobbyMembers", {
LobbyMembers = MenuBuilder.BuildRegisteredType("LobbyMembers", {
controllerIndex = controllerIndex
})
LobbyMembers.id = "LobbyMembers"
Expand Down Expand Up @@ -383,7 +383,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
end

if CONDITIONS.IsThirdGameMode(self) then
CPMenuOuterMask:RegisterAnimationSequence("Intro", {{function()
OuterMaskTop:RegisterAnimationSequence("Intro", {{function()
return self.OuterMaskTop:SetAlpha(0, 0)
end, function()
return self.OuterMaskTop:SetAlpha(0.6, 500, LUI.EASING.outBack)
Expand All @@ -408,7 +408,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
end}})
end
if CONDITIONS.IsThirdGameMode(self) then
f22_local4:RegisterAnimationSequence("Intro", {{function()
OuterMaskBottom:RegisterAnimationSequence("Intro", {{function()
return self.OuterMaskBottom:SetAlpha(0, 0)
end, function()
return self.OuterMaskBottom:SetAlpha(0.6, 500, LUI.EASING.outBack)
Expand Down Expand Up @@ -443,7 +443,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
_1080p * 406, _1080p * 628, 0)
end}})
if CONDITIONS.IsThirdGameMode(self) then
f22_local9:RegisterAnimationSequence("Intro", {{function()
LobbyMembers:RegisterAnimationSequence("Intro", {{function()
return self.LobbyMembers:SetAlpha(0, 0)
end, function()
return self.LobbyMembers:SetAlpha(0, 2000)
Expand All @@ -456,7 +456,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
_1080p * 802, 0)
end}})
if CONDITIONS.IsThirdGameMode(self) then
controllerIndex1:RegisterAnimationSequence("Intro", {{function()
BloodSplat:RegisterAnimationSequence("Intro", {{function()
return self.BloodSplat:SetAlpha(0, 0)
end, function()
return self.BloodSplat:SetAlpha(0, 1000)
Expand Down Expand Up @@ -488,7 +488,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
end}})
end
if CONDITIONS.IsThirdGameMode(self) then
controllerIndex2:RegisterAnimationSequence("Intro", {{function()
ZombiesLogo:RegisterAnimationSequence("Intro", {{function()
return self.ZombiesLogo:SetAlpha(0, 0)
end, function()
return self.ZombiesLogo:SetAlpha(0, 1000)
Expand Down Expand Up @@ -551,7 +551,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
end}})
end
if CONDITIONS.IsThirdGameMode(self) then
controllerIndex3:RegisterAnimationSequence("Intro", {{function()
ZomLanPartyShadow:RegisterAnimationSequence("Intro", {{function()
return self.ZomLanPartyShadow:SetAlpha(0, 0)
end, function()
return self.ZomLanPartyShadow:SetAlpha(0, 1710)
Expand All @@ -560,7 +560,7 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
end}})
end
if CONDITIONS.IsThirdGameMode(self) then
controllerIndex4:RegisterAnimationSequence("Intro", {{function()
ZomLanParty:RegisterAnimationSequence("Intro", {{function()
return self.ZomLanParty:SetAlpha(0, 0)
end, function()
return self.ZomLanParty:SetAlpha(0, 1220)
Expand Down Expand Up @@ -593,27 +593,27 @@ MenuBuilder.m_types["SystemLinkMenu"] = function(menu, controller)
end}})
self._sequences.Intro = function()
if CONDITIONS.IsThirdGameMode(self) then
CPMenuOuterMask:AnimateSequence("Intro")
OuterMaskTop:AnimateSequence("Intro")
end
if CONDITIONS.IsThirdGameMode(self) then
f22_local4:AnimateSequence("Intro")
OuterMaskBottom:AnimateSequence("Intro")
end
SystemLinkMenuButtons:AnimateSequence("Intro")
if CONDITIONS.IsThirdGameMode(self) then
f22_local9:AnimateSequence("Intro")
LobbyMembers:AnimateSequence("Intro")
end
ServerBrowser:AnimateSequence("Intro")
if CONDITIONS.IsThirdGameMode(self) then
controllerIndex1:AnimateSequence("Intro")
BloodSplat:AnimateSequence("Intro")
end
if CONDITIONS.IsThirdGameMode(self) then
controllerIndex2:AnimateSequence("Intro")
ZombiesLogo:AnimateSequence("Intro")
end
if CONDITIONS.IsThirdGameMode(self) then
controllerIndex3:AnimateSequence("Intro")
ZomLanPartyShadow:AnimateSequence("Intro")
end
if CONDITIONS.IsThirdGameMode(self) then
controllerIndex4:AnimateSequence("Intro")
ZomLanParty:AnimateSequence("Intro")
end
MPLobbyMembersPlayercards:AnimateSequence("Intro")
ButtonDescriptionText:AnimateSequence("Intro")
Expand Down Expand Up @@ -689,7 +689,7 @@ end

local PopFunc = function()
clearMatchData()
WipeGlobalModelsAtPath(f0_local0)
WipeGlobalModelsAtPath(serverBrowserPath)
end

LUI.FlowManager.RegisterStackPushBehaviour("SystemLinkMenu", PushFunc)
Expand Down

0 comments on commit 7bc8ae7

Please sign in to comment.