### Initialize Nousigi Hub UI Library Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Loads the Nousigi Hub UI Library from a remote URL. This is the first step to using the framework. ```lua local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/.../library.lua"))() ``` -------------------------------- ### Create Nousigi Hub Main GUI Window Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Creates the main GUI window for the Nousigi Hub UI. Requires a configuration table with 'Title' and 'Desc' for the window. ```lua local Main = Library.CreateMain({ Title = "My Script", Desc = "Control Panel" }) ``` -------------------------------- ### Create Combat Script UI with Nousigi Hub Library Source: https://github.com/trustsensedev/microhub/blob/main/ui.md This Lua code demonstrates the creation of a combat script's user interface using the Nousigi Hub UI Library. It includes setting up the main window, creating 'Combat' and 'Visuals' pages, adding an 'Aimbot' section with a toggle and FOV slider, and displaying a load notification. ```lua -- Load library if getgenv().Nousigi then return end local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/.../library.lua"))() -- Create main window local Main = Library.CreateMain({ Title = "Combat Script", Desc = "v2.0.1" }) -- Create pages local CombatPage = Main.CreatePage({ Page_Name = "Combat", Page_Title = "Combat Settings" }) local VisualsPage = Main.CreatePage({ Page_Name = "Visuals", Page_Title = "Visual Settings" }) -- Add sections and controls local AimbotSection = CombatPage.CreateSection("Aimbot", true) local AimbotToggle = AimbotSection.CreateToggle({ Title = "Enable Aimbot", Desc = "Automatically aim at enemies", Default = false }, function(state) -- Aimbot logic here end) local FOVSlider = AimbotSection.CreateSlider({ Title = "Aimbot FOV", Min = 1, Max = 360, Default = 90 }, function(value) -- FOV change logic end) -- Show notification Library.CreateNoti({ Title = "Script Loaded", Desc = "Combat script initialized successfully!", ShowTime = 5 }) ``` -------------------------------- ### Create Nousigi Hub Page Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Adds a new page to the main GUI window. Requires a configuration table with 'Page_Name' and 'Page_Title'. Returns page-specific functions. ```lua local Page = Main.CreatePage({ Page_Name = "Combat", Page_Title = "Combat Settings" }) ``` -------------------------------- ### Create Nousigi Hub Section Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Creates a section within a GUI page. Supports optional parameters for toggleability, spacing, and custom color. ```lua local Section = Page.CreateSection("Weapons", true) ``` -------------------------------- ### Customization - UI Colors Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Shows how to customize the UI's color scheme by modifying the global `UIColor` table. ```lua getgenv().UIColor["Title Text Color"] = Color3.fromRGB(255, 255, 0) getgenv().UIColor["Background Main Color"] = Color3.fromRGB(30, 30, 30) ``` -------------------------------- ### CreateDropdown - Simple Dropdown Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Creates a simple dropdown menu with a title and a list of options. A callback function is executed when a selection is made. ```lua local Dropdown = Section.CreateDropdown({ Title = "Weapon Selection", List = {"Sword", "Axe", "Bow", "Staff"}, Default = "Sword" }, function(selected) print("Selected:", selected) end) ``` -------------------------------- ### CreateBox - SetValue Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Demonstrates how to programmatically set the value of a text input box. ```lua Textbox.SetValue("DefaultPlayer") ``` -------------------------------- ### Create Nousigi Hub Toggle Switch Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Adds a toggle switch UI element to a section. Includes settings for title, description, default state, and a callback function for state changes. Allows programmatic state updates. ```lua local Toggle = Section.CreateToggle({ Title = "God Mode", Desc = "Become invincible", Default = false }, function(state) print("God Mode:", state) end) -- Programmatically change state Toggle.SetStage(true) ``` -------------------------------- ### CreateBind - Keybind Selector Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Creates a keybind selector that allows users to assign a specific key to an action. A callback function is executed when the assigned key is pressed. ```lua Section.CreateBind({ Title = "Toggle Menu", Key = Enum.KeyCode.RightShift }, function(key) print("Pressed:", key) Library.ToggleUI() end) ``` -------------------------------- ### CreateDropdown - Update Options Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Demonstrates how to update the options list of an existing dropdown menu programmatically. ```lua Dropdown.GetNewList({"Pistol", "Rifle", "Shotgun", "Sniper"}) ``` -------------------------------- ### Create Nousigi Hub Button Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Adds a clickable button UI element to a section. Requires a 'Title' setting and a callback function to execute when clicked. ```lua Section.CreateButton({ Title = "Teleport to Base" }, function() print("Teleporting...") end) ``` -------------------------------- ### Configure Nousigi Hub UI Theme Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Sets the color theme for the Nousigi Hub UI Library. 'T1' enables a red accent theme, while 'false' (or not set) uses the default blue theme. ```lua getgenv().T1 = true -- Enable T1 theme (red) getgenv().T1 = false -- Enable Index theme (blue, default) ``` -------------------------------- ### Toggle Nousigi Hub UI Visibility Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Toggles the visibility of the main GUI window created by the Nousigi Hub UI Library. ```lua Library.ToggleUI() ``` -------------------------------- ### CreateBox - Text Input Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Creates a text input box for user entry. It supports placeholder text and can be configured to accept only numbers. A callback function is invoked when text is entered. ```lua local Textbox = Section.CreateBox({ Title = "Player Name", Placeholder = "Enter username", Number = false }, function(text) print("Entered:", text) end) ``` -------------------------------- ### CreateDropdown - Multi-select Dropdown Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Creates a multi-select dropdown menu, allowing multiple options to be chosen. The callback function receives the option and its state (selected/deselected). ```lua local MultiDropdown = Section.CreateDropdown({ Title = "Enabled Features", List = {"Fly", "Noclip", "Speed", "Jump"}, Selected = true, Default = {Fly = true, Speed = true} }, function(option, state) print(option, ":", state) end) ``` -------------------------------- ### Create Nousigi Hub Notification Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Displays a notification within the Nousigi Hub UI. Accepts settings for title, description, display time, and an option to bypass configuration checks. ```lua Library.CreateNoti({ Title = "Success", Desc = "Operation completed successfully", ShowTime = 5 }) ``` -------------------------------- ### Customization - Animation Control Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Explains how to disable UI animations by setting specific tween animation speeds to zero for performance optimization. ```lua getgenv().UIColor["Tween Animation 1 Speed"] = 0 getgenv().UIColor["Tween Animation 2 Speed"] = 0 getgenv().UIColor["Tween Animation 3 Speed"] = 0 ``` -------------------------------- ### CreateSlider - SetValue Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Demonstrates how to programmatically set the value of a slider control. ```lua Slider.SetValue(90) ``` -------------------------------- ### CreateDropdown - Slider Dropdown Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Creates a dropdown menu that uses sliders for options, allowing numerical input within a defined range. The callback function is triggered when a slider value changes. ```lua local SliderDropdown = Section.CreateDropdown({ Title = "Settings", List = { {Title = "WalkSpeed", Min = 16, Max = 200, Default = 50}, {Title = "JumpPower", Min = 50, Max = 200, Default = 100} }, Slider = true }, function(setting, value) print(setting, ":", value) end) ``` -------------------------------- ### Create Nousigi Hub Label Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Adds a text label UI element to a section. Supports updating the label's text and color programmatically. ```lua local Label = Section.CreateLabel({ Title = "Status: Ready" }) -- Update label text Label.SetText("Status: In Combat") -- Change label color Label.SetColor(Color3.fromRGB(255, 0, 0)) ``` -------------------------------- ### CreateSlider - Slider Control Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Creates a slider control with a defined minimum, maximum, and default value. It can be configured for precise decimal values. A callback function is called when the slider's value changes. ```lua local Slider = Section.CreateSlider({ Title = "Field of View", Min = 50, Max = 120, Default = 70, Precise = true }, function(value) print("FOV:", value) end) ``` -------------------------------- ### Destroy Nousigi Hub UI Elements Source: https://github.com/trustsensedev/microhub/blob/main/ui.md Removes all UI elements created by the Nousigi Hub UI Library from the game. ```lua Library.DestroyUI() ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.