🚀
Maclib UI Library
  • Information
    • Welcome
    • Documentation Formatting
    • Miscellaneous
  • Getting Started
    • Loading Maclib
      • Creating a window
        • Adding a Global Setting
        • Displaying a notification
        • Prompting a dialog
        • Creating a tab group
          • Adding tabs
            • Adding sections
              • Button
              • Input
              • Slider
              • Toggle
              • Keybind
              • Colorpicker
              • Dropdown
              • Header
              • Paragraph
              • Label
              • Sub Label
              • Divider
              • Spacer
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Loading Maclib
  3. Creating a window

Adding a Global Setting

PreviousCreating a windowNextDisplaying a notification

Last updated 7 months ago

Was this helpful?

Global Settings simplifies your experience by integrating Boolean-based settings management directly into the main interface, partially eliminating the need for additional tabs.

You can access the global settings menu by pressing the "Globe" Icon beside the title bar.

local Global_Setting = Window:GlobalSetting({
  Name <string>
  Default <boolean>
  Callback <function(): void>
})

Example

local Global_Setting = Window:GlobalSetting({
    Name = "Moderator Join Alerts",
    Default = false,
    Callback = function(State)
        print("Moderator Join Alerts " .. (State and "Enabled" or "Disabled"))
    end,
})