A simplistic and easy-to-use UI Library made for use on any Roblox executor.
local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/OpposedDev/Ionic/refs/heads/main/source/ioniclibrary.lua"))()
local window = library:createWindow({
Title = "Ionic Library Example", -- Title at the top of the window
Version = "Example", -- Version displayed at the bottom of the window
RestoreKeybind = Enum.KeyCode.Insert, -- Minimize / Restore Keybind
UseCore = true, -- Use CoreGui over PlayerGui
})
local section = window:createSection({
Name = "Section"
})
section:createDivider({
Text = "Divider Example"
})
section:createButton({
Name = "Button Example",
Flag = "button", -- Flags are currently unused.
Callback = function()
-- function that occurs when the button is clicked.
end,
})
section:createToggle({
Name = "Toggle Example",
Flag = "toggle",
Default = false,
Callback = function(value: boolean)
-- function that occurs whenever the toggle is toggled true or false.
end,
})
With the Ionic UI library, you can directly connect your callback to a RunService event. For information on RunService events, go to Roblox's documentation page for RunService.
section:createToggle({
Name = "Connected Toggle Example",
Flag = "runtoggle",
Default = false,
RBXConnection = "Heartbeat",
Callback = function()
-- function that occurs on the chosen RunService event while the toggle is toggled true
end,
})
section:createSlider({
Name = "Slider Example",
Flag = "slider",
Default = 50,
Range = {0, 100},
Increment = 1,
Suffix = "Number",
Callback = function(value: number)
-- function that occurs when the slider value is changed.
end,
})
section:createColorPicker({
Name = "Color Picker Example",
Flag = "color picker",
Default = Color3.new(1,1,1),
Callback = function(value: Color3)
-- function that occurs when the color is changed.
end,
})