GithubHelp home page GithubHelp logo

panda-repositories / panda-ui-library Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 72 KB

Panda's UI library, public to anyone to use.

Home Page: https://mattlawz.gitbook.io/panda-ui-lib/

License: Creative Commons Zero v1.0 Universal

roblox lua robloxscripts ui-kit ui-components

panda-ui-library's Introduction

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

panda-ui-library's People

Contributors

mattlawz avatar skieadmin avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.