Elements
Notifing The User
syde:Notify({
Title = 'This is a Notification',
Content = 'This is a Notification',
Duration = 5
-- Icons Coming Very Soon
-- Types Coming Very Soon ex. { Options }
})
Creating a Button
a:Button({
Title = 'Button', -- Set Title
Description = '', -- Description (Optional)
Type = 'Default', -- Type [ Default, Hold ] (Optional)
HoldTime = 2, -- Hold Time When Type is *Hold
CallBack = function()
print('Clicked')
end,
})
Creating a Toggle
local Toggle = a:Toggle({
Title = 'Toggle', -- Set Title
Value = false, -- Default Value (Optional)
Config = true, -- Config Window (Allows User To Set A KeyBind) (Optional)
CallBack = function(v)
print(v)
end,
Flag = 'Toggle1' -- Use if you are running config saving, make sure each element has a diffrent Flag name.
})
Toggle:Set(true)
Creating a Slider
local Slider = a:CreateSlider({
Title = 'Slider', -- Set Title
Description = '', -- Description (Optional)
Sliders = { -- Initialize the sliders
{
Title = 'Speed', -- Set Title
Range = {0, 500}, -- Set Range (Min, Max)
Increment = 50, -- Set Increment
StarterValue = 0, -- Set Starter Value
CallBack = function(v)
print(v)
end,
Flag = 'Slider1' -- Use if you are running config saving, make sure each element has a diffrent Flag name.
},
{
Title = 'Speed',
Range = {0, 500},
Increment = 50,
StarterValue = 0,
CallBack = function(v)
print(v)
end,
Flag = 'Slider2' -- Use if you are running config saving, make sure each element has a diffrent Flag name.
},
}
})
Slider:Set(50)
Creating a Dropdown
Dropdown Set and Refresh Coming in next Patch
a:Dropdown({
Title = 'This Is A Multi Dropdown', -- Set Title
Options = {'Option1', 'Option2', 'Option3', 'Option4', 'Option5', 'Option6', 'Option7'}, -- Set Options
PlaceHolder = 'Selct Sum', -- Set The PlaceHolder (Optional)
Multi = true, -- Set If The Dropdown Is Multi Selectable (Optional)
CallBack = function(option)
print(option)
end,
})
Creating a ColorPicker
local ColorPicker = a:ColorPicker({
Title = 'ColorPicker', -- Set Title
Linkable = false, -- Set if you want to link color to another colorpicker (Optional)
Color = Color3.fromRGB(183, 0, 255); -- Set Default Color
CallBack = function(v)
print(v)
end,
Flag = 'Colorpicker1' -- Use if you are running config saving, make sure each element has a diffrent Flag name.
})
Colorpicker:Set(Color3.fromRGB(1,1,1))
Creating a Image
a:Img({
Image = '1403980926' -- Image ID
})