Advertisement
Vortex23

A

Jan 9th, 2025
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.10 KB | None | 0 0
  1. local MacLib = loadstring(game:HttpGet("https://github.com/biggaboy212/Maclib/releases/latest/download/maclib.txt"))()
  2.  
  3. local Window = MacLib:Window({
  4.     Title = "Maclib Demo",
  5.     Subtitle = "This is a subtitle.",
  6.     Size = UDim2.fromOffset(868, 650),
  7.     DragStyle = 1,
  8.     DisabledWindowControls = {},
  9.     ShowUserInfo = true,
  10.     Keybind = Enum.KeyCode.RightControl,
  11.     AcrylicBlur = true,
  12. })
  13.  
  14. local globalSettings = {
  15.     UIBlurToggle = Window:GlobalSetting({
  16.         Name = "UI Blur",
  17.         Default = Window:GetAcrylicBlurState(),
  18.         Callback = function(bool)
  19.             Window:SetAcrylicBlurState(bool)
  20.             Window:Notify({
  21.                 Title = Window.Settings.Title,
  22.                 Description = (bool and "Enabled" or "Disabled") .. " UI Blur",
  23.                 Lifetime = 5
  24.             })
  25.         end,
  26.     }),
  27.     NotificationToggler = Window:GlobalSetting({
  28.         Name = "Notifications",
  29.         Default = Window:GetNotificationsState(),
  30.         Callback = function(bool)
  31.             Window:SetNotificationsState(bool)
  32.             Window:Notify({
  33.                 Title = Window.Settings.Title,
  34.                 Description = (bool and "Enabled" or "Disabled") .. " Notifications",
  35.                 Lifetime = 5
  36.             })
  37.         end,
  38.     }),
  39.     ShowUserInfo = Window:GlobalSetting({
  40.         Name = "Show User Info",
  41.         Default = Window:GetUserInfoState(),
  42.         Callback = function(bool)
  43.             Window:SetUserInfoState(bool)
  44.             Window:Notify({
  45.                 Title = Window.Settings.Title,
  46.                 Description = (bool and "Showing" or "Redacted") .. " User Info",
  47.                 Lifetime = 5
  48.             })
  49.         end,
  50.     })
  51. }
  52.  
  53. local tabGroups = {
  54.     TabGroup1 = Window:TabGroup()
  55. }
  56.  
  57. local tabs = {
  58.     Main = tabGroups.TabGroup1:Tab({ Name = "Demo", Image = "rbxassetid://18821914323" }),
  59.     Settings = tabGroups.TabGroup1:Tab({ Name = "Settings", Image = "rbxassetid://10734950309" })
  60. }
  61.  
  62. local sections = {
  63.     MainSection1 = tabs.Main:Section({ Side = "Left" }),
  64. }
  65.  
  66. sections.MainSection1:Header({
  67.     Name = "Header #1"
  68. })
  69.  
  70. sections.MainSection1:Button({
  71.     Name = "Button",
  72.     Callback = function()
  73.         Window:Dialog({
  74.             Title = Window.Settings.Title,
  75.             Description = "Lorem ipsum odor amet, consectetuer adipiscing elit. Eros vestibulum aliquet mattis, ex platea nunc.",
  76.             Buttons = {
  77.                 {
  78.                     Name = "Confirm",
  79.                     Callback = function()
  80.                         print("Confirmed!")
  81.                     end,
  82.                 },
  83.                 {
  84.                     Name = "Cancel"
  85.                 }
  86.             }
  87.         })
  88.     end,
  89. })
  90.  
  91. sections.MainSection1:Input({
  92.     Name = "Input",
  93.     Placeholder = "Input",
  94.     AcceptedCharacters = "All",
  95.     Callback = function(input)
  96.         Window:Notify({
  97.             Title = Window.Settings.Title,
  98.             Description = "Successfully set input to " .. input
  99.         })
  100.     end,
  101.     onChanged = function(input)
  102.         print("Input is now " .. input)
  103.     end,
  104. }, "Input")
  105.  
  106. sections.MainSection1:Slider({
  107.     Name = "Slider",
  108.     Default = 50,
  109.     Minimum = 0,
  110.     Maximum = 100,
  111.     DisplayMethod = "Percent",
  112.     Precision = 0,
  113.     Callback = function(Value)
  114.         print("Changed to ".. Value)
  115.     end
  116. }, "Slider")
  117.  
  118. sections.MainSection1:Toggle({
  119.     Name = "Toggle",
  120.     Default = false,
  121.     Callback = function(value)
  122.         Window:Notify({
  123.             Title = Window.Settings.Title,
  124.             Description = (value and "Enabled " or "Disabled ") .. "Toggle"
  125.         })
  126.     end,
  127. }, "Toggle")
  128.  
  129. sections.MainSection1:Keybind({
  130.     Name = "Keybind",
  131.     Blacklist = false,
  132.     Callback = function(binded)
  133.         Window:Notify({
  134.             Title = "Demo Window",
  135.             Description = "Pressed keybind - "..tostring(binded.Name),
  136.             Lifetime = 3
  137.         })
  138.     end,
  139.     onBinded = function(bind)
  140.         Window:Notify({
  141.             Title = "Demo Window",
  142.             Description = "Successfully Binded Keybind to - "..tostring(bind.Name),
  143.             Lifetime = 3
  144.         })
  145.     end,
  146. }, "Keybind")
  147.  
  148. sections.MainSection1:Colorpicker({
  149.     Name = "Colorpicker",
  150.     Default = Color3.fromRGB(0, 255, 255),
  151.     Callback = function(color)
  152.         print("Color: ", color)
  153.     end,
  154. }, "Colorpicker")
  155.  
  156. local alphaColorPicker = sections.MainSection1:Colorpicker({
  157.     Name = "Transparency Colorpicker",
  158.     Default = Color3.fromRGB(255,0,0),
  159.     Alpha = 0,
  160.     Callback = function(color, alpha)
  161.         print("Color: ", color, " Alpha: ", alpha)
  162.     end,
  163. }, "TransparencyColorpicker")
  164.  
  165. local rainbowActive
  166. local rainbowConnection
  167. local hue = 0
  168.  
  169. sections.MainSection1:Toggle({
  170.     Name = "Rainbow",
  171.     Default = false,
  172.     Callback = function(value)
  173.         rainbowActive = value
  174.  
  175.         if rainbowActive then
  176.             rainbowConnection = game:GetService("RunService").RenderStepped:Connect(function(deltaTime)
  177.                 hue = (hue + deltaTime * 0.1) % 1
  178.                 alphaColorPicker:SetColor(Color3.fromHSV(hue, 1, 1))
  179.             end)
  180.         elseif rainbowConnection then
  181.             rainbowConnection:Disconnect()
  182.             rainbowConnection = nil
  183.         end
  184.     end,
  185. }, "RainbowToggle")
  186.  
  187. local optionTable = {
  188.     "Apple",
  189.     "Banana",
  190.     "Orange",
  191.     "Grapes",
  192.     "Pineapple",
  193.     "Mango",
  194.     "Strawberry",
  195.     "Blueberry",
  196.     "Watermelon",
  197.     "Peach"
  198. }
  199.  
  200. local Dropdown = sections.MainSection1:Dropdown({
  201.     Name = "Dropdown",
  202.     Multi = false,
  203.     Required = true,
  204.     Options = optionTable,
  205.     Default = 1,
  206.     Callback = function(Value)
  207.         print("Dropdown changed: ".. Value)
  208.     end,
  209. }, "Dropdown")
  210.  
  211. local MultiDropdown = sections.MainSection1:Dropdown({
  212.     Name = "Multi Dropdown",
  213.     Search = true,
  214.     Multi = true,
  215.     Required = false,
  216.     Options = optionTable,
  217.     Default = {"Apple", "Orange"},
  218.     Callback = function(Value)
  219.         local Values = {}
  220.         for Value, State in next, Value do
  221.             table.insert(Values, Value)
  222.         end
  223.         print("Mutlidropdown changed:", table.concat(Values, ", "))
  224.     end,
  225. }, "MultiDropdown")
  226.  
  227. sections.MainSection1:Button({
  228.     Name = "Update Selection",
  229.     Callback = function()
  230.         Dropdown:UpdateSelection("Grapes")
  231.         MultiDropdown:UpdateSelection({"Banana", "Pineapple"})
  232.     end,
  233. })
  234.  
  235. sections.MainSection1:Divider()
  236.  
  237. sections.MainSection1:Header({
  238.     Text = "Header #2"
  239. })
  240.  
  241. sections.MainSection1:Paragraph({
  242.     Header = "Paragraph",
  243.     Body = "Paragraph body. Lorem ipsum odor amet, consectetuer adipiscing elit. Morbi tempus netus aliquet per velit est gravida."
  244. })
  245.  
  246. sections.MainSection1:Label({
  247.     Text = "Label. Lorem ipsum odor amet, consectetuer adipiscing elit."
  248. })
  249.  
  250. sections.MainSection1:SubLabel({
  251.     Text = "Sub-Label. Lorem ipsum odor amet, consectetuer adipiscing elit."
  252. })
  253.  
  254. MacLib:SetFolder("Maclib")
  255. tabs.Settings:InsertConfigSection("Left")
  256.  
  257. Window.onUnloaded(function()
  258.     print("Unloaded!")
  259. end)
  260.  
  261. tabs.Main:Select()
  262. MacLib:LoadAutoLoadConfig()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement