forked from bloodball/UI-Librarys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
(Modern) UI -Fixed-
42 lines (41 loc) · 1.14 KB
/
(Modern) UI -Fixed-
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
38
39
40
41
42
--No example for this one, It's worth it though if you take the time to use this!
--https://v3rmillion.net/member.php?action=profile&uid=456772
local Lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/modern"))()
--[[
Functions:
Lib:Tab(name)
Tab:Button(text, func)
Tab:DropDown(text, drops, func)
Tab:Label(name, text)
Tab:TextBox(text, func)
Tab:Toggle(text, func)
]]--
local ExampleTab = Lib:Tab("ExampleTab")
ExampleTab:Button("Hello World!", function()
print("Hello World!")
end)
ExampleTab:Label("ExampleLabel", "Exaple Label")
ExampleTab:TextBox("Example Text Box", function(text)
print(text)
end)
ExampleTab:Toggle("Example Toggle", function(state)
if state then
PrintToggle = true
while PrintToggle do
print("Hello Toggle!")
wait()
end
else
PrintToggle = false
end
end)
ExampleTab:DropDown("Example DropDown", {"Sentinel", "Shitnapse X", "ProtoCrasher"}, function(text)
if text == "Sentinel" then
print("Best Lego Hak")
warn("but small memory")
elseif text == "Shitnapse X" then
print("plz update faster", "discord server is full of nub")
elseif text == "ProtoCrasher" then
print("i liek cresh")
end
end)