trixade

VenyxLib

May 19th, 2022 (edited)
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.84 KB | None | 0 0
  1. -- init
  2. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/GreenDeno/Venyx-UI-Library/main/source.lua"))()
  3. local venyx = library.new("Venyx", 5013109572)
  4.  
  5. -- themes
  6. local themes = {
  7. Background = Color3.fromRGB(24, 24, 24),
  8. Glow = Color3.fromRGB(0, 0, 0),
  9. Accent = Color3.fromRGB(10, 10, 10),
  10. LightContrast = Color3.fromRGB(20, 20, 20),
  11. DarkContrast = Color3.fromRGB(14, 14, 14),  
  12. TextColor = Color3.fromRGB(255, 255, 255)
  13. }
  14.  
  15. -- first page
  16. local page = venyx:addPage("Test", 5012544693)
  17. local section1 = page:addSection("Section 1")
  18. local section2 = page:addSection("Section 2")
  19.  
  20. section1:addToggle("Toggle", nil, function(value)
  21. print("Toggled", value)
  22. end)
  23. section1:addButton("Button", function()
  24. print("Clicked")
  25. end)
  26. section1:addTextbox("Notification", "Default", function(value, focusLost)
  27. print("Input", value)
  28.  
  29. if focusLost then
  30. venyx:Notify("Title", value)
  31. end
  32. end)
  33.  
  34. section2:addKeybind("Toggle Keybind", Enum.KeyCode.One, function()
  35. print("Activated Keybind")
  36. venyx:toggle()
  37. end, function()
  38. print("Changed Keybind")
  39. end)
  40. section2:addColorPicker("ColorPicker", Color3.fromRGB(50, 50, 50))
  41. section2:addColorPicker("ColorPicker2")
  42. section2:addSlider("Slider", 0, -100, 100, function(value)
  43. print("Dragged", value)
  44. end)
  45. section2:addDropdown("Dropdown", {"Hello", "World", "Hello World", "Word", 1, 2, 3})
  46. section2:addDropdown("Dropdown", {"Hello", "World", "Hello World", "Word", 1, 2, 3}, function(text)
  47. print("Selected", text)
  48. end)
  49. section2:addButton("Button")
  50.  
  51. -- second page
  52. local theme = venyx:addPage("Theme", 5012544693)
  53. local colors = theme:addSection("Colors")
  54.  
  55. for theme, color in pairs(themes) do -- all in one theme changer, i know, im cool
  56. colors:addColorPicker(theme, color, function(color3)
  57. venyx:setTheme(theme, color3)
  58. end)
  59. end
  60.  
  61. -- load
  62. venyx:SelectPage(venyx.pages[1], true)
  63.  
Add Comment
Please, Sign In to add comment