local Lib = getgenv().Library local W = Lib.CurrentWindow local Main = W.Items["MainFrame"].Instance -- run the same popup the keybind uses and inspect it local Anchor for _, Item in ipairs(Main:GetDescendants()) do if Item:IsA("TextButton") and Item.AbsoluteSize.Y == 24 and Item.AbsoluteSize.X == 72 then Anchor = Item break end end print("[popup] anchor " .. tostring(Anchor ~= nil) .. " at " .. (Anchor and (math.floor(Anchor.AbsolutePosition.X) .. "," .. math.floor(Anchor.AbsolutePosition.Y)) or "?")) local Picked = nil Lib:ShowModePopup(Anchor, "Hold", function(Mode) Picked = Mode end) task.wait(0.4) local Popup for _, Item in ipairs(Main:GetChildren()) do if Item:IsA("Frame") and Item.ZIndex == 6000 then Popup = Item end end print("[popup] created " .. tostring(Popup ~= nil) .. " size " .. (Popup and (Popup.AbsoluteSize.X .. "x" .. Popup.AbsoluteSize.Y) or "?") .. " pos " .. (Popup and (math.floor(Popup.AbsolutePosition.X) .. "," .. math.floor(Popup.AbsolutePosition.Y)) or "?") .. " (anchor bottom " .. (Anchor and math.floor(Anchor.AbsolutePosition.Y + Anchor.AbsoluteSize.Y) or 0) .. ")") if Popup then for _, Row in ipairs(Popup:GetChildren()) do if Row:IsA("TextButton") then print("[popup] option '" .. Row.Text .. "' bgT=" .. Row.BackgroundTransparency .. " color=" .. tostring(Row.TextColor3)) end end end -- scaled: set ui scale to 0.7 and re-open, the popup must shrink with the window Lib:SetUIScale(0.7) task.wait(0.3) Lib:ShowModePopup(Anchor, "Toggle", function() end) task.wait(0.4) local Popup2 for _, Item in ipairs(Main:GetChildren()) do if Item:IsA("Frame") and Item.ZIndex == 6000 then Popup2 = Item end end print("[popup] at 0.7x size " .. (Popup2 and (Popup2.AbsoluteSize.X .. "x" .. Popup2.AbsoluteSize.Y) or "?") .. " pos " .. (Popup2 and (math.floor(Popup2.AbsolutePosition.X) .. "," .. math.floor(Popup2.AbsolutePosition.Y)) or "?")) Lib:SetUIScale(1)