local Window = Rayfield:CreateWindow({
Name = "◈ Amethyst Hub ◈",
LoadingTitle = "◈ Amethyst Hub ◈",
LoadingSubtitle = "Purple Edition",
ConfigurationSaving = {
Enabled = true,
FolderName = "AmethystHub",
FileName = "Settings"
},
Discord = {
Enabled = false
},
KeySystem = false
})
-- Variablen
local Message = "Hello World!"
local Delay = 2
-- Tabs
local Main = Window:CreateTab("◉ Main ◉", 4483362458)
local Settings = Window:CreateTab("◎ Settings ◎", 4483362458)
local Info = Window:CreateTab("✦ Info ✦", 4483362458)
-- MAIN TAB
Main:CreateSection("◈ Chat Settings ◈")
Main:CreateInput({
Name = "◉ Message ◉",
PlaceholderText = "Enter your message...",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
Message = Text
end,
})
Main:CreateSlider({
Name = "◎ Delay ◎",
Range = {1, 10},
Increment = 1,
Suffix = " sec",
CurrentValue = 2,
Callback = function(Value)
Delay = Value
end,
})
Main:CreateButton({
Name = "✦ Preview ✦",
Callback = function()
Rayfield:Notify({
Title = "◈ Preview ◈",
Content = "Message: " .. Message .. " | Delay: " .. Delay .. "s",
Duration = 5
})
end,
})
Main:CreateParagraph({
Title = "◉ Current Settings ◉",
Content = "Customize your message and delay using the controls above."
})
-- SETTINGS TAB
Settings:CreateSection("◎ Interface ◎")
Settings:CreateButton({
Name = "◈ Test Notification ◈",
Callback = function()
Rayfield:Notify({
Title = "◈ Amethyst Hub ◈",
Content = "Everything is working correctly.",
Duration = 5
})
end,
})
Settings:CreateButton({
Name = "✦ Copy Discord ✦",
Callback = function()
if setclipboard then
setclipboard("discord.gg/example")
end
Rayfield:Notify({
Title = "◎ Copied ◎",
Content = "Discord link copied.",
Duration = 3
})
end,
})
-- INFO TAB
Info:CreateParagraph({
Title = "◈ Amethyst Hub ◈",
Content = [[
◉ Modern Purple Design
◎ Clean Rayfield Layout
✦ Config Saving
◈ Notifications
◉ Custom Inputs
◎ Sliders
✦ Professional Style
]]
})
Info:CreateLabel("◈ Version 1.0 ◈")
-- Start Notification
Rayfield:Notify({
Title = "◈ Amethyst Hub ◈",
Content = "Successfully Loaded",
Duration = 6
})