update server list
This commit is contained in:
@ -7,7 +7,7 @@ end
|
||||
|
||||
function SystemLinkJoinMenuRow(menu, controller)
|
||||
local self = LUI.UIButton.new()
|
||||
self:SetAnchorsAndPosition(0, 1, 0, 1, 0, 1131 * _1080p, 0, 35 * _1080p)
|
||||
self:SetAnchorsAndPosition(0, 1, 0, 1, 0, 1790 * _1080p, 0, 35 * _1080p)
|
||||
self.id = "SystemLinkJoinMenuRow"
|
||||
self._animationSets = {}
|
||||
self._sequences = {}
|
||||
@ -52,7 +52,7 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Host:SetCrossfadeTime(400)
|
||||
Host:SetAutoScrollStyle(LUI.UIStyledText.AutoScrollStyle.ScrollH)
|
||||
Host:SetMaxVisibleLines(1)
|
||||
Host:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 12, _1080p * 279, _1080p * -12, _1080p * 12)
|
||||
Host:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 9, _1080p * 275, _1080p * -12, _1080p * 12)
|
||||
Host:SubscribeToModelThroughElement(self, "host", function()
|
||||
local dataSource = self:GetDataSource()
|
||||
dataSource = dataSource.host:GetValue(controllerIndex)
|
||||
@ -70,8 +70,8 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Players:SetRGBFromInt(14277081, 0)
|
||||
Players:SetFontSize(24 * _1080p)
|
||||
Players:SetFont(FONTS.GetFont(FONTS.MainMedium.File))
|
||||
Players:SetAlignment(LUI.Alignment.Left)
|
||||
Players:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 286, _1080p * 421, _1080p * -12, _1080p * 12)
|
||||
Players:SetAlignment(LUI.Alignment.Center)
|
||||
Players:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 283, _1080p * 418, _1080p * -12, _1080p * 12)
|
||||
Players:SubscribeToModelThroughElement(self, "players", function()
|
||||
local dataSource = self:GetDataSource()
|
||||
dataSource = dataSource.players:GetValue(controllerIndex)
|
||||
@ -90,7 +90,7 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Status:SetFontSize(24 * _1080p)
|
||||
Status:SetFont(FONTS.GetFont(FONTS.MainMedium.File))
|
||||
Status:SetAlignment(LUI.Alignment.Left)
|
||||
Status:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 426, _1080p * 626, _1080p * -12, _1080p * 12)
|
||||
Status:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 426, _1080p * 620, _1080p * -12, _1080p * 12)
|
||||
Status:SubscribeToModelThroughElement(self, "status", function()
|
||||
local dataSource = self:GetDataSource()
|
||||
dataSource = dataSource.status:GetValue(controllerIndex)
|
||||
@ -111,7 +111,7 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Map:SetAlignment(LUI.Alignment.Left)
|
||||
Map:SetStartupDelay(1250)
|
||||
Map:SetLineHoldTime(400)
|
||||
Map:SetAnimMoveTime(300)
|
||||
Map:SetAnimMoveTime(3000)
|
||||
Map:SetEndDelay(1000)
|
||||
Map:SetCrossfadeTime(500)
|
||||
Map:SetAutoScrollStyle(LUI.UIStyledText.AutoScrollStyle.ScrollH)
|
||||
@ -135,7 +135,7 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Type:SetFontSize(24 * _1080p)
|
||||
Type:SetFont(FONTS.GetFont(FONTS.MainMedium.File))
|
||||
Type:SetAlignment(LUI.Alignment.Left)
|
||||
Type:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 862, _1080p * 1119, _1080p * -12, _1080p * 12)
|
||||
Type:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 862, _1080p * 1115, _1080p * -12, _1080p * 12)
|
||||
Type:SubscribeToModelThroughElement(self, "type", function()
|
||||
local dataSource = self:GetDataSource()
|
||||
dataSource = dataSource.type:GetValue(controllerIndex)
|
||||
@ -146,6 +146,70 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
self:addElement(Type)
|
||||
self.Type = Type
|
||||
|
||||
local Mod = nil
|
||||
|
||||
Mod = LUI.UIStyledText.new()
|
||||
Mod.id = "Mod"
|
||||
Mod:SetRGBFromInt(14277081, 0)
|
||||
Mod:SetFontSize(24 * _1080p)
|
||||
Mod:SetFont(FONTS.GetFont(FONTS.MainMedium.File))
|
||||
Mod:SetAlignment(LUI.Alignment.Left)
|
||||
Mod:SetStartupDelay(1250)
|
||||
Mod:SetLineHoldTime(400)
|
||||
Mod:SetAnimMoveTime(3000)
|
||||
Mod:SetEndDelay(1000)
|
||||
Mod:SetCrossfadeTime(500)
|
||||
Mod:SetAutoScrollStyle(LUI.UIStyledText.AutoScrollStyle.ScrollH)
|
||||
Mod:SetMaxVisibleLines(1)
|
||||
Mod:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 1125, _1080p * 1400, _1080p * -12, _1080p * 12)
|
||||
Mod:SubscribeToModelThroughElement(self, "mod", function()
|
||||
local dataSource = self:GetDataSource()
|
||||
dataSource = dataSource.mod:GetValue(controllerIndex)
|
||||
if dataSource ~= nil then
|
||||
Mod:setText(dataSource, 0)
|
||||
end
|
||||
end)
|
||||
self:addElement(Mod)
|
||||
self.Mod = Mod
|
||||
|
||||
local Ping = nil
|
||||
|
||||
Ping = LUI.UIText.new()
|
||||
Ping.id = "Ping"
|
||||
Ping:SetRGBFromInt(14277081, 0)
|
||||
Ping:SetFontSize(24 * _1080p)
|
||||
Ping:SetFont(FONTS.GetFont(FONTS.MainMedium.File))
|
||||
Ping:SetAlignment(LUI.Alignment.Center)
|
||||
Ping:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 1410, _1080p * 1460, _1080p * -12, _1080p * 12)
|
||||
Ping:SubscribeToModelThroughElement(self, "ping", function()
|
||||
local dataSource = self:GetDataSource()
|
||||
dataSource = dataSource.ping:GetValue(controllerIndex)
|
||||
if dataSource ~= nil then
|
||||
Ping:setText(dataSource, 0)
|
||||
end
|
||||
end)
|
||||
self:addElement(Ping)
|
||||
self.Ping = Ping
|
||||
|
||||
local PrivateS = nil
|
||||
|
||||
PrivateS = LUI.UIText.new()
|
||||
PrivateS.id = "PrivateS"
|
||||
PrivateS:SetRGBFromInt(14277081, 0)
|
||||
PrivateS:SetFontSize(24 * _1080p)
|
||||
PrivateS:SetFont(FONTS.GetFont(FONTS.MainMedium.File))
|
||||
PrivateS:SetAlignment(LUI.Alignment.Center)
|
||||
PrivateS:SetAnchorsAndPosition(0, 1, 0.5, 0.5, _1080p * 1470, _1080p * 1550, _1080p * -12, _1080p * 12)
|
||||
PrivateS:SubscribeToModelThroughElement(self, "priv", function()
|
||||
local dataSource = self:GetDataSource()
|
||||
dataSource = dataSource.priv:GetValue(controllerIndex)
|
||||
if dataSource ~= nil then
|
||||
PrivateS:setText(dataSource, 0)
|
||||
end
|
||||
end)
|
||||
self:addElement(PrivateS)
|
||||
self.PrivateS = PrivateS
|
||||
|
||||
local Cap = nil
|
||||
|
||||
Cap = LUI.UIImage.new()
|
||||
@ -180,6 +244,15 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Type:RegisterAnimationSequence("ButtonOver", {{function()
|
||||
return self.Type:SetRGBFromInt(0, 0)
|
||||
end}})
|
||||
Mod:RegisterAnimationSequence("ButtonOver", {{function()
|
||||
return self.Mod:SetRGBFromInt(0, 0)
|
||||
end}})
|
||||
Ping:RegisterAnimationSequence("ButtonOver", {{function()
|
||||
return self.Ping:SetRGBFromInt(0, 0)
|
||||
end}})
|
||||
PrivateS:RegisterAnimationSequence("ButtonOver", {{function()
|
||||
return self.PrivateS:SetRGBFromInt(0, 0)
|
||||
end}})
|
||||
Cap:RegisterAnimationSequence("ButtonOver", {{function()
|
||||
return self.Cap:SetRGBFromInt(0, 0)
|
||||
end}})
|
||||
@ -190,6 +263,9 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Status:AnimateSequence("ButtonOver")
|
||||
Map:AnimateSequence("ButtonOver")
|
||||
Type:AnimateSequence("ButtonOver")
|
||||
Mod:AnimateSequence("ButtonOver")
|
||||
Ping:AnimateSequence("ButtonOver")
|
||||
PrivateS:AnimateSequence("ButtonOver")
|
||||
Cap:AnimateSequence("ButtonOver")
|
||||
end
|
||||
|
||||
@ -213,6 +289,15 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Type:RegisterAnimationSequence("ButtonUp", {{function()
|
||||
return self.Type:SetRGBFromInt(14277081, 0)
|
||||
end}})
|
||||
Mod:RegisterAnimationSequence("ButtonUp", {{function()
|
||||
return self.Mod:SetRGBFromInt(14277081, 0)
|
||||
end}})
|
||||
Ping:RegisterAnimationSequence("ButtonUp", {{function()
|
||||
return self.Ping:SetRGBFromInt(14277081, 0)
|
||||
end}})
|
||||
PrivateS:RegisterAnimationSequence("ButtonUp", {{function()
|
||||
return self.PrivateS:SetRGBFromInt(14277081, 0)
|
||||
end}})
|
||||
Cap:RegisterAnimationSequence("ButtonUp", {{function()
|
||||
return self.Cap:SetRGBFromInt(14277081, 0)
|
||||
end}})
|
||||
@ -223,6 +308,9 @@ function SystemLinkJoinMenuRow(menu, controller)
|
||||
Status:AnimateSequence("ButtonUp")
|
||||
Map:AnimateSequence("ButtonUp")
|
||||
Type:AnimateSequence("ButtonUp")
|
||||
Mod:AnimateSequence("ButtonUp")
|
||||
Ping:AnimateSequence("ButtonUp")
|
||||
PrivateS:AnimateSequence("ButtonUp")
|
||||
Cap:AnimateSequence("ButtonUp")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user