Further improve revamped about page and other formatting improvements
This commit is contained in:
parent
407318f410
commit
0a2138897c
|
|
@ -1645,7 +1645,7 @@ end
|
||||||
tframes the team entries to unroll
|
tframes the team entries to unroll
|
||||||
outframes the list to unroll these entries into
|
outframes the list to unroll these entries into
|
||||||
--]]
|
--]]
|
||||||
local function UnrollTeams(tframes: table, outframes: table)
|
local function UnrollTeams(tframes: { any }, outframes: { any })
|
||||||
local numEntries = 0
|
local numEntries = 0
|
||||||
if NeutralTeam and not NeutralTeam.IsHidden then
|
if NeutralTeam and not NeutralTeam.IsHidden then
|
||||||
for _, val in ipairs(NeutralTeam.MyPlayers) do
|
for _, val in ipairs(NeutralTeam.MyPlayers) do
|
||||||
|
|
@ -2615,23 +2615,23 @@ local function AddMiddleBGFrame()
|
||||||
local nBGFrame = MiddleBGTemplate:Clone()
|
local nBGFrame = MiddleBGTemplate:Clone()
|
||||||
nBGFrame.Position =
|
nBGFrame.Position =
|
||||||
UDim2.new(0.5, 0, (#MiddleFrameBackgrounds * nBGFrame.Size.Y.Scale), 0)
|
UDim2.new(0.5, 0, (#MiddleFrameBackgrounds * nBGFrame.Size.Y.Scale), 0)
|
||||||
|
|
||||||
|
local function applyImage(id: string)
|
||||||
|
nBGFrame.Background.Image = `http://banland.xyz/asset?id={id}`
|
||||||
|
end
|
||||||
|
|
||||||
if (#MiddleFrameBackgrounds + 1) % 2 ~= 1 then
|
if (#MiddleFrameBackgrounds + 1) % 2 ~= 1 then
|
||||||
if IsMaximized.Value then
|
if IsMaximized.Value then
|
||||||
nBGFrame.Background.Image = "http://banland.xyz/asset?id="
|
applyImage(Images.LargeDark)
|
||||||
.. Images.LargeDark
|
|
||||||
else
|
else
|
||||||
nBGFrame.Background.Image = "http://banland.xyz/asset?id="
|
applyImage(Images.midDark)
|
||||||
.. Images.midDark
|
|
||||||
end
|
end
|
||||||
|
elseif IsMaximized.Value then
|
||||||
|
applyImage(Images.LargeLight)
|
||||||
else
|
else
|
||||||
if IsMaximized.Value then
|
applyImage(Images.midLight)
|
||||||
nBGFrame.Background.Image = "http://banland.xyz/asset?id="
|
|
||||||
.. Images.LargeLight
|
|
||||||
else
|
|
||||||
nBGFrame.Background.Image = "http://banland.xyz/asset?id="
|
|
||||||
.. Images.midLight
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
nBGFrame.Parent = ListFrame
|
nBGFrame.Parent = ListFrame
|
||||||
table.insert(MiddleFrameBackgrounds, nBGFrame)
|
table.insert(MiddleFrameBackgrounds, nBGFrame)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue