ArrayField Lib Example
ArrayField Lib Example
com/UI-
Interface/ArrayField/main/Source'))()
local Window = ArrayField:CreateWindow({
Name = "ArrayField Example Window",
LoadingTitle = "ArrayField Interface Suite",
LoadingSubtitle = "by Arrays",
ConfigurationSaving = {
Enabled = false,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "ArrayField"
},
Discord = {
Enabled = false,
Invite = "sirius", -- The Discord invite code, do not include discord.gg/
RememberJoins = true -- Set this to false to make them join the discord
every time they load it up
},
KeySystem = true, -- Set this to true to use our key system
KeySettings = {
Title = "ArrayField",
Subtitle = "Key System",
Note = "Join the discord (discord.gg/sirius)",
FileName = "ArrayFieldsKeys",
SaveKey = false,
GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site
you would like ArrayField to get the key from
Key = {"Hello",'Bye'},
Actions = {
[1] = {
Text = 'Click here to copy the key link',
OnPress = function()
end,
}
},
}
})
Tab:CreateSpacing(nil,10)
Tab:CreateSpacing(nil,10)
local Toggle = Tab:CreateToggle({
Name = "Toggle Example",
Info = {
Title = 'Slider template',
Image = '12735851647',
Description = 'Just a slider for stuff',
},
CurrentValue = false,
Flag = "Toggle1", -- A flag is the identifier for the configuration file, make
sure every element has a different flag if you're using configuration saving to
ensure no overlaps
Callback = function(Value)
print(Value)
end,
})
Tab:CreateSpacing(nil,10)
Tab:CreateSpacing(nil,10)
Tab:CreateSpacing(nil,10)
end,
})
Tab:CreateSpacing(nil,10)
SButton = Tab:CreateButton({
Name = "Button Example",
Interact = 'Interact',
SectionParent = Sets,
Callback = function()
SButton:Set(nil,'New Interaction')
end
})
Tab:CreateButton({
Name = "Dropdown Set",
Interact = 'Interact',
SectionParent = Sets,
Callback = function()
SingleSelection:Set('Option 1')
end
})
Tab:CreateToggle({
Name = "Lockdown",
SectionParent = LockTesting,
CurrentValue = false,
Callback = function(Value)
if Value then
for _,v in ToLock do
v:Lock('Locked')
end
else
for _,v in ToLock do
v:Unlock('Locked')
end
end
end,
})
Tab:CreateSpacing(LockTesting)
ToLock.Button = Tab:CreateButton({
SectionParent = LockTesting,
Name = "Button Example",
Interact = 'Interact',
Callback = function()
print('Pressed')
end,
})
ToLock.Toggle = Tab:CreateToggle({
SectionParent = LockTesting,
Name = "Toggle Example",
CurrentValue = false,
Flag = "Toggle2", -- A flag is the identifier for the configuration file, make
sure every element has a different flag if you're using configuration saving to
ensure no overlaps
Callback = function(Value)
print(Value)
end,
})
ToLock.ColorPicker = Tab:CreateColorPicker({
Name = "Color Picker",
SectionParent = LockTesting,
Color = Color3.fromRGB(2,255,255),
Flag = "ColorPicker2",
Callback = function(Value)
print(Value)
end
})
ToLock.Slider = Tab:CreateSlider({
SectionParent = LockTesting,
Name = "Slider Example",
Range = {0, 100},
Increment = 10,
Suffix = "Bananas",
CurrentValue = 10,
Flag = "Slider2",
Callback = function(Value)
print(Value)
end,
})
ToLock.Keybind = Tab:CreateKeybind({
Name = "Keybind Example",
CurrentKeybind = "Q",
HoldToInteract = false,
SectionParent = LockTesting,
Flag = "Keybind2",
Callback = function(Keybind)
end,
})