To start Simple Lib use the following:
local SimpleLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/IcantAffordSynapse/SimpleLib/refs/heads/main/SimpleLib.lua"))()
Creating a Window
Create a window via the :Window() function.
local Window = SimpleLib:Window("SIMPLE LIB")
Adding Sections
It's suggested to limit your sections to 4 per window, as more will leave the UI and look messy.
local Tab1 = Window:AddSection("Tab 1")
To create a Label, use the following:
Tab1:Label("This is a label")
To edit a Label, reference it and use the following:
To create a Button, use the following:
To create a Toggle, use the following:
^ The 2nd Argument indicates whether the toggle should begin enabled or disabled.
To create a TextBox, use the following:
^ The 2nd Argument indicates the update method.
1 = Every time the text is changed.
2 = Every time the input loses focus.
3 = Every time the input loses focus by pressing 'enter' or 'return'.
To create a Slider, use the following:
^ The 2nd argument indicates the Minimum value.
^ The 3rd argument indicates the Maximum value.
^ The 4th argument indicates the Default value.