-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.lua
More file actions
35 lines (27 loc) · 1.12 KB
/
Copy pathexample.lua
File metadata and controls
35 lines (27 loc) · 1.12 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
local RaknotUI = loadstring(game:HttpGet("https://raknot.dev/docs/raknot-ui.lua"))()
local Window = RaknotUI:CreateWindow({
Title = "Raknot UI - Example",
WelcomeTitle = "Welcome to Raknot UI!",
WelcomeMessage = "Created by raknot (onys)"
})
local MainTab = Window:CreateTab("Main")
MainTab:AddButton("Test Button", function()
Window:Notify("Button Clicked", "The button was pressed!", 2)
end)
MainTab:AddToggle("Toggle Feature", false, function(value)
end)
MainTab:AddSlider("Speed", 16, 100, 50, function(value)
end)
MainTab:AddDropdown("Select Weapon", {"Sword", "Bow", "Staff", "Dagger", "Axe"}, function(option)
Window:Notify("Weapon Selected", "You chose: " .. option, 2)
end)
MainTab:AddTextbox("Player Name", "Enter your name...", function(value)
Window:Notify("Name Set", "Your name is: " .. value, 2)
end)
MainTab:AddButton("Test Notification Stack", function()
Window:Notify("Notification 1", "First notification appears", 3)
task.wait(0.5)
Window:Notify("Notification 2", "Second one pushes first up", 3)
task.wait(0.5)
Window:Notify("Notification 3", "Third one stacks above!", 3)
end)