local Lib = getgenv().Library local W = Lib.CurrentWindow local Main = W.Items["MainFrame"].Instance local function Collect(Root, Out) Out = Out or { } for _, Child in ipairs(Root:GetChildren()) do table.insert(Out, Child) Collect(Child, Out) end return Out end -- drag wiring local Ok, Count = pcall(function() return #getconnections(W.Items["Sidebar"].Instance.InputBegan) end) print("[cards] sidebar InputBegan connections: " .. tostring(Ok and Count or "unavailable")) local Ok2, Count2 = pcall(function() return #getconnections(W.Items["Content"].Instance.InputBegan) end) print("[cards] content InputBegan connections: " .. tostring(Ok2 and Count2 or "unavailable")) -- section cards for _, Item in ipairs(Collect(Main)) do local HasCorner = Item:FindFirstChildOfClass("UICorner") ~= nil if Item:IsA("Frame") and HasCorner and Item.ClipsDescendants and Item.AbsoluteSize.X > 200 then local Band, Title, Divider, Content for _, Kid in ipairs(Item:GetChildren()) do if Kid:IsA("Frame") and Kid.AbsoluteSize.Y == 28 then Band = Kid elseif Kid:IsA("TextLabel") then Title = Kid elseif Kid:IsA("Frame") and Kid.AbsoluteSize.Y == 1 then Divider = Kid elseif Kid:IsA("Frame") and Kid.AbsoluteSize.Y > 20 and Kid.Position.Y.Offset == 29 then Content = Kid end end if Band and Title then print(string.format("[cards] %-10s card=%dx%d bg=%d,%d,%d band bg=%d,%d,%d h=%d title@%d clipped=%s pad=%d", Title.Text, Item.AbsoluteSize.X, Item.AbsoluteSize.Y, Item.BackgroundColor3.R * 255, Item.BackgroundColor3.G * 255, Item.BackgroundColor3.B * 255, Band.BackgroundColor3.R * 255, Band.BackgroundColor3.G * 255, Band.BackgroundColor3.B * 255, Band.AbsoluteSize.Y, Title.AbsolutePosition.X - Item.AbsolutePosition.X, tostring(Item.ClipsDescendants), Content and (Content:FindFirstChildOfClass("UIPadding") and Content:FindFirstChildOfClass("UIPadding").PaddingLeft.Offset or -1) or -1)) end end end -- search field has no icon child local IconCount = 0 for _, Kid in ipairs(W.SearchBox.Instance:GetChildren()) do if Kid:IsA("ImageLabel") or (Kid:IsA("Frame") and #Kid:GetChildren() > 0) then IconCount += 1 end end print("[cards] search field icon-ish children: " .. IconCount)