forked from bloodball/UI-Librarys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LOFI UI Lib
37 lines (34 loc) · 1.23 KB
/
LOFI UI Lib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--Made by : (v3rm acc unknown) https://github.com/LAOnGithub
local DeveloperMode = false
Lofi = {}
function Lofi.require(path)
if type(path) == "string" then
if DeveloperMode then
return loadfile(path)()
else
path = path:gsub("\\", "/")
return loadstring(game:HttpGet("https://raw.githubusercontent.com/LAOnGithub/Lofi-UI/master/"..path, true))()
end
elseif type(path) == "number" then
return loadstring(game:GetObjects(path)[1].Source)()
end
end
Lofi.require("Lofi\\Main.lua")
local Window = Lofi:Window()
local Test = Window:Tile("T", "Test")
local Groupbox = Test:Groupbox(UDim2.new(0, 25, 0, 70), UDim2.new(0, 350, 0, 300), "Groupbox")
Groupbox:Checkbox("Checkbox", function(Value)
print("Checkbox: Value changed to: " .. tostring(Value))
end)
Groupbox:Button("Button", function()
print("Button: pressed")
end)
Groupbox:Slider("Slider", {min = 10, max = 20}, function(Value)
print("Slider: Value changed to: " .. Value)
end)
Groupbox:Dropdown("Dropdown", {"Test1", "Test2"}, function(Value)
print("Dropdown: Value changed to: " .. Value)
end)
Test:TabList(UDim2.new(0, 25, 0, 25), UDim2.new(0, 350, 0, 30), {"Test", "Test2"}, function(Value)
print("TabList: Value changed to: " .. Value)
end)