Skip to content

Latest commit

 

History

History
95 lines (72 loc) · 1.55 KB

Documentation.md

File metadata and controls

95 lines (72 loc) · 1.55 KB

Orbit UI Library v1.0 Latest Update

Loading The Library

local lib = loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/Lucasfin000/Orbit-UI-Library/main/Library", true))()

Creating a Window

local window = lib:Window()
local wind = lib:Window(Color3.fromRGB(gradientcolor1), Color3.fromRGB(gradientcolor2), "Orbit UI Library")

Creating a Tab

local tab = wind:NewTab("test", "")

Creating Info

tab:Info("test info")

Creating a Button

local btn = tab:Button("test button", function()
	print("text button")
end)

Changing the value of an existing button

Button("TEXT", callbackfunc)

Creating a Slider

tab:Slider("test slider", 1, 100, function(val)
	print(val)
end)

Change Slider Value

Slider:Set(2)

Creating a Label

tab:Label("test label")

Changing the value of an existing label

Label("TEXT")

Changing the value of an existing slider

Slider("TEXT", minimumvalue, maximumvalue, callbackfunc)

Changing the value of an existing textbox

Textbox("TEXT", placeholdertext(optional), callbackfunc) -- user needs to press enter for callbackfunc to be fired, a ripple will show when enter is pressed

Creating a Paragraph

tab:Paragraph("test paragraph")

Changing an existing paragraph

Paragraph("TEXT")

Creating an Textbox

tab:Textbox("test textbox", "test placeholder", function(text)
	print(text)
end)

Destroying the UI

lib:Destroy()