From 0a2138897c64b6cf807ba6e163dc97b6e0fa05c4 Mon Sep 17 00:00:00 2001 From: Lewin Kelly Date: Tue, 6 Feb 2024 04:10:06 +0000 Subject: [PATCH] Further improve revamped about page and other formatting improvements --- luau/48488235.luau | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/luau/48488235.luau b/luau/48488235.luau index 02f48f9..e52f53f 100644 --- a/luau/48488235.luau +++ b/luau/48488235.luau @@ -1645,7 +1645,7 @@ end tframes the team entries to unroll 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 if NeutralTeam and not NeutralTeam.IsHidden then for _, val in ipairs(NeutralTeam.MyPlayers) do @@ -2615,23 +2615,23 @@ local function AddMiddleBGFrame() local nBGFrame = MiddleBGTemplate:Clone() nBGFrame.Position = 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 IsMaximized.Value then - nBGFrame.Background.Image = "http://banland.xyz/asset?id=" - .. Images.LargeDark + applyImage(Images.LargeDark) else - nBGFrame.Background.Image = "http://banland.xyz/asset?id=" - .. Images.midDark + applyImage(Images.midDark) end + elseif IsMaximized.Value then + applyImage(Images.LargeLight) else - if IsMaximized.Value then - nBGFrame.Background.Image = "http://banland.xyz/asset?id=" - .. Images.LargeLight - else - nBGFrame.Background.Image = "http://banland.xyz/asset?id=" - .. Images.midLight - end + applyImage(Images.midLight) end + nBGFrame.Parent = ListFrame table.insert(MiddleFrameBackgrounds, nBGFrame)