This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup.lua
203 lines (173 loc) · 3.38 KB
/
Setup.lua
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
local M7Lib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/M7ilan/M7-UI-Library/main/Source.lua')))()
local Window = M7Lib:Window({
Name = "M7 UI Library",
Version = "v1.0.0",
Logo = "11711400437",
Color = Color3.fromRGB(50, 200, 100),
Intro = false
})
local Tab = Window:Tab({
Name = "Tab"
})
local Section = Tab:Section({
Name = "Section"
})
local label1 = Section:Label({
Description = "Description"
})
local paragraph1 = Section:Paragraph({
Title = "Title",
Description = "Description"
})
Section:TextBox({
Name = "Change Label",
Default = "Text Box",
Clear = false,
Callback = function(e)
label1:Set({
Description = e
})
end
})
Section:Button({
Name = "Change Paragraph",
Callback = function()
paragraph1:Set({
Title = "Paragraph Title",
Description = "Paragraph Changed"
})
end
})
Section:Button({
Name = "Button",
Callback = function()
print("Button Pressed")
end
})
Section:Toggle({
Name = "Toggle",
Default = false,
Callback = function(e)
print(e)
end
})
Section:KeyBind({
Name = "KeyBind",
Default = Enum.KeyCode.M,
Callback = function(e)
print(e)
end
})
Section:Slider({
Name = "Player Speed",
Min = 16,
Max = 100,
Callback = function(e)
print(e)
end
})
Section:TextBox({
Name = "TextBox",
Default = "Text Box",
Clear = true,
Callback = function(e)
print(e)
end
})
Section:ColorPicker({
Name = "Color Picker",
Callback = function(e)
print(e)
end
})
local dd1 = Section:Dropdown({
Name = "Difficult",
Items = {"Easy", "Normal", "Hard"},
Callback = function(e)
print(e)
end
})
Section:Button({
Name = "Add Item to Dropdown",
Callback = function()
dd1:Add({"Extreme", "Impossible"})
end
})
Section:Button({
Name = "Remove Item from Dropdown",
Callback = function()
dd1:Remove({"Extreme", "Easy"})
end
})
local ed1 = Section:ElementsDropdown({
Name = "Elements Dropdown",
})
local label1 = ed1:Label({
Description = "Description"
})
local paragraph1 = ed1:Paragraph({
Title = "Title",
Description = "Description"
})
ed1:Button({
Name = "Button",
Callback = function()
print("Button Pressed!")
end
})
ed1:Toggle({
Name = "Toggle",
Default = false,
Callback = function(e)
print(e)
end
})
ed1:KeyBind({
Name = "KeyBind",
Default = Enum.KeyCode.M,
Callback = function(e)
print(e)
end
})
ed1:TextBox({
Name = "TextBox",
Default = "Text Box",
Clear = true,
Callback = function(e)
print(e)
end
})
ed1:ColorPicker({
Name = "Color Picker",
Callback = function(e)
print(e)
end
})
Section:Button({
Name = "Notification",
Callback = function()
M7Lib:Notify({
Title = "Title",
Desctiption = "Desctiption",
Time = 3
})
end
})
Section:Button({
Name = "Destroy UI",
Callback = function()
M7Lib:DestroyUI()
end
})
local SettingsTab = Window:Tab({
Name = "Settings"
})
local SettingsSections = SettingsTab:Section({
Name = "Settings"
})
SettingsSections:Button({
Name = "Destroy UI",
Callback = function()
M7Lib:DestroyUI()
end
})