-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.lua
More file actions
137 lines (124 loc) · 4.39 KB
/
Copy pathexample.lua
File metadata and controls
137 lines (124 loc) · 4.39 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
-- =====================================================================
-- DivineUI v1.1 | Exemplo completo
-- Demo de Toggle, Slider, Button, Input, Dropdown, Keybind, ColorPicker e Config
-- =====================================================================
local DivineUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/Ryanabcraft/DivineUI/main/DivineUI.lua"))()
-- DEV local: local DivineUI = loadstring(readfile("DivineUI.lua"))()
local Window = DivineUI:CreateWindow({
Title = "Divine Hub",
Subtitle = "iOS 18 EDITION • v1.1",
Size = UDim2.new(0, 560, 0, 460),
ConfigName = "divine_main",
AutoSave = false,
})
Window:Notify({Title = "DivineUI v1.1", Desc = "UI carregada!", Duration = 3})
-- ABA 1: Principal (template original)
local MainTab = Window:Tab({Title = "Principal"})
MainTab:Section({Title = "Funções principais"})
MainTab:Toggle({
Title = "Teleguiado",
Desc = "Descrição da função 1",
Default = false,
Flag = "Teleguiado",
Callback = function(v)
print("Teleguiado:", v)
Window:Notify({Title="Teleguiado", Desc=v and "Ativado" or "Desativado"})
end
})
MainTab:Divider()
MainTab:Toggle({
Title = "Speed Bypass",
Desc = "Descrição da função 2",
Default = false,
Flag = "SpeedBypass",
Callback = function(v) print("Speed Bypass:", v) end
})
MainTab:Divider()
MainTab:Slider({
Title = "Ajustar Velocidade",
Min = 16, Max = 600, Default = 600, Suffix = " WS",
Flag = "WalkSpeed",
Callback = function(v)
local hum = game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
if hum then hum.WalkSpeed = v end
end
})
MainTab:Divider()
MainTab:Section({Title = "Atalhos & Visual v1.1"})
MainTab:Keybind({
Title = "Tecla teleguiado",
Desc = "Pressione para ativar",
Default = Enum.KeyCode.Q,
Flag = "TeleguiadoKey",
Callback = function(k) print("Keybind pressionado:", k) end
})
MainTab:ColorPicker({
Title = "Cor do destaque",
Desc = "Afeta tema (demo)",
Default = Color3.fromRGB(175,82,222),
Flag = "AccentColor",
Callback = function(c) print("Cor:", c) end
})
-- ABA 2: Demo completo
local DemoTab = Window:Tab({Title = "Demo"})
DemoTab:Section({Title = "Ações"})
DemoTab:Button({
Title = "Notificar",
Callback = function() Window:Notify({Title="Botão", Desc="Clicado!"}) end
})
DemoTab:Divider()
DemoTab:Section({Title = "Inputs"})
DemoTab:Input({
Title = "Nome", Placeholder="Digite...", Default="",
Flag="PlayerName",
Callback=function(t) print("Input:", t) end
})
DemoTab:Dropdown({
Title="Modo", Options={"Legit","Rage","Silent"}, Default="Legit",
Flag="Modo",
Callback=function(v) print("Modo:", v) end
})
DemoTab:Divider()
DemoTab:Section({Title="Keybind & Color"})
DemoTab:Keybind({
Title="Abrir/Fechar UI", Desc="Toggle UI", Default=Enum.KeyCode.RightShift,
Flag="ToggleUIKey",
Callback=function() Window:Toggle(not Window.Gui.Enabled) end
})
DemoTab:ColorPicker({
Title="Cor do ESP", Default=Color3.fromRGB(52,211,153),
Flag="ESPColor",
Callback=function(c) print("ESP Color:", c) end
})
DemoTab:Divider()
DemoTab:Section({Title="Info"})
DemoTab:Label({Text="DivineUI v1.1.0", Desc="iOS 18 Dark Glass • Keybind + ColorPicker + Config Save"})
DemoTab:Paragraph({Text="Dica", Desc="Use Flag em cada elemento e Window:SaveConfig() para salvar."})
-- ABA 3: Config
local ConfigTab = Window:Tab({Title = "Config"})
ConfigTab:Section({Title="Gerenciamento"})
ConfigTab:Button({
Title="Salvar Config",
Callback=function() Window:SaveConfig("divine_main") end
})
ConfigTab:Button({
Title="Carregar Config",
Callback=function() Window:LoadConfig("divine_main") end
})
ConfigTab:Divider()
ConfigTab:Section({Title="Janela"})
ConfigTab:Button({Title="Fechar UI", Callback=function() Window:Destroy() end})
ConfigTab:Label({Text="Tema", Desc="iOS 18 Dark Glass • Purple #AF52DE"})
ConfigTab:Slider({
Title="Transparência demo", Min=0, Max=100, Default=12, Suffix="%",
Callback=function(v) print("Transp:", v) end
})
ConfigTab:ColorPicker({
Title="Preview Accent", Default=Color3.fromRGB(175,82,222),
Callback=function(c) print("Preview:", c) end
})
ConfigTab:Keybind({
Title="Atalho menu", Default=Enum.KeyCode.M,
Callback=function() print("M pressionado") end
})
print("[DivineUI] Example v1.1 carregado. Flags:", Window.Flags)