Skip to content

Stratxgy/Linora-Lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linora-Lib

The roblox lib, Linora with documentation!

Please star it if you enjoy all the documentation i make for random ui libs

Tip

I recommend using my gitbook, as in my opinion it's better than this.

Important

This is not mine. Find the real github here

Importing the library

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'))()

Creating a new window

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)
})

Creating tabs

local mainTab = Window:AddTab('Main')

CLICKABLES

Creating Buttons

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
})

Creating a color picker

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
})

Creating a dropdown

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
})

Creating Toggles

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
})

Creating Keybinds

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
})

Creating Sliders

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)

Tabboxes and Labels

Creating TabBoxes

local RightTabBox = Main:AddRightTabbox()
local LeftTabBox = Main:AddLeftTabbox()

Creating Labels

local Label = LeftGroupBox:AddLabel('This is a label')
--[[
Text = string
doesWrap = boolean (optional)
]]

About

The roblox lib, Linora with documentation!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages