Skip to content

Panda-Repositories/Panda-UI-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Panda UI Library Documentation

By Panda Technologies

Full documentation here

made-with-Markdown

Lua

Discord

Maintenance


Load the UI Library

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Panda-Respiratory/Panda-UI-Library/main/Libraries/Main"))()

Add windows

local window = library:Window("Window")

Add button

--example, callback

window:Button("Button name", function()
   print("pressed button")
end)

Add toggle

--Name of the toggle, default state of the toggle, callback

window:Toggle("Example toggle", true, function(bool)
    print(bool) -- bool is true or false depending on the state of the toggle
end)

Add color picker


--Name, default color (set to true to make the default rainbow), callback

window:ColorPicker("Color Picker", Color3.fromRGB(255, 255, 255), function(color)
   print(color)
end)

Add slider

--Name of slider, minimum value, maximum value, default value, callback

window:Slider("Example Slider",0,100,20, function(value)
   print(value)
end)

Add label

-- Text, color: setting color to true will give it a rainbow effect!

window:Label("Credits to SkieHacker and Intrer#0421", Color3.fromRGB(127, 143, 166))

Add input box

-- Name, callback

window:Box("Walkspeed", function(text, focuslost)
   if focuslost then
   print(text)
   end
end)
-- The callback will be called with two arguments, the text that the player inputted and whether the player has stopped writing

Add dropdown

-- Name, table with names of the button that you want, callback that will be called with the name of the button that was pressed

local dropdown = window:Dropdown("Example dropdown", {"Button 1", "Button 2", "Third button"}, function(name)
   print(name)
end)

Add buttons to dropdown

-- Name

dropdown:Button("New button")

Remove buttons from dropdown

-- Name

dropdown:Remove("Button")

Add keybind to UI

-- Key

library:Keybind("P")

Destroy UI

library:Destroy()