Repository navigation
Expand file tree
/
Copy pathExample.lua
More file actions
375 lines (321 loc) · 7.33 KB
/
Copy pathExample.lua
File metadata and controls
375 lines (321 loc) · 7.33 KB
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
local Library = loadstring(game:HttpGet(
"https://raw.githubusercontent.com/deepisthatdeep/Ermidklolui/main/Library.lua?rev=four-color-controls-20261001"
))()
local Window = Library:CreateWindow({
Title = "N/A",
SubTitle = "N / A",
ProductName = "N/A",
CurrentPage = "N/A",
Version = "N/A",
PaletteFile = "GenericUI_palette_v2.json",
AutoLoadPalette = false,
})
local General = Window:CreateTab({
Title = "General",
Index = 1,
})
local Player = Window:CreateTab({
Title = "Player",
Index = 2,
})
local World = Window:CreateTab({
Title = "World",
Index = 3,
})
local Visuals = Window:CreateTab({
Title = "Visuals",
Index = 4,
})
local Misc = Window:CreateTab({
Title = "Misc",
Index = 5,
})
local Settings = Window:CreateTab({
Title = "Settings",
Index = 6,
})
local GeneralSection = General:CreateSection({
Position = "Left",
})
GeneralSection:CreateToggle({
Title = "Enabled",
Default = false,
Callback = function(value)
print("Enabled:", value)
end,
})
GeneralSection:CreateDropdown({
Title = "Mode",
Options = {"N/A"},
Selected = {"N/A"},
Callback = function(selected)
print("Mode:", selected[1])
end,
})
GeneralSection:CreateInput({
Title = "Status",
Default = "N/A",
Placeholder = "N/A",
Callback = function(value)
print("Status:", value)
end,
})
local GeneralTuning = General:CreateSection({
Position = "Right",
})
GeneralTuning:CreateSlider({
Title = "Strength",
Range = {0, 100},
Default = 50,
Increment = 1,
Suffix = "%",
Callback = function(value)
print("Strength:", value)
end,
})
GeneralTuning:CreateSlider({
Title = "Delay",
Range = {0, 2},
Default = 0.25,
Increment = 0.05,
Suffix = "s",
Callback = function(value)
print("Delay:", value)
end,
})
local PlayerSection = Player:CreateSection({
Position = "Left",
})
PlayerSection:CreateToggle({
Title = "Walk Speed",
Default = false,
Callback = function(value)
print("Walk Speed:", value)
end,
})
local PlayerTuning = Player:CreateSection({
Position = "Right",
})
PlayerTuning:CreateSlider({
Title = "Walk Speed Value",
Range = {0, 100},
Default = 0,
Increment = 1,
Callback = function(value)
print("Walk Speed Value:", value)
end,
})
PlayerSection:CreateToggle({
Title = "Jump Power",
Default = false,
Callback = function(value)
print("Jump Power:", value)
end,
})
PlayerTuning:CreateSlider({
Title = "Jump Power Value",
Range = {0, 150},
Default = 0,
Increment = 1,
Callback = function(value)
print("Jump Power Value:", value)
end,
})
PlayerSection:CreateToggle({
Title = "Fly",
Default = false,
Callback = function(value)
print("Fly:", value)
end,
})
PlayerSection:CreateToggle({
Title = "Noclip",
Default = false,
Callback = function(value)
print("Noclip:", value)
end,
})
local WorldSection = World:CreateSection({
Position = "Left",
})
WorldSection:CreateToggle({
Title = "Auto Interact",
Default = false,
Callback = function(value)
print("Auto Interact:", value)
end,
})
WorldSection:CreateToggle({
Title = "Auto Collect",
Default = false,
Callback = function(value)
print("Auto Collect:", value)
end,
})
WorldSection:CreateDropdown({
Title = "Target",
Options = {"N/A"},
Selected = {"N/A"},
Callback = function(selected)
print("Target:", selected[1])
end,
})
WorldSection:CreateInput({
Title = "Range",
Default = "N/A",
Placeholder = "N/A",
Callback = function(value)
print("Range:", value)
end,
})
local VisualSection = Visuals:CreateSection({
Position = "Left",
})
VisualSection:CreateToggle({
Title = "ESP",
Default = false,
Callback = function(value)
print("ESP:", value)
end,
})
VisualSection:CreateToggle({
Title = "Player Names",
Default = false,
Callback = function(value)
print("Player Names:", value)
end,
})
VisualSection:CreateToggle({
Title = "Boxes",
Default = false,
Callback = function(value)
print("Boxes:", value)
end,
})
VisualSection:CreateToggle({
Title = "Fullbright",
Default = false,
Callback = function(value)
print("Fullbright:", value)
end,
})
VisualSection:CreateSlider({
Title = "Field Of View",
Range = {0, 120},
Default = 0,
Increment = 1,
Callback = function(value)
print("Field Of View:", value)
end,
})
local MiscSection = Misc:CreateSection({
Position = "Left",
})
MiscSection:CreateToggle({
Title = "Anti AFK",
Default = false,
Callback = function(value)
print("Anti AFK:", value)
end,
})
MiscSection:CreateButton({
Title = "Rejoin",
Callback = function()
Window:SetStatus("N/A")
Window:SetFooter("N/A", "N/A")
end,
})
MiscSection:CreateButton({
Title = "Server Hop",
Callback = function()
Window:SetStatus("N/A")
Window:SetFooter("N/A", "N/A")
end,
})
MiscSection:CreateParagraph({
Title = "Information",
Content = "N/A",
})
local SettingsSection = Settings:CreateSection({
Position = "Left",
})
SettingsSection:CreateKeybind({
Title = "Keybind",
Default = Enum.KeyCode.K,
Callback = function(key)
print("Keybind:", key.Name)
end,
})
SettingsSection:CreateInput({
Title = "Configuration",
Default = "N/A",
Placeholder = "N/A",
Callback = function(value)
print("Configuration:", value)
end,
})
local ColorSection = Settings:CreateSection({
Position = "Right",
})
local ColorRows = {
{"Background", {"bg"}},
{"Panels", {"card"}},
{"Accent", {"accent", "line", "accent2", "glow"}},
{"Text", {"text", "bright", "muted"}},
}
for _, row in ipairs(ColorRows) do
ColorSection:CreateColorInput({
Title = row[1],
PaletteKeys = row[2],
Callback = function()
Window:SetStatus("N/A")
end,
})
end
-- Older saved palettes may contain different colors within the new groups.
local function normalizeColorGroups()
local colors = {}
for _, row in ipairs(ColorRows) do
local color = Window:GetPaletteColor(row[2][1])
for _, key in ipairs(row[2]) do colors[key] = color end
end
Window:SetPaletteColors(colors)
end
ColorSection:CreateButton({
Title = "Save Colors",
Callback = function()
Window:SavePalette()
Window:SetStatus("N/A")
Window:SetFooter("N/A", "N/A")
end,
})
ColorSection:CreateButton({
Title = "Load Colors",
Callback = function()
local ok = Window:LoadPalette()
if ok then normalizeColorGroups() end
Window:SetStatus("N/A")
Window:SetFooter("N/A", "N/A")
end,
})
ColorSection:CreateButton({
Title = "Reset Colors",
Callback = function()
Window:ResetPalette()
Window:SetStatus("N/A")
Window:SetFooter("N/A", "N/A")
end,
})
SettingsSection:CreateButton({
Title = "Save Settings",
Callback = function()
Window:SetStatus("N/A")
Window:SetFooter("N/A", "N/A")
end,
})
SettingsSection:CreateParagraph({
Title = "Information",
Content = "N/A",
})
Window:SetStatus("N/A")
Window:SetFooter("N/A", "N/A")