Advertisement
NiceBBMBThai

Gui Free Icon23

Apr 22nd, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. local DeveloperMode = false
  2. Lofi = {}
  3.  
  4. function Lofi.require(path)
  5. if type(path) == "string" then
  6. if DeveloperMode then
  7. return loadfile(path)()
  8. else
  9. path = path:gsub("\\", "/")
  10. return loadstring(game:HttpGet("https://raw.githubusercontent.com/LAOnGithub/Lofi-UI/master/"..path, true))()
  11. end
  12. elseif type(path) == "number" then
  13. return loadstring(game:GetObjects(path)[1].Source)()
  14. end
  15. end
  16.  
  17. Lofi.require("Lofi\\Main.lua")
  18. local Window = Lofi:Window()
  19. local Test = Window:Tile("T", "Test")
  20. local Groupbox = Test:Groupbox(UDim2.new(0, 25, 0, 70), UDim2.new(0, 350, 0, 300), "Groupbox")
  21. Groupbox:Checkbox("Checkbox", function(Value)
  22. print("Checkbox: Value changed to: " .. tostring(Value))
  23. end)
  24. Groupbox:Button("Button", function()
  25. print("Button: pressed")
  26. end)
  27. Groupbox:Slider("Slider", {min = 10, max = 20}, function(Value)
  28. print("Slider: Value changed to: " .. Value)
  29. end)
  30. Groupbox:Dropdown("Dropdown", {"Test1", "Test2"}, function(Value)
  31. print("Dropdown: Value changed to: " .. Value)
  32. end)
  33. Test:TabList(UDim2.new(0, 25, 0, 25), UDim2.new(0, 350, 0, 30), {"Test", "Test2"}, function(Value)
  34. print("TabList: Value changed to: " .. Value)
  35. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement