The roblox lib, Linora with documentation!
Tip
I recommend using my gitbook, as in my opinion it's better than this.
local repo = 'https://raw.githubusercontent.com/violin-suzutsuki/LinoriaLib/main/'
local Library = loadstring(game:HttpGet(repo .. 'Library.lua'))()
local ThemeManager = loadstring(game:HttpGet(repo .. 'addons/ThemeManager.lua'))()
local SaveManager = loadstring(game:HttpGet(repo .. 'addons/SaveManager.lua'))()
local Window = Library:CreateWindow({
Title = 'Example menu',
Center = true, -- Set Center to true if you want the menu to appear in the center
AutoShow = true, -- Set AutoShow to true if you want the menu to appear when it is created
TabPadding = 8,
MenuFadeTime = 0.2
--Position = float (optional)
--Size = float (optional)
})
local mainTab = Window:AddTab('Main')
local MyButton = LeftGroupBox:AddButton({
Text = 'Button',
Func = function()
print('You clicked a button!')
end,
DoubleClick = false,
Tooltip = 'This is the main button' -- When you hover over the button this appears
})
LeftGroupBox:AddLabel('Color'):AddColorPicker('ColorPicker', {
Default = Color3.new(255, 255, 255),
Title = 'Some color', -- Optional. Allows you to have a custom color picker title (when you open it)
Transparency = 0, -- Optional. Enables transparency changing for this color picker (leave as nil to disable)
Callback = function(Value)
print('[cb] Color changed!', Value)
end
})
LeftGroupBox:AddDropdown('MyDropdown', {
Values = { 'This', 'is', 'a', 'dropdown' },
Default = 1, -- number index of the value / string
Multi = false, -- true / false, allows multiple choices to be selected
Text = 'A dropdown',
Tooltip = 'This is a tooltip', -- Information shown when you hover over the dropdown
Callback = function(Value)
print('[cb] Dropdown got changed. New value:', Value)
end
})
LeftGroupBox:AddToggle('MyToggle', {
Text = 'This is a toggle',
Default = false, -- Default value (true / false)
Tooltip = 'This is a tooltip', -- Information shown when you hover over the toggle
Callback = function(Value)
print('[cb] MyToggle changed to:', Value)
end
})
LeftGroupBox:AddLabel('Keybind'):AddKeyPicker('KeyPicker', {
Default = 'MB2', -- String as the name of the keybind (MB1, MB2 for mouse buttons)
SyncToggleState = false,
Text = 'Example Keybind', -- Text to display in the keybind menu
NoUI = false, -- Set to true if you want to hide from the Keybind menu
-- Occurs when the keybind itself is changed, `New` is a KeyCode Enum OR a UserInputType Enum
ChangedCallback = function(New)
print('[cb] Keybind changed!', New)
end
})
LeftGroupBox:AddSlider('MySlider', {
Text = 'This is my slider!',
Default = 0,
Min = 0,
Max = 5,
Rounding = 1,
Compact = false,
Callback = function(Value)
print('[cb] MySlider was changed! New value:', Value)
end
})
local Number = Options.MySlider.Value
MySlider:OnChanged(function()
print('MySlider was changed! New value:', Options.MySlider.Value)
end)
MySlider:SetValue(3)
local RightTabBox = Main:AddRightTabbox()
local LeftTabBox = Main:AddLeftTabbox()
local Label = LeftGroupBox:AddLabel('This is a label')
--[[
Text = string
doesWrap = boolean (optional)
]]