# Table of Contents - [Loading Maclib | Maclib UI Library](#loading-maclib-maclib-ui-library) - [Welcome | Maclib UI Library](#welcome-maclib-ui-library) - [Miscellaneous | Maclib UI Library](#miscellaneous-maclib-ui-library) - [Displaying a notification | Maclib UI Library](#displaying-a-notification-maclib-ui-library) - [Documentation Formatting | Maclib UI Library](#documentation-formatting-maclib-ui-library) - [Adding a Global Setting | Maclib UI Library](#adding-a-global-setting-maclib-ui-library) - [Creating a window | Maclib UI Library](#creating-a-window-maclib-ui-library) - [Creating a tab group | Maclib UI Library](#creating-a-tab-group-maclib-ui-library) - [Prompting a dialog | Maclib UI Library](#prompting-a-dialog-maclib-ui-library) - [Header | Maclib UI Library](#header-maclib-ui-library) - [Adding tabs | Maclib UI Library](#adding-tabs-maclib-ui-library) - [Input | Maclib UI Library](#input-maclib-ui-library) - [Toggle | Maclib UI Library](#toggle-maclib-ui-library) - [Colorpicker | Maclib UI Library](#colorpicker-maclib-ui-library) - [Keybind | Maclib UI Library](#keybind-maclib-ui-library) - [Dropdown | Maclib UI Library](#dropdown-maclib-ui-library) - [Adding sections | Maclib UI Library](#adding-sections-maclib-ui-library) - [Button | Maclib UI Library](#button-maclib-ui-library) - [Slider | Maclib UI Library](#slider-maclib-ui-library) - [Paragraph | Maclib UI Library](#paragraph-maclib-ui-library) - [Label | Maclib UI Library](#label-maclib-ui-library) - [Sub Label | Maclib UI Library](#sub-label-maclib-ui-library) - [Divider | Maclib UI Library](#divider-maclib-ui-library) - [Spacer | Maclib UI Library](#spacer-maclib-ui-library) - [Loading Maclib | Maclib UI Library](#loading-maclib-maclib-ui-library) - [Welcome | Maclib UI Library](#welcome-maclib-ui-library) --- # Loading Maclib | Maclib UI Library First, you must import and define the Maclib module, place this code somewhere to begin. Copy local MacLib = loadstring(game:HttpGet("https://github.com/biggaboy212/Maclib/releases/latest/download/maclib.txt"))() Functions Copy :Demo() -- Brings up a demo window :SetFolder( Folder) -- Sets the folder all configs are saved in. :SaveConfig( Path) -- Saves all element values to a file in the folder you set with :SetFolder(), you can ignore certain elements by setting their .IgnoreConfig to true, or simply not defining a flag. :LoadConfig( Path) -- Loads a config located at path. :RefreshConfigList(: table) -- Returns a table of all saved config names ( eg. {"Legit.json", "Rage.json"} ) :LoadAutoLoadConfig() -- Loads the config the user selected to automatically load. --// To insert a pre-made config section, reference the "Adding tabs" page. [PreviousMiscellaneous](https://brady-xyz.gitbook.io/maclib-ui-library/information/miscellaneous) [NextCreating a window](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window) Last updated 1 year ago Was this helpful? --- # Welcome | Maclib UI Library ![Page cover](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252F6tIMnhlQAkFSG7qh9NNI%252Fphoto-1693590229281-6a78deecd122.jpg%3Falt%3Dmedia%26token%3D64491b8d-1d45-4ae3-916a-26ad4896fc56&width=1248&dpr=4&quality=100&sign=4c69a9ba&sv=2) ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FqeBjNDIF1pMG8kMmnx76%252Fimage.png%3Falt%3Dmedia%26token%3D33cea983-57cf-4edb-8c51-0d9a121af543&width=768&dpr=4&quality=100&sign=f34c6682&sv=2) #### [](https://brady-xyz.gitbook.io/maclib-ui-library#beautiful-interface) **Beautiful Interface** Experience a sleek, modern interface inspired by macOS with Maclib’s UI, designed to provide a clean and clutter-free space for effortless customization. #### [](https://brady-xyz.gitbook.io/maclib-ui-library#consistent-updates) **Consistent Updates** Maclib is constantly updated to provide a robust and adaptable framework, ensuring your project stays ahead of the curve and ready for future enhancements. #### [](https://brady-xyz.gitbook.io/maclib-ui-library#innovative-features) **Innovative Features** Maclib provides a multitude of innovative features that streamline the development process and elevate the user experience, blending efficiency with elegance to transform your projects. ### [](https://brady-xyz.gitbook.io/maclib-ui-library#jump-right-in) Jump right in [](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib) ![Cover](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FhRtWRcExHV8IBJHoV9bx%2Fblobs%2FwDijseZzf5dfOQGLFfsj%2F4.png&width=490&dpr=4&quality=100&sign=7c953dcc&sv=2) **Getting Started** _Loading Maclib_ [](https://brady-xyz.gitbook.io/maclib-ui-library/information/documentation-formatting) ![Cover](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FhRtWRcExHV8IBJHoV9bx%2Fblobs%2FcapbaPbBQjn8QQV5LQPS%2F3.png&width=490&dpr=4&quality=100&sign=332300d3&sv=2) **Documentation Formatting** Understand Maclib's documentation. [](https://brady-xyz.gitbook.io/maclib-ui-library/information/miscellaneous) ![Cover](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FhRtWRcExHV8IBJHoV9bx%2Fblobs%2FWXfcpXkmsaGcYL9PYYGz%2F2.png&width=490&dpr=4&quality=100&sign=d15cf09a&sv=2) **Miscellaneous** Credits, References, links and more. If you have problems and/or find an error in this documentation, PM @biggaboy212 on discord, the docs are experimental and might not be 100% accurate. [NextDocumentation Formatting](https://brady-xyz.gitbook.io/maclib-ui-library/information/documentation-formatting) Last updated 1 year ago Was this helpful? --- # Miscellaneous | Maclib UI Library ### [](https://brady-xyz.gitbook.io/maclib-ui-library/information/miscellaneous#links) Links * Proton Utilities Discord - [https://discord.gg/FWC8PpWtQv](https://discord.gg/FWC8PpWtQv) * Vermillion Thread - [https://v3rm.net/threads/maclib-ui-library.11211/](https://v3rm.net/threads/maclib-ui-library.11211/) * Maclib Github - [https://github.com/biggaboy212/Maclib/tree/main](https://github.com/biggaboy212/Maclib/tree/main) * _**\[Enum\]**_ UserInputType Reference - [https://create.roblox.com/docs/reference/engine/enums/UserInputType](https://create.roblox.com/docs/reference/engine/enums/UserInputType) * _**\[Enum\]**_ KeyCode Reference - [https://create.roblox.com/docs/reference/engine/enums/KeyCode](https://create.roblox.com/docs/reference/engine/enums/KeyCode) ### [](https://brady-xyz.gitbook.io/maclib-ui-library/information/miscellaneous#credits) Credits * UI Designer, Lead Developer and programmer: _**biggaboy212**_ * * * [PreviousDocumentation Formatting](https://brady-xyz.gitbook.io/maclib-ui-library/information/documentation-formatting) [NextLoading Maclib](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib) Last updated 1 year ago Was this helpful? --- # Displaying a notification | Maclib UI Library MacLib gives you access to a built-in notification system, providing you with an easy way to display alerts and messages seamlessly within your UI. ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FKeel7meJL5sqEazbGjar%252Fimage.png%3Falt%3Dmedia%26token%3D4384b1bf-2aba-44f1-80ad-c82f2a594a00&width=300&dpr=4&quality=100&sign=2b02455b&sv=2) Copy Window:Notify({ Title Description Lifetime Scale SizeX = Style -- The type of button that the user interacts with, input "None" for no interactable (or leave nil), input "Confirm" for a checkmark, and input "Cancel" for a crossmark. Callback }) Functions Copy :UpdateTitle() :UpdateDescription() :Resize() -- Only X, Y is automatically determined by the content size :Cancel() Example Copy Window:Notify({ Title = "Kuzu Hub", Description = "Hello, World!", Lifetime = 5 }) [PreviousAdding a Global Setting](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/adding-a-global-setting) [NextPrompting a dialog](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/prompting-a-dialog) Last updated 1 year ago Was this helpful? --- # Documentation Formatting | Maclib UI Library * * * Each argument is listed with its name followed by its type in angle brackets (`<>`), indicating the kind of data it expects. **Example:** Copy Title **Use case example:** Copy Title = "Kuzu Hub" * * * A `...` before a `` type means the function can take multiple arguments in a variable-length table. **Example:** Copy Tree <...table: FruitName, FruitColor> -- Accepts multiple Fruit definitions, each as a table with a Name and Color. **Use case example:** Copy Tree = { { FruitName = "Apple" FruitColor = Color3.fromRGB(255,0,0) }, { FruitName = "Orange" FruitColor = Color3.fromRGB(255,165,0) } } * * * A colon (`:`) inside a type means those are the arguments that the type expects. **Example:** Copy PrintWhat -- Expects one of the two strings. **Use case example:** Copy PrintWhat = "Hello, World!" -- Is expected (Accepted) -- PrintWhat = "Goodbye, world." -- Is expected (Accepted) -- PrintWhat = "Lorem Ipsum" -- Not expected (Rejected) * * * A `():` after a function type indicates the return type. **Example:** Copy Callback -- The function returns a string when called. **Use case example:** Copy Callback = function(Input) print(Input) end) * * * A `(): void` after a function type indicates it does not return anything. **Example:** Copy Callback -- The function returns nothing when called. **Use case example:** Copy Callback = function() print("Hello, World!") end) * * * `` means the argument can accept either type. **Example:** Copy Default -- Accepts either a number or a table as the default value. **Use case example:** Copy Default = 5 -- Accepted -- Default = {"Hello", "World"} -- Accepted -- Default = true -- Rejected (not a number or table) * * * A `:` followed by a type indicates a return value and its type. **Example:** Copy :GetFruitSize(: number) -- Returns the size of the specified fruit. :GetState(: boolean) -- Returns whether the window is currently visible or not. **Use case example:** Copy :GetFruitSize("Apple") -- Returns the size as a number of an apple -- :GetState() -- Returns the state as a boolean * * * [PreviousWelcome](https://brady-xyz.gitbook.io/maclib-ui-library) [NextMiscellaneous](https://brady-xyz.gitbook.io/maclib-ui-library/information/miscellaneous) Last updated 1 year ago Was this helpful? --- # Adding a Global Setting | Maclib UI Library Global Settings simplifies your experience by integrating Boolean-based settings management directly into the main interface, partially eliminating the need for additional tabs. ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252F5IUSwRLqwA5kuwC798u6%252Fimage.png%3Falt%3Dmedia%26token%3D4b3161eb-07e4-4b80-a934-9a5f6ee90717&width=300&dpr=4&quality=100&sign=97e6b84b&sv=2) You can access the global settings menu by pressing the "Globe" Icon beside the title bar.![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FgtysEAEPOGLkjq7aADnA%252Fimage.png%3Falt%3Dmedia%26token%3D96b9f1c9-5e4c-4e39-a57d-c71ccf4802b7&width=300&dpr=4&quality=100&sign=ec33582f&sv=2) Copy local Global_Setting = Window:GlobalSetting({ Name Default Callback }) Example Copy local Global_Setting = Window:GlobalSetting({ Name = "Moderator Join Alerts", Default = false, Callback = function(State) print("Moderator Join Alerts " .. (State and "Enabled" or "Disabled")) end, }) [PreviousCreating a window](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window) [NextDisplaying a notification](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/displaying-a-notification) Last updated 1 year ago Was this helpful? --- # Creating a window | Maclib UI Library After you have defined the module, you must load a new window. Copy local Window = MacLib:Window({ Title Subtitle Size DragStyle -- 1: Uses a move icon to drag, ideal for PC. 2: Uses the entire UI to drag, ideal for Mobile. DisabledWindowControls ShowUserInfo Keybind AcrylicBlur -- Can be detected. }) Functions Copy :Unload() -- Destroy the window .onUnloaded(function(): void) -- Called before the window is unloaded / closed :SetState() -- Set window visibility :GetState(: boolean) -- Get window visibility :SetNotificationsState() -- Set notification visibility :GetNotificationsState(: boolean) -- Get notification visibility :SetAcrylicBlurState() -- Set UI Blur enabled :GetAcrylicBlurState(: boolean) -- Get UI Blur enabled :SetUserInfoState() -- Show or redact user info :GetUserInfoState(: boolean) -- Get User Info Visibility :SetKeybind() -- Set window visibility keybind :SetSize() -- Sets the UI size :GetSize(: UDim2) -- Returns the current UI Size :SetScale() -- Sets the scale of the UI, 1 is the 100& scale (default), 1.5 is 150% scale, 2 is 200%, you get it. ( This uses the UIScale instance, which has several engine bugs and can cause visual issues with certain elements.) :GetScale(: number) -- Returns the current scale of the UI :UpdateTitle() :UpdateSubtitle() .Settings : table -- Not everything may be updated, but Callback should be correct. Example Copy local Window = MacLib:Window({ Title = "Kuzu Hub", Subtitle = "Paid | V3.12", Size = UDim2.fromOffset(868, 650), DragStyle = 1, DisabledWindowControls = {}, ShowUserInfo = true, Keybind = Enum.KeyCode.RightControl, AcrylicBlur = true, }) [PreviousLoading Maclib](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib) [NextAdding a Global Setting](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/adding-a-global-setting) Last updated 1 year ago Was this helpful? --- # Creating a tab group | Maclib UI Library Tab groups seperate different tabs into groups seperated by a divider. ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FDbWuvSBatvxBx4PLeLui%252Fimage.png%3Falt%3Dmedia%26token%3Dfc7b4124-08c0-4069-9931-1422d858c276&width=300&dpr=4&quality=100&sign=b3792c05&sv=2) Copy local TabGroup = Window:TabGroup() [PreviousPrompting a dialog](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/prompting-a-dialog) [NextAdding tabs](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs) Last updated 1 year ago Was this helpful? --- # Prompting a dialog | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252F142AClC7sOQoMgm4zAZP%252Fimage.png%3Falt%3Dmedia%26token%3D9b479aea-1a3b-4c0c-90c8-7012732c5080&width=768&dpr=4&quality=100&sign=8d5d563f&sv=2) Copy Window:Dialog({ Title Description Buttons > }) Functions Copy :UpdateTitle() :UpdateDescription() :Cancel() Example Copy Window:Dialog({ Title = "Kuzu Hub", Description = "Are you sure? This is not reversable and can get you banned in some up to date servers.", Buttons = { { Name = "Confirm", Callback = function() print("Confirmed!") end, }, { Name = "Cancel" } } }) [PreviousDisplaying a notification](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/displaying-a-notification) [NextCreating a tab group](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group) Last updated 1 year ago Was this helpful? --- # Header | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252F7uzGoaSTmObF1KQD6w0O%252Fimage.png%3Falt%3Dmedia%26token%3D5380ce4a-ba3a-4bbd-9ed4-f44dc19e8394&width=768&dpr=4&quality=100&sign=4c74f612&sv=2) Copy Section:Header({ Text }, Flag) Functions Copy :UpdateName() :SetVisiblity() .Settings : table -- Not everything may be updated, but Callback should be correct. [PreviousDropdown](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/dropdown) [NextParagraph](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/paragraph) Last updated 1 year ago Was this helpful? --- # Adding tabs | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FrOMDHXIfV8TQznGJyNAC%252Fimage.png%3Falt%3Dmedia%26token%3D4f9a1080-cacb-4aad-bb91-7d8b91777544&width=768&dpr=4&quality=100&sign=105636c4&sv=2) Copy local Tab = TabGroup:Tab({ Name Image -- Image can be at maximum 16 pixels wide and 16 pixels tall. }) Functions Copy :Select() :InsertConfigSection( Side) [PreviousCreating a tab group](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group) [NextAdding sections](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections) Last updated 1 year ago Was this helpful? --- # Input | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FsCTC6DnYd6q8yKDmiyIJ%252Fimage.png%3Falt%3Dmedia%26token%3Dafaa15b6-f4c8-425e-8688-20b76006b2ee&width=768&dpr=4&quality=100&sign=c13a63ef&sv=2) Copy Section:Input({ Name Placeholder AcceptedCharacters Callback -- Called upon focus lost onChanged -- Called upon text changed }, Flag) Functions Copy :UpdateName() :SetVisiblity() :GetInput(: string) :UpdatePlaceholder() :UpdateText() .Text : string .IgnoreConfig .Settings : table -- Not everything may be updated, but Callback should be correct. Example Copy sections.MainSection1:Input({ Name = "Target", Placeholder = "Username", AcceptedCharacters = "All", Callback = function(input) print("Target set: ".. input) end, }, "TargetInput") Example using custom AcceptedCharacters filter Copy sections.MainSection1:Input({ Name = "Target", Placeholder = "Username", AcceptedCharacters = function(input) return input:gsub("[^a-zA-Z0-9]", "") -- AlphaNumeric sub end, Callback = function(input) print("Target set: ".. input) end, }, "TargetInput") [PreviousButton](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/button) [NextSlider](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/slider) Last updated 1 year ago Was this helpful? --- # Toggle | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FeI1i4HjiS7kQbALxauzV%252Fimage.png%3Falt%3Dmedia%26token%3Db40fa646-e2d6-41bb-8b98-d93c8dcefa54&width=768&dpr=4&quality=100&sign=f411b5b0&sv=2) Copy Section:Toggle({ Name Default Callback }, Flag) Functions Copy :UpdateName() :SetVisiblity() :UpdateState() :GetState(: boolean) .State : boolean .IgnoreConfig .Settings : table -- Not everything may be updated, but Callback should be correct. Example Copy sections.MainSection1:Toggle({ Name = "Flight", Default = false, Callback = function(value) Window:Notify({ Title = "Kuzu Hub", Description = (value and "Enabled " or "Disabled ") .. "Flight" }) end, }, "FlightToggle") [PreviousSlider](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/slider) [NextKeybind](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/keybind) Last updated 1 year ago Was this helpful? --- # Colorpicker | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FV1Fw3vj0z73KH6sxkW0L%252Fimage.png%3Falt%3Dmedia%26token%3Daeaeae37-1f80-4426-8c3e-d62cd9b2e1e9&width=768&dpr=4&quality=100&sign=f532a65c&sv=2) Copy Section:Colorpicker({ Name Default Alpha -- Transparency Callback }, Flag) Functions Copy :UpdateName() :SetVisibility() :SetColor() :SetAlpha() .Color : color3 .Alpha : number .IgnoreConfig .Settings : table -- Not everything may be updated, but Callback should be correct. Example Copy sections.MainSection1:Colorpicker({ Name = "ESP Color", Default = Color3.fromRGB(255,0,0), Alpha = 0, Callback = function(color, alpha) local r, g, b = math.round(color.R * 255), math.round(color.G * 255), math.round(color.B * 255) local formattedColor = string.format("%d, %d, %d", r, g, b) Window:Notify({ Title = "Kuzu Hub", Description = string.format("Changed ESP Color\nColor: %s\nAlpha: %.2f", formattedColor, alpha), Lifetime = 3 }) end, }, "ESPColorToggle") [PreviousKeybind](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/keybind) [NextDropdown](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/dropdown) Last updated 1 year ago Was this helpful? --- # Keybind | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252F09OfuqpHiFw9s9P2N7ka%252Fimage.png%3Falt%3Dmedia%26token%3D7c098b49-5cd1-429a-8d0d-0f70a8c114bf&width=768&dpr=4&quality=100&sign=9f339477&sv=2) Copy Section:Keybind({ Name Default Blacklist > Callback onBinded onBindHeld }, Flag) Functions Copy :UpdateName() :SetVisiblity() :Unbind() :Bind() :GetBind(: enum) .Bind : enum .IgnoreConfig .Settings : table -- Not everything may be updated, but Callback should be correct. Example Copy sections.MainSection1:Keybind({ Name = "Reset Inventory", Callback = function(binded) Window:Notify({ Title = "Kuzu Hub", Description = "Successfully Reset Inventory", Lifetime = 3 }) end, onBinded = function(bind) Window:Notify({ Title = "Kuzu Hub", Description = "Rebinded Reset Inventory to "..tostring(bind.Name), Lifetime = 3 }) end, }, "ResetInventoryBind") [PreviousToggle](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/toggle) [NextColorpicker](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/colorpicker) Last updated 1 year ago Was this helpful? --- # Dropdown | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FmxGIj0w2aTY5SSvc7rKe%252Fimage.png%3Falt%3Dmedia%26token%3Dbba6dbca-dce8-4d2f-9ffe-678189ce3218&width=768&dpr=4&quality=100&sign=20de3972&sv=2) Copy Section:Dropdown({ Name Search -- Enable searching? Multi -- Allow multiple choices? Required -- Force the user to select at minimum one choice? Options
Default -- If Multi is enabled, you must input a table of every option name that you want enabled. If Multi is disabled you must input the order (index) in which the default option is at. Callback -- Multi Dropdowns return a table like such {"Option 1" = true, "Option 3" = true,} Single Dropdowns return the name (no table) of the selected option }, Flag) Functions Copy :UpdateName() :SetVisiblity() :UpdateSelection() -- string/number for single, table for multi :InsertOptions(
) :RemoveOptions(
) :IsOption(: boolean) :GetOptions(: table) -- Returns a table of every option and if it's true or false (Example: {"Option 1" = true, "Option 2" = false, "Option 3" = false} etc..) :ClearOptions() .Value : string or table .IgnoreConfig .Settings : table -- Not everything may be updated, but Callback should be correct. Examples Copy sections.MainSection1:Dropdown({ Name = "Give Weapons", Search = true, Multi = true, Required = false, Options = {"AK-47", "M4A1", "Desert Eagle", "AWP", "MP5", "SPAS-12"}, Default = {"M4A1", "AWP"}, Callback = function(Value) local Values = {} for _, State in next, Value do if State then table.insert(Values, _) end end print("Selected Weapons:", table.concat(Values, ", ")) end, }, "GiveWeaponsDropdown") [PreviousColorpicker](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/colorpicker) [NextHeader](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/header) Last updated 1 year ago Was this helpful? --- # Adding sections | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FsFs2QLymn1hVQbwDy3JB%252Fimage.png%3Falt%3Dmedia%26token%3D5cc10089-cc2b-426a-8f45-728a099da94e&width=768&dpr=4&quality=100&sign=fc0a8901&sv=2) Copy local Section = Tab:Section({ Side }) [PreviousAdding tabs](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs) [NextButton](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/button) Last updated 1 year ago Was this helpful? --- # Button | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FJ2rnCfAn4ESjEgC6kl2U%252Fimage.png%3Falt%3Dmedia%26token%3Ddf69d30f-6e9a-4a7d-bdcd-44ea1dbddd7a&width=768&dpr=4&quality=100&sign=3f5bd7a7&sv=2) Copy Section:Button({ Name Callback }, Flag) Functions Example [PreviousAdding sections](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections) [NextInput](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/input) Last updated 1 year ago Was this helpful? Was this helpful? Copy :UpdateName() :SetVisiblity() .Settings : table -- Not everything may be updated, but Callback should be correct. Copy sections.MainSection1:Button({ Name = "Kill All", Callback = function() print("Killed everyone.") end, }) --- # Slider | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FlnakspDGuWqy7xW9e7kf%252Fimage.png%3Falt%3Dmedia%26token%3D12b12bfc-acbf-455b-b481-791e85e23e73&width=768&dpr=4&quality=100&sign=7f8a2b&sv=2) Copy Section:Slider({ Name Default Minimum Maximum DisplayMethod Precision Callback onInputComplete }, Flag) Functions Example [PreviousInput](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/input) [NextToggle](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/toggle) Last updated 1 year ago Was this helpful? Was this helpful? Copy :UpdateName() :SetVisiblity() :UpdateValue() :GetValue(: number) .Value : number .IgnoreConfig .Settings : table -- Not everything may be updated, but Callback should be correct. Copy sections.MainSection1:Slider({ Name = "Walkspeed", Default = 16, Minimum = 0, Maximum = 100, DisplayMethod = "Percent", Callback = function(Value) print("Changed to ".. Value) end, }, "WalkspeedSlider") --- # Paragraph | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252F1uBiHmcZxFK80G0N3AFQ%252Fimage.png%3Falt%3Dmedia%26token%3D997dac03-7db3-43f7-b561-a1d69aed3941&width=768&dpr=4&quality=100&sign=3b6dbab9&sv=2) Copy Section:Paragraph({ Header Body }, Flag) Functions [PreviousHeader](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/header) [NextLabel](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/label) Last updated 1 year ago Was this helpful? Was this helpful? Copy :SetVisiblity() :UpdateHeader() :UpdateBody() .Settings : table -- Not everything may be updated, but Callback should be correct. --- # Label | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FuBjzpfZx1r0rAfL77lA4%252Fimage.png%3Falt%3Dmedia%26token%3D348d025b-df11-41db-b570-179da9ab3ce4&width=768&dpr=4&quality=100&sign=65d710d5&sv=2) Copy Section:Label({ Text }, Flag) Functions [PreviousParagraph](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/paragraph) [NextSub Label](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/sub-label) Last updated 1 year ago Was this helpful? Was this helpful? Copy :UpdateName() :SetVisiblity() .Settings : table -- Not everything may be updated, but Callback should be correct. --- # Sub Label | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FPBGI4a99csq4q6RIVs5n%252Fimage.png%3Falt%3Dmedia%26token%3D72337c07-5b7e-4536-9cde-1f55a228c75d&width=768&dpr=4&quality=100&sign=1014e562&sv=2) Copy Section:SubLabel({ Text }, Flag) Functions [PreviousLabel](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/label) [NextDivider](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/divider) Last updated 1 year ago Was this helpful? Was this helpful? Copy :UpdateName() :SetVisiblity() .Settings : table -- Not everything may be updated, but Callback should be correct. --- # Divider | Maclib UI Library ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FFFGXIGwJv1lMmf3BY6Eu%252Fimage.png%3Falt%3Dmedia%26token%3Dcc07cd51-0339-42b2-a21a-1f8daa77baae&width=768&dpr=4&quality=100&sign=b1553858&sv=2) Copy Section:Divider() Functions Copy :Remove() :SetVisiblity() [PreviousSub Label](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/sub-label) [NextSpacer](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/spacer) Last updated 1 year ago Was this helpful? Was this helpful? --- # Spacer | Maclib UI Library Copy Section:Spacer() Functions Copy :Remove() :SetVisiblity() [PreviousDivider](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window/creating-a-tab-group/adding-tabs/adding-sections/divider) Last updated 1 year ago Was this helpful? Was this helpful? --- # Loading Maclib | Maclib UI Library First, you must import and define the Maclib module, place this code somewhere to begin. Copy local MacLib = loadstring(game:HttpGet("https://github.com/biggaboy212/Maclib/releases/latest/download/maclib.txt"))() Functions Copy :Demo() -- Brings up a demo window :SetFolder( Folder) -- Sets the folder all configs are saved in. :SaveConfig( Path) -- Saves all element values to a file in the folder you set with :SetFolder(), you can ignore certain elements by setting their .IgnoreConfig to true, or simply not defining a flag. :LoadConfig( Path) -- Loads a config located at path. :RefreshConfigList(: table) -- Returns a table of all saved config names ( eg. {"Legit.json", "Rage.json"} ) :LoadAutoLoadConfig() -- Loads the config the user selected to automatically load. --// To insert a pre-made config section, reference the "Adding tabs" page. [PreviousMiscellaneous](https://brady-xyz.gitbook.io/maclib-ui-library/information/miscellaneous) [NextCreating a window](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib/creating-a-window) Last updated 1 year ago Was this helpful? --- # Welcome | Maclib UI Library ![Page cover](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252F6tIMnhlQAkFSG7qh9NNI%252Fphoto-1693590229281-6a78deecd122.jpg%3Falt%3Dmedia%26token%3D64491b8d-1d45-4ae3-916a-26ad4896fc56&width=1248&dpr=4&quality=100&sign=4c69a9ba&sv=2) ![](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2F2943218207-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FhRtWRcExHV8IBJHoV9bx%252Fuploads%252FqeBjNDIF1pMG8kMmnx76%252Fimage.png%3Falt%3Dmedia%26token%3D33cea983-57cf-4edb-8c51-0d9a121af543&width=768&dpr=4&quality=100&sign=f34c6682&sv=2) #### [](https://brady-xyz.gitbook.io/maclib-ui-library/information#beautiful-interface) **Beautiful Interface** Experience a sleek, modern interface inspired by macOS with Maclib’s UI, designed to provide a clean and clutter-free space for effortless customization. #### [](https://brady-xyz.gitbook.io/maclib-ui-library/information#consistent-updates) **Consistent Updates** Maclib is constantly updated to provide a robust and adaptable framework, ensuring your project stays ahead of the curve and ready for future enhancements. #### [](https://brady-xyz.gitbook.io/maclib-ui-library/information#innovative-features) **Innovative Features** Maclib provides a multitude of innovative features that streamline the development process and elevate the user experience, blending efficiency with elegance to transform your projects. ### [](https://brady-xyz.gitbook.io/maclib-ui-library/information#jump-right-in) Jump right in [](https://brady-xyz.gitbook.io/maclib-ui-library/getting-started/loading-maclib) ![Cover](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FhRtWRcExHV8IBJHoV9bx%2Fblobs%2FwDijseZzf5dfOQGLFfsj%2F4.png&width=490&dpr=4&quality=100&sign=7c953dcc&sv=2) **Getting Started** _Loading Maclib_ [](https://brady-xyz.gitbook.io/maclib-ui-library/information/documentation-formatting) ![Cover](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FhRtWRcExHV8IBJHoV9bx%2Fblobs%2FcapbaPbBQjn8QQV5LQPS%2F3.png&width=490&dpr=4&quality=100&sign=332300d3&sv=2) **Documentation Formatting** Understand Maclib's documentation. [](https://brady-xyz.gitbook.io/maclib-ui-library/information/miscellaneous) ![Cover](https://brady-xyz.gitbook.io/maclib-ui-library/~gitbook/image?url=https%3A%2F%2Fcontent.gitbook.com%2Fcontent%2FhRtWRcExHV8IBJHoV9bx%2Fblobs%2FWXfcpXkmsaGcYL9PYYGz%2F2.png&width=490&dpr=4&quality=100&sign=d15cf09a&sv=2) **Miscellaneous** Credits, References, links and more. If you have problems and/or find an error in this documentation, PM @biggaboy212 on discord, the docs are experimental and might not be 100% accurate. [NextDocumentation Formatting](https://brady-xyz.gitbook.io/maclib-ui-library/information/documentation-formatting) Last updated 1 year ago Was this helpful? ---