Library
local Library = loadstring(game:HttpGet("https://reallinen.github.io/Files/Scripts/Linui.lua"))()
Library.Text = "Example" -- Will change the Library's Text from "Linen" or whatever it says to "Example"Library.Breathing = true -- If true, Library will replicate a breathing animation. [optional] | default: truelocal Section = Library:Section("Hello") -- Creates a section
--[[
If you use the Library to create an element instead of an section,
It will create the element on the right panel, where the exit button is
If you create an element in a Section, it will create it on the
Left panel.
]]local Dropdown = Section:Dropdown({
Text = "Dropdown", -- Text of the dropdown
Data = { "This", "Will", "Be", "In", "The", "Dropdown" }, -- The values that will be in the dropdown. Seperated by a ","
KeepText = false, -- If true, when an element is selected, it will keep the "Dropdown" text [optional] | default: false
Callback = function(value: string) -- Callback of the Dropdown, will fire when a new option has been selected in the dropdown [optional] | default: function() end
print("Dropdown Selected Option:", value)
end
}) --[[
Dropdown:Refresh( value: <table> [ optional ] )
-- If value/table is not provided then it will fix the Dropdown if it's bugged
Dropdown:Add( value: <string> )
-- Adds the 'value' into the dropdown
Dropdown:Remove( value: <string> )
-- if value is not provided then it will remove every element in the dropdown
Dropdown:Get( value: <string> )
-- Checks if <value> exist in the dropdown and fetches it, returns an Instance
Dropdown:All()
-- Gets all elements in the dropdown and returns them as a table
]]Last updated