--[[
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ █░░░░░░██████████░░░░░░█░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░███░░░░░░░░░░░░░░█░░░░░░██░░░░░░█░░░░░░░░░░░░░░░░███░░░░░░░░██░░░░░░░░█ █░░▄▀░░░░░░░░░░░░░░▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀▄▀░░███░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀░░██░░▄▀░░█░░▄▀▄▀▄▀▄▀▄▀▄▀░░███░░▄▀▄▀░░██░░▄▀▄▀░░█ █░░▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀▄▀░░█░░▄▀░░░░░░░░░░█░░▄▀░░░░░░░░▄▀░░███░░▄▀░░░░░░░░░░█░░▄▀░░██░░▄▀░░█░░▄▀░░░░░░░░▄▀░░███░░░░▄▀░░██░░▄▀░░░░█ █░░▄▀░░░░░░▄▀░░░░░░▄▀░░█░░▄▀░░█████████░░▄▀░░████░░▄▀░░███░░▄▀░░█████████░░▄▀░░██░░▄▀░░█░░▄▀░░████░░▄▀░░█████░░▄▀▄▀░░▄▀▄▀░░███ █░░▄▀░░██░░▄▀░░██░░▄▀░░█░░▄▀░░░░░░░░░░█░░▄▀░░░░░░░░▄▀░░███░░▄▀░░█████████░░▄▀░░██░░▄▀░░█░░▄▀░░░░░░░░▄▀░░█████░░░░▄▀▄▀▄▀░░░░███ █░░▄▀░░██░░▄▀░░██░░▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀▄▀░░███░░▄▀░░█████████░░▄▀░░██░░▄▀░░█░░▄▀▄▀▄▀▄▀▄▀▄▀░░███████░░░░▄▀░░░░█████ █░░▄▀░░██░░░░░░██░░▄▀░░█░░▄▀░░░░░░░░░░█░░▄▀░░yue<3▀░░░░███░░▄▀░░█████████░░▄▀░░██░░▄▀░░█░░▄▀░░░░░░▄▀░░░░█████████░░▄▀░░███████ █░░▄▀░░██████████░░▄▀░░█░░▄▀░░█████████░░▄▀░░██░░▄▀░░█████░░▄▀░░█████████░░▄▀░░██░░▄▀░░█░░▄▀░░██░░▄▀░░███████████░░▄▀░░███████ █░░▄▀░░██████████░░▄▀░░█░░▄▀░░░░░░░░░░█░░▄▀░░██░░▄▀░░░░░░█░░▄▀░░░░░░░░░░█░░▄▀░░░░░░▄▀░░█░░▄▀░░██░░▄▀░░░░░░███████░░▄▀░░███████ █░░▄▀░░██████████░░▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀░░██░░▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀░░██░░▄▀▄▀▄▀░░███████░░▄▀░░███████ █░░░░░░██████████░░░░░░█░░░░░░░░░░░░░░█░░░░░░██░░░░░░░░░░█░░░░░░░░░░░░░░█░░░░░░░░░░░░░░█░░░░░░██░░░░░░░░░░███████░░░░░░███████ ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
edited: 1/26 developers: v3rm AbstractPoo discord Abstract#8007 v3rm 0xDEITY discord Deity#0228
]]
local TweenService = game:GetService("TweenService") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local LocalPlayer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 local Mouse = LocalPlayer:GetMouse() local HTTPService = game:GetService("HttpService")
local Library = { Themes = { Legacy = { Main = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(262/360, 60/255, 34/255), Secondary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(240/360, 40/255, 63/255), Tertiary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(260/360, 60/255, 148/255),
StrongText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 1),
WeakText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 172/255)
},
Serika = {
Main = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(50, 52, 55),
Secondary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(80, 82, 85),
Tertiary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(226, 183, 20),
StrongText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 1),
WeakText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 172/255)
},
Dark = {
Main = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(30, 30, 35),
Secondary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(50, 50, 55),
Tertiary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(70, 130, 180),
StrongText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 1),
WeakText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 172/255)
},
Rust = {
Main = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(37, 35, 33),
Secondary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(65, 63, 63),
Tertiary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(237, 94, 38),
StrongText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 1),
WeakText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 172/255)
},
Aqua = {
Main = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(19, 21, 21),
Secondary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(65, 63, 63),
Tertiary = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(51, 153, 137),
StrongText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 1),
WeakText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 172/255)
},
Vaporwave = {},
OperaGX = {},
VisualStudio = {}
},
ColorPickerStyles = {
Legacy = 0,
Modern = 1
},
Toggled = true,
ThemeObjects = {
Main = {},
Secondary = {},
Tertiary = {},
StrongText = {},
WeakText = {}
},
WelcomeText = nil,
DisplayName = nil,
DragSpeed = 0.06,
LockDragging = false,
ToggleKey = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
UrlLabel = nil,
Url = nil
} Library.__index = Library
local selectedTab
Library._promptExists = false Library._colorPickerExists = false
local GlobalTweenInfo = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.2, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
function Library:set_defaults(defaults, options) defaults = defaults or {} options = options or {} for option, value in next, options do defaults[option] = value end return defaults end
function Library:change_theme(toTheme) https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = toTheme local c = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20) https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = "Welcome, " .. https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. " " for color, objects in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do local themeColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[color] for _, obj in next, objects do local element, property, theme, colorAlter = obj[1], obj[2], obj[3], obj[4] or 0 local themeColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[theme] local modifiedColor = themeColor if colorAlter < 0 then modifiedColor = Library:darken(themeColor, -1 * colorAlter) elseif colorAlter > 0 then modifiedColor = Library:lighten(themeColor, colorAlter) end element:tween{[property] = modifiedColor} end end end
function Library:object(class, properties) local localObject = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(class)
local forcedProps = {
BorderSizePixel = 0,
AutoButtonColor = false,
Font = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Text = ""
}
for property, value in next, forcedProps do
pcall(function()
localObject[property] = value
end)
end
local methods = {}
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = localObject
function methods:tween(options, callback)
local options = Library:set_defaults({
Length = 0.2,
Style = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Direction = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}, options)
callback = callback or function() return end
local ti = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = nil
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = nil
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = nil
local tween = TweenService:Create(localObject, ti, options); tween:Play()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
callback()
end)
return tween
end
function methods:round(radius)
radius = radius or 6
Library:object("UICorner", {
Parent = localObject,
CornerRadius = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, radius)
})
return methods
end
function methods:object(class, properties)
local properties = properties or {}
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = localObject
return Library:object(class, properties)
end
function methods:crossfade(p2, length)
length = length or .2
self:tween({ImageTransparency = 1})
p2:tween({ImageTransparency = 0})
end
function methods:fade(state, colorOverride, length, instant)
length = length or 0.2
if not rawget(self, "fadeFrame") then
local frame = self:object("Frame", {
BackgroundColor3 = colorOverride or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
BackgroundTransparency = (state and 1) or 0,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Centered = true,
ZIndex = 999
}):round(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("UICorner") and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("UICorner")https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 or 0)
rawset(self, "fadeFrame", frame)
else
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = colorOverride or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
end
if instant then
if state then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = 0
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true
else
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = 1
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
end
else
if state then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = 1
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{BackgroundTransparency = 0, Length = length}
else
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = 0
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0({BackgroundTransparency = 1, Length = length}, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
end)
end
end
end
function methods:stroke(color, thickness, strokeMode)
thickness = thickness or 1
strokeMode = strokeMode or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
local stroke = self:object("UIStroke", {
ApplyStrokeMode = strokeMode,
Thickness = thickness
})
if type(color) == "table" then
local theme, colorAlter = color[1], color[2] or 0
local themeColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[theme]
local modifiedColor = themeColor
if colorAlter < 0 then
modifiedColor = Library:darken(themeColor, -1 * colorAlter)
elseif colorAlter > 0 then
modifiedColor = Library:lighten(themeColor, colorAlter)
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = modifiedColor
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[theme], {stroke, "Color", theme, colorAlter})
elseif type(color) == "string" then
local themeColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[color]
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = themeColor
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[color], {stroke, "Color", color, 0})
else
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = color
end
return methods
end
function methods:tooltip(text)
local tooltipContainer = methods:object("TextLabel", {
Theme = {
BackgroundColor3 = {"Main", 10},
TextColor3 = {"WeakText"}
},
TextSize = 16,
Text = text,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0, 0, -8),
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextYAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 1),
BackgroundTransparency = 1,
TextTransparency = 1
}):round(5)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 16, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 8)
local tooltipArrow = tooltipContainer:object("ImageLabel", {
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
Theme = {ImageColor3 = {"Main", 10}},
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0),
Rotation = 180,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 6),
BackgroundTransparency = 1,
ImageTransparency = 1
})
local hovered = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
wait(0.2)
if hovered then
tooltipContainer:tween{BackgroundTransparency = 0.2, TextTransparency = 0.2}
tooltipArrow:tween{ImageTransparency = 0.2}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
tooltipContainer:tween{BackgroundTransparency = 1, TextTransparency = 1}
tooltipArrow:tween{ImageTransparency = 1}
end)
return methods
end
local customHandlers = {
Centered = function(value)
if value then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0.5)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0.5)
end
end,
Theme = function(value)
for property, obj in next, value do
if type(obj) == "table" then
local theme, colorAlter = obj[1], obj[2] or 0
local themeColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[theme]
local modifiedColor = themeColor
if colorAlter < 0 then
modifiedColor = Library:darken(themeColor, -1 * colorAlter)
elseif colorAlter > 0 then
modifiedColor = Library:lighten(themeColor, colorAlter)
end
localObject[property] = modifiedColor
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[theme], {methods, property, theme, colorAlter})
else
local themeColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[obj]
localObject[property] = themeColor
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[obj], {methods, property, obj, 0})
end
end
end,
}
for property, value in next, properties do
if customHandlers[property] then
customHandlers[property](value)
else
localObject[property] = value
end
end
return setmetatable(methods, {
__index = function(_, property)
return localObject[property]
end,
__newindex = function(_, property, value)
localObject[property] = value
end,
})
end
function Library:show(state) https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = state https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true if state then https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, Length = 0.25}, function() rawset(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, "oldSize", (state and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false end) wait(0.15) https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(not state, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0.15) else https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(not state, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0.15) wait(0.1) https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(), Length = 0.25} end end
function Library:darken(color, f) local h, s, v = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(color) f = 1 - ((f or 15) / 80) return https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(h, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(s/f, 0, 1), https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(v*f, 0, 1)) end
function Library:lighten(color, f) local h, s, v = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(color) f = 1 - ((f or 15) / 80) return https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(h, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(s*f, 0, 1), https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(v/f, 0, 1)) end
--[[ old lighten/darken functions, may revert if contrast gets fucked up
function Library:darken(color, f)
local h, s, v = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(color)
f = f or 15
return https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(h, s, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(v - (f/255), 0, 1))
end
function Library:lighten(color, f)
local h, s, v = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(color)
f = f or 15
return https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(h, s, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(v + (f/255), 0, 1))
end
]]
local updateSettings = function() end
function Library:set_status(txt) https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = txt end
function Library:create(options)
local settings = {
Theme = "Dark"
}
if readfile and writefile and isfile then
if not isfile("https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0") then
writefile("https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0", HTTPService:JSONEncode(settings))
end
settings = HTTPService:JSONDecode(readfile("https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0"))
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0]
updateSettings = function(property, value)
settings[property] = value
writefile("https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0", HTTPService:JSONEncode(settings))
end
end
options = self:set_defaults({
Name = "Mercury",
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(600, 400),
Theme = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0],
Link = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0"
}, options)
if getgenv and getgenv().MercuryUI then
getgenv():MercuryUI()
getgenv().MercuryUI = nil
end
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(-1, -1) == "/" then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -2)
end
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
local gui = self:object("ScreenGui", {
Parent = (RunService:IsStudio() and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) or game:GetService("CoreGui"),
ZIndexBehavior = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local notificationHolder = gui:object("Frame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -30,1, -30),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 300, 1, -60)
})
local _notiHolderList = notificationHolder:object("UIListLayout", {
Padding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 20),
VerticalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local core = gui:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(),
Theme = {BackgroundColor3 = "Main"},
Centered = true,
ClipsDescendants = true
}):round(10)
core:fade(true, nil, 0.2, true)
core:fade(false, nil, 0.4)
core:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, Length = 0.3}, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
end)
do
local S, Event = pcall(function()
return https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
end)
if S then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true;
Event:connect(function()
local Input = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(Key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local ObjectPosition = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(Mouse.X - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, Mouse.Y - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
while https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() and UserInputService:IsMouseButtonPressed(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) do
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local FrameX, FrameY = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(Mouse.X - ObjectPosition.X, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(Mouse.Y - ObjectPosition.Y, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
core:tween{
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(FrameX + (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), FrameY + (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)),
Length = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}
else
core:tween{
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(Mouse.X - ObjectPosition.X + (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), Mouse.Y - ObjectPosition.Y + (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)),
Length = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}
end
--[[https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, Mouse.X - ObjectPosition.X + (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, Mouse.Y - ObjectPosition.Y + (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
true
--
core:tween{
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, Mouse.X - ObjectPosition.X + (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, Mouse.Y - ObjectPosition.Y + (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)),
Direction = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Style = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Length = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}
)]]
end
end
end)
local Leave
Leave = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
Input:disconnect()
Leave:disconnect()
end)
end)
end
end
rawset(core, "oldSize", https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = core
local tabButtons = core:object("ScrollingFrame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -40, 0, 25),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(5, 5),
BackgroundTransparency = 1,
ClipsDescendants = true,
ScrollBarThickness = 0,
ScrollingDirection = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
AutomaticCanvasSize = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
tabButtons:object("UIListLayout", {
FillDirection = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
HorizontalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
SortOrder = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Padding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 4)
})
local closeButton = core:object("ImageButton", {
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(14, 14),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -11, 0, 11),
Theme = {ImageColor3 = "StrongText"},
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1)
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
closeButton:tween{ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 124, 142)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
closeButton:tween{ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end)
local function closeUI()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true
core:fade(true)
wait(0.1)
core:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()}, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end)
end
if getgenv then
getgenv().MercuryUI = closeUI
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
closeUI()
end)
local urlBar = core:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, 25),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5,0, 35),
Theme = {BackgroundColor3 = "Secondary"}
}):round(5)
local searchIcon = urlBar:object("ImageLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, .5),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5,0.5, 0);
Theme = {ImageColor3 = "Tertiary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(16, 16),
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
BackgroundTransparency = 1
})
local link = urlBar:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0.5),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 26, 0.5, 0),
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -30, .6, 0),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. "/home",
Theme = {TextColor3 = "WeakText"},
TextSize = 14,
TextScaled = false,
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = link
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
local shadowHolder = core:object("Frame", {
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ZIndex = 0
})
local shadow = shadowHolder:object("ImageLabel", {
Centered = true,
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 47,1, 47),
ZIndex = 0,
Image = "rbxassetid://6015897843",
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0),
ImageTransparency = .6,
SliceCenter = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(47, 47, 450, 450),
ScaleType = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
SliceScale = 1
})
local content = core:object("Frame", {
Theme = {BackgroundColor3 = {"Secondary", -10}},
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 1),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0, 1, -20),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 1, -86)
}):round(7) -- Sept
local status = core:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5, 1, -6),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.2, 0, 0, 10),
Font = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Text = "Status | Idle",
Theme = {TextColor3 = "Tertiary"},
TextSize = 14,
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local homeButton = tabButtons:object("TextButton", {
Name = "hehehe siuuuuuuuuu",
BackgroundTransparency = 0,
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 125, 0, 25)
}):round(5)
local homeButtonText = homeButton:object("TextLabel", {
Theme = {TextColor3 = "StrongText"},
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, .5),
BackgroundTransparency = 1,
TextSize = 14,
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 25, 0.5, 0),
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -45, 0.5, 0),
Font = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextTruncate = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local homeButtonIcon = homeButton:object("ImageLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0.5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5, 0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 15, 0, 15),
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
Theme = {ImageColor3 = "StrongText"}
})
local homePage = content:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Centered = true,
BackgroundTransparency = 1
})
local tabs = {}
selectedTab = homeButton
tabs[#tabs+1] = {homePage, homeButton}
do
local down = false
local hovered = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
homeButton:tween{BackgroundTransparency = ((selectedTab == homeButton) and 0.15) or 0.3}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
homeButton:tween{BackgroundTransparency = ((selectedTab == homeButton) and 0.15) or 1}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
down = true
homeButton:tween{BackgroundTransparency = 0}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
down = false
homeButton:tween{BackgroundTransparency = ((selectedTab == homeButton) and 0.15) or (hovered and 0.3) or 1}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
for _, tabInfo in next, tabs do
local page = tabInfo[1]
local button = tabInfo[2]
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
end
selectedTab:tween{BackgroundTransparency = ((selectedTab == homeButton) and 0.15) or 1}
selectedTab = homeButton
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = 0
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. "/home"
end)
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = homeButton
local homePageLayout = homePage:object("UIListLayout", {
Padding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10),
FillDirection = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
HorizontalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local homePagePadding = homePage:object("UIPadding", {
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10)
})
local profile = homePage:object("Frame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, .5),
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 100)
}):round(7)
local profilePictureContainer = profile:object("ImageLabel", {
Image = Players:GetUserThumbnailAsync(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0),
Theme = {BackgroundColor3 = {"Secondary", 10}},
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0.5),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10, 0.5),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(80, 80)
}):round(100)
local displayName; do
local h, s, v = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
local c = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)
local displayName = profile:object("TextLabel", {
RichText = true,
Text = "Welcome, <font color='rgb(" .. https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(c.R*255) .. "," .. https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(c.G*255) .. "," .. https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(c.B*255) .. ")'> <b>" .. https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. "</b> </font>",
TextScaled = true,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 105,0, 10),
Theme = {TextColor3 = {"Tertiary", 10}},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 400,0, 40),
BackgroundTransparency = 1,
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = displayName
end
local profileName = profile:object("TextLabel", {
Text = "@" .. https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextScaled = true,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 105,0, 47),
Theme = {TextColor3 = "Tertiary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 400,0, 20),
BackgroundTransparency = 1,
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local timeDisplay = profile:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 105, 1, -10),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 400,0, 20),
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Theme = {TextColor3 = {"WeakText", -20}},
TextScaled = true,
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Text = tostring(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("%X")):sub(1, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("%X"):len()-3)
})
do
local desiredInterval = 1
local counter = 0
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(step)
counter += step
if counter >= desiredInterval then
counter -= desiredInterval
local date = tostring(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("%X"))
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = date:sub(1, date:len()-3)
end
end)
end
local settingsTabIcon = profile:object("ImageButton", {
BackgroundTransparency = 1,
Theme = {ImageColor3 = "WeakText"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(24, 24),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 1, -10),
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0"
}):tooltip("settings")
local creditsTabIcon = profile:object("ImageButton", {
BackgroundTransparency = 1,
Theme = {ImageColor3 = "WeakText"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(24, 24),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -44, 1, -10),
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0"
}):tooltip("credits")
local quickAccess = homePage:object("Frame", {
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 180)
})
quickAccess:object("UIGridLayout", {
CellPadding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 10),
CellSize = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(55, 55),
HorizontalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
VerticalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
quickAccess:object("UIPadding", {
PaddingBottom = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10),
PaddingLeft = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 70),
PaddingRight = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 70),
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5)
})
local mt = setmetatable({
core = core,
notifs = notificationHolder,
statusText = status,
container = content,
navigation = tabButtons,
Theme = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Tabs = tabs,
quickAccess = quickAccess,
homeButton = homeButton,
homePage = homePage,
nilFolder = core:object("Folder"),
}, Library)
local settingsTab = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(mt, {
Name = "Settings",
Internal = settingsTabIcon,
Icon = "rbxassetid://8559790237"
})
settingsTab:_theme_selector()
settingsTab:keybind{
Name = "Toggle Key",
Description = "Key to show/hide the UI.",
Keybind = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Callback = function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = not https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
Library:show(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
end,
}
settingsTab:toggle{
Name = "Lock Dragging",
Description = "Makes sure you can't drag the UI outside of the window.",
StartingState = true,
Callback = function(state)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = state
end,
}
settingsTab:slider{
Name = "UI Drag Speed",
Description = "How smooth the dragging looks.",
Max = 20,
Default = 14,
Callback = function(value)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = (20 - value)/100
end,
}
local creditsTab = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(mt, {
Name = "Credits",
Internal = creditsTabIcon,
Icon = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0"
})
rawset(mt, "creditsContainer", https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
creditsTab:credit{Name = "Abstract", Description = "UI Library Developer", Discord = "Abstract#8007", V3rmillion = "AbstractPoo"}
creditsTab:credit{Name = "Deity", Description = "UI Library Developer", Discord = "Deity#0228", V3rmillion = "0xDEITY"}
creditsTab:credit{Name = "Repository", Description = "UI Library Repository", Github="https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0"}
return mt
end
function Library:notification(options) options = self:set_defaults({ Title = "Notification", Text = "Your character has been reset.", Duration = 3, Callback = function() end }, options)
local fadeOut;
local noti = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("Frame", {
BackgroundTransparency = 1,
Theme = {BackgroundColor3 = "Main"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 300,0, 0)
}):round(10)
local _notiPadding = noti:object("UIPadding", {
PaddingBottom = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 11),
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 11),
PaddingLeft = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 11),
PaddingRight = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 11)
})
local dropShadow = noti:object("Frame", {
ZIndex = 0,
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1)
})
local _shadow = dropShadow:object("ImageLabel", {
Centered = true,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(.5, .5),
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 70,1, 70),
ZIndex = 0,
Image = "rbxassetid://6014261993",
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0,0,0),
ImageTransparency = 1,
ScaleType = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
SliceCenter = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(49, 49, 450, 450)
})
local durationHolder = noti:object("Frame", {
BackgroundTransparency = 1,
Theme = {BackgroundColor3 = "Secondary"},
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0,0, 4)
}):round(100)
local length = durationHolder:object("Frame", {
BackgroundTransparency = 1,
Theme = {BackgroundColor3 = "Tertiary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1)
}):round(100)
local icon = noti:object("ImageLabel", {
BackgroundTransparency = 1,
ImageTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(18, 18),
Image = "rbxassetid://8628681683",
Theme = {ImageColor3 = "Tertiary"}
})
local exit = noti:object("ImageButton", {
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -3,0, 3),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(14, 14),
BackgroundTransparency = 1,
ImageTransparency = 1
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
fadeOut()
end)
local text = noti:object("TextLabel", {
BackgroundTransparency = 1,
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0,0, 23),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 100, 0),
TextSize = 16,
TextTransparency = 1,
TextWrapped = true,
TextColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextYAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextTransparency = 1
})
text:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)})
local title = noti:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(23, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -60,0, 20),
Font = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Theme = {TextColor3 = "Tertiary"},
TextSize = 17,
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextWrapped = true,
TextTruncate = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextTransparency = 1
})
fadeOut = function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.3, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end)
icon:tween({ImageTransparency = 1, Length = 0.2})
exit:tween({ImageTransparency = 1, Length = 0.2})
durationHolder:tween({BackgroundTransparency = 1, Length = 0.2})
length:tween({BackgroundTransparency = 1, Length = 0.2})
text:tween({TextTransparency = 1, Length = 0.2})
title:tween({TextTransparency = 1, Length = 0.2}, function()
_shadow:tween({ImageTransparency = 1, Length = 0.2})
noti:tween({BackgroundTransparency = 1, Length = 0.2, Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(300, 0)})
end)
end
_shadow:tween({ImageTransparency = .6, Length = 0.2})
noti:tween({BackgroundTransparency = 0, Length = 0.2, Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(300, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 63)}, function()
icon:tween({ImageTransparency = 0, Length = 0.2})
exit:tween({ImageTransparency = 0, Length = 0.2})
durationHolder:tween({BackgroundTransparency = 0, Length = 0.2})
length:tween({BackgroundTransparency = 0, Length = 0.2})
text:tween({TextTransparency = 0, Length = 0.2})
title:tween({TextTransparency = 0, Length = 0.2})
end)
length:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1), Length = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}, function()
fadeOut()
end)
end
function Library:tab(options) options = self:set_defaults({ Name = "New Tab", Icon = "rbxassetid://8569322835" }, options)
local tab = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("ScrollingFrame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Visible = false,
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ScrollBarThickness = 0,
ScrollingDirection = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local quickAccessButton
local quickAccessIcon
if not https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
quickAccessButton = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"}
}):round(5):tooltip(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
quickAccessIcon = quickAccessButton:object("ImageLabel", {
BackgroundTransparency = 1,
Theme = {ImageColor3 = "StrongText"},
Image = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0.5),
Centered = true
})
else
quickAccessButton = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
end
local layout = tab:object("UIListLayout", {
Padding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10),
HorizontalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
tab:object("UIPadding", {
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10)
})
local tabButton = Library:object("TextButton", {
BackgroundTransparency = 1,
Parent = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 125, 0, 25),
Visible = false
}):round(5)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0+1] = {tab, tabButton, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
do
local down = false
local hovered = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
tabButton:tween{BackgroundTransparency = ((selectedTab == tabButton) and 0.15) or 0.3}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
tabButton:tween{BackgroundTransparency = ((selectedTab == tabButton) and 0.15) or 1}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
down = true
tabButton:tween{BackgroundTransparency = 0}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
down = false
tabButton:tween{BackgroundTransparency = ((selectedTab == tabButton) and 0.15) or (hovered and 0.3) or 1}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
for _, tabInfo in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do
local page = tabInfo[1]
local button = tabInfo[2]
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
end
selectedTab:tween{BackgroundTransparency = ((selectedTab == tabButton) and 0.15) or 1}
selectedTab = tabButton
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = 0
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. "/" .. https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
quickAccessButton:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
quickAccessButton:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
if not https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 50, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true
tabButton:fade(false, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0.1)
tabButton:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 125, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), Length = 0.1})
for _, tabInfo in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do
local page = tabInfo[1]
local button = tabInfo[2]
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
end
selectedTab:tween{BackgroundTransparency = ((selectedTab == tabButton) and 0.15) or 1}
selectedTab = tabButton
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = 0
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. "/" .. https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end
end)
end
local tabButtonText = tabButton:object("TextLabel", {
Theme = {TextColor3 = "StrongText"},
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, .5),
BackgroundTransparency = 1,
TextSize = 14,
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 25, 0.5, 0),
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -45, 0.5, 0),
Font = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextTruncate = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local tabButtonIcon = tabButton:object("ImageLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0.5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5, 0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 15, 0, 15),
Image = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Theme = {ImageColor3 = "StrongText"}
})
local tabButtonClose = tabButton:object("ImageButton", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0.5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -5, 0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(14, 14),
Image = "rbxassetid://8497487650",
Theme = {ImageColor3 = "StrongText"}
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
tabButton:fade(true, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0.1)
tabButton:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 50, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), Length = 0.1}, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
wait()
end)
local visible = {}
for _, tab in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do
if not tab[2] == selectedTab then tab[1].Visible = false end
if tab[2].Visible then
visible[#visible+1] = tab
end
end
local lastTab = visible[#visible]
if selectedTab == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
elseif #visible == 2 then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = true
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{BackgroundTransparency = 0.15}
selectedTab = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. "/home"
elseif tabButton == lastTab[2] then
lastTab = visible[#visible-1]
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
lastTab[2]:tween{BackgroundTransparency = 0.15}
lastTab[1].Visible = true
selectedTab = lastTab[2]
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. "/" .. lastTab[3]:lower()
else
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = false
lastTab[2]:tween{BackgroundTransparency = 0.15}
lastTab[1].Visible = true
selectedTab = lastTab[2]
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 .. "/" .. lastTab[3]:lower()
end
end)
return setmetatable({
statusText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
container = tab,
Theme = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
core = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
layout = layout
}, Library)
end
function Library:_resize_tab() if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == "ScrollingFrame" then https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20) else https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -24, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20) https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20) end end
function Library:toggle(options) options = self:set_defaults({ Name = "Toggle", StartingState = false, Description = nil, Callback = function(state) end }, options)
local toggleContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)
}):round(7)
local on = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0"
local off = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0"
local toggled = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
local onIcon = toggleContainer:object("ImageLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, .5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -11,0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 26,0, 26),
Image = on,
Theme = {ImageColor3 = "Tertiary"},
ImageTransparency = (toggled and 0) or 1
})
local offIcon = toggleContainer:object("ImageLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, .5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -11,0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 26,0, 26),
Image = off,
Theme = {ImageColor3 = "WeakText"},
ImageTransparency = (toggled and 1) or 0
})
local text = toggleContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and 5) or 0),
Size = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 1, 0),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local description = toggleContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 27),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 20),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
end
local function toggle()
toggled = not toggled
if toggled then
offIcon:crossfade(onIcon, 0.1)
else
onIcon:crossfade(offIcon, 0.1)
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(toggled)
end
do
local hovered = false
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
toggleContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
toggleContainer:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
toggleContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
toggleContainer:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
toggle()
end)
end
self:_resize_tab()
local methods = {}
function methods:Toggle()
toggle()
end
function methods:SetState(state)
toggled = state
if toggled then
offIcon:crossfade(onIcon, 0.1)
else
onIcon:crossfade(offIcon, 0.1)
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function() https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(toggled) end)
end
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then methods:SetState(true) end
return methods
end
function Library:dropdown(options) options = self:set_defaults({ Name = "Dropdown", StartingText = "Select...", Items = {}, Callback = function(item) return end }, options)
local newSize = 0
local open = false
local dropdownContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)
}):round(7)
local text = dropdownContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and 5) or 15),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local description = dropdownContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 27),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 20),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
end
local icon = dropdownContainer:object("ImageLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -11, 0, 12),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(26, 26),
Image = "rbxassetid://8498840035",
Theme = {ImageColor3 = "Tertiary"}
})
local selectedText = dropdownContainer:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
Theme = {
BackgroundColor3 = {"Secondary", -20},
TextColor3 = "WeakText"
},
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -50, 0, 16),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(200, 20),
TextSize = 14,
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}):round(5):stroke("Tertiary")
local itemContainer = dropdownContainer:object("Frame", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5,0, 55),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, 0),
ClipsDescendants = true
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20)
local _gridItemContainer = itemContainer:object("UIGridLayout", {
CellPadding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5),
CellSize = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 0, 20),
FillDirection = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
HorizontalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
VerticalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local layout = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
local container = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
local items = setmetatable({}, {
__newindex = function(self, i, v)
rawset(self, i, v)
if v ~= nil then
newSize = (25 * #self) + 5
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, newSize)
end
end
})
for i, v in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do
if typeof(v) == "table" then
items[i] = v
else
items[i] = {tostring(v), v}
end
end
local toggle;
for i, item in next, items do
local label = item[1]
local value = item[2]
local newItem = itemContainer:object("TextButton", {
Theme = {
BackgroundColor3 = {"Secondary", 25},
TextColor3 = {"StrongText", 25}
},
Text = label,
TextSize = 14
}):round(5)
items[i] = {{label, value}, newItem}
do
local hovered = false
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
newItem:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
newItem:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 25)}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
newItem:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
newItem:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 5)) or self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 25)}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
toggle()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
selectedText:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20), Length = 0.05}
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(value)
end)
end
end
do
local hovered = false
local down = false
newSize = (25 * #items) + 5
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = (not open and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, 0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, newSize)
toggle = function()
newSize = (25 * #items) + 5
open = not open
if open then
itemContainer:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, newSize)}
dropdownContainer:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52 + newSize)}, function()
self:_resize_tab()
end)
icon:tween{Rotation = 180, Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -11, 0, 15)}
else
itemContainer:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, 0)}
dropdownContainer:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)}, function()
self:_resize_tab()
end)
icon:tween{Rotation = 0, Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -11, 0, 12)}
end
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
dropdownContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
dropdownContainer:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
dropdownContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
dropdownContainer:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
toggle()
end)
end
self:_resize_tab()
local methods = {}
function methods:Set(text)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = text
selectedText:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20), Length = 0.05}
end
function methods:RemoveItems(fitems)
for _, v in next, fitems do
for _2, v2 in next, items do
local label = v2[1][1]
if label:lower() == tostring(v):lower() then
v2[2].AbsoluteObject:Destroy()
items[_2] = nil
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(items, _2)
newSize = (25 * #items) + 5
itemContainer:tween{Size = (not open and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, 0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, newSize)}
dropdownContainer:tween({Size = (not open and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52 + newSize)})
end
end
end
end
function methods:Clear()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(items)
itemContainer:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, 0)}
dropdownContainer:tween({Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)}, function()
for i, v in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() do
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == "TextButton" then
v:Destroy()
end
end
end)
if open then toggle() end
end
function methods:AddItems(fitems)
for i, v in next, fitems do
if typeof(v) == "table" then
items[#items+1] = v
else
items[#items+1] = {tostring(v), v}
end
end
newSize = (25 * #items) + 5
itemContainer:tween{Size = (not open and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, 0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, newSize)}
dropdownContainer:tween({Size = (not open and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52 + newSize)})
for i, item in next, items do
local label = item[1]
local value = item[2]
if type(label) == "table" then continue end
local newItem = itemContainer:object("TextButton", {
Theme = {
BackgroundColor3 = {"Secondary", 25},
TextColor3 = {"StrongText", 25}
},
Text = label,
TextSize = 14
}):round(5)
items[i] = {{label, value}, newItem}
do
local hovered = false
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
newItem:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
newItem:tween{BackgroundColor3 = Library:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 25)}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
newItem:tween{BackgroundColor3 = Library:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
newItem:tween{BackgroundColor3 = (hovered and Library:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 5)) or Library:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 25)}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
toggle()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
selectedText:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20), Length = 0.05}
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(value)
end)
end
end
Library._resize_tab({
container = container,
layout = layout
})
end
return methods
end
function Library:section(options) options = self:set_defaults({ Name = "Section" }, options)
local sectionContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -24, 0, 52)
}):round(7):stroke("Secondary", 2)
local text = sectionContainer:object("TextLabel", {
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {
TextColor3 = "StrongText",
BackgroundColor3 = {"Secondary", -10}
},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0.5)
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 4, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
local functionContainer = sectionContainer:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
BackgroundTransparency = 1
})
local layout = functionContainer:object("UIListLayout", {
Padding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10),
HorizontalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
functionContainer:object("UIPadding", {
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10)
})
return setmetatable({
statusText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
container = functionContainer,
sectionContainer = sectionContainer,
parentContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Theme = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
core = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
parentLayout = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
layout = layout
}, Library)
end
function Library:button(options) options = self:set_defaults({ Name = "Button", Description = nil, Callback = function() end }, options)
local buttonContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)
}):round(7)
local text = buttonContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and 5) or 0),
Size = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 1, 0),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local description = buttonContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 27),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 20),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
end
local icon = buttonContainer:object("ImageLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0.5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -11, 0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(26, 26),
Image = "rbxassetid://8498776661",
Theme = {ImageColor3 = "Tertiary"}
})
do
local hovered = false
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
buttonContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
buttonContainer:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
buttonContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
buttonContainer:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end)
end
self:_resize_tab()
local methods = {}
function methods:Fire()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end
function methods:SetText(txt)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = txt
end
return methods
end
function Library:color_picker(options) options = self:set_defaults({ Name = "Color Picker", Description = nil, Style = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, Followup = false, Callback = function(color) end }, options)
local buttonContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)
}):round(7)
local text = buttonContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and 5) or 0),
Size = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 1, 0),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local description = buttonContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 27),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 20),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
end
local icon = buttonContainer:object("ImageLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0.5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -11, 0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(26, 26),
Image = "rbxassetid://8604555937",
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
do
local hovered = false
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
buttonContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
buttonContainer:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
buttonContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
buttonContainer:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
if Library._colorPickerExists then return end
Library._colorPickerExists = true
local hue, sat, val;
local updatePicker, updateHue;
local fadeOut;
local selectedColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 0, 0);
local darkener = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("Frame", {
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0),
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ZIndex = 2
}):round(10)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == 1 then
do
local arrow = darkener:object("ImageLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 365,0, 102),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 56,0, 48),
ZIndex = 10,
Image = "rbxassetid://8579148508",
ImageColor3 = selectedColor,
ImageTransparency = 1,
Rotation = 180
})
local text = darkener:object("ImageLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 364,0, 158),
Rotation = -4,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 141,0, 37),
ZIndex = 10,
Image = "rbxassetid://8579166120",
ImageColor3 = selectedColor,
ImageTransparency = 0
})
local cpHolder = darkener:object("Frame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(.5, .5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -50,0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(160, 240),
ZIndex = 12
})
local _cpShadowHolder = cpHolder:object("Frame", {
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ZIndex = 11
})
local _cpShadow = _cpShadowHolder:object("ImageLabel", {
Centered = true,
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 47,1, 47),
ZIndex = 11,
Image = "rbxassetid://6015897843",
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0),
ImageTransparency = 1,
SliceCenter = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(49, 49, 450, 450),
ScaleType = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
SliceScale = 1
})
local btnHolder = cpHolder:object("Frame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -5,0, 50),
ZIndex = 12
})
local button = btnHolder:object("TextButton", {
Centered = true,
BackgroundTransparency = 1,
TextTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(80, 20),
ZIndex = 12,
Text = "SELECT",
TextSize = 13,
Theme = {TextColor3 = {"Tertiary", -10}, BackgroundColor3 = {"Tertiary", -10}}
}):round(8):stroke({"Tertiary", -10})
do
local hovered = false
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
button:tween{BackgroundTransparency = 0, TextColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 15)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
button:tween{BackgroundTransparency = 1, TextColor3 = self:darken(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
button:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
button:tween{BackgroundTransparency = (hovered and 0) or 1}
if hovered then
button:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
fadeOut()
icon:tween({ImageColor3 = selectedColor})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(selectedColor)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.35, function()
Library._colorPickerExists = false
end)
end)
end
local hueBar = cpHolder:object("TextButton", {
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
BorderSizePixel = 0,
Text = "",
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5, 1, 0),
ZIndex = 12,
ClipsDescendants = true,
BackgroundTransparency = 1
})
local _hueBarGradient = hueBar:object("UIGradient", {
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 0, 0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.167, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.333, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 255, 0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 255, 255)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.667, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 255)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.833, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 0, 255)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 0, 0))
},
Rotation = 90
})
local hueDraggable = hueBar:object("ImageButton", {
BackgroundTransparency = 1,
ImageTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(-2, 3,0, -10),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(20, 20),
ZIndex = 12,
Image = "rbxassetid://8579244616"
})
local pickerArea = cpHolder:object("TextButton", {
Text = "",
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -5,1, -50),
ZIndex = 12,
ClipsDescendants = true
})
local color = pickerArea:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ZIndex = 13,
BackgroundColor3 = selectedColor,
BackgroundTransparency = 1,
BorderSizePixel = 0
})
local brightness = pickerArea:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ZIndex = 14,
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
BackgroundTransparency = 1,
BorderSizePixel = 0
})
local _brightness = brightness:object("UIGradient", {
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255 ,255, 255)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255 ,255, 255))
},
Transparency = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
}
})
local black = pickerArea:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ZIndex = 16,
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
BorderSizePixel = 0,
BackgroundTransparency = 1
})
local _black = black:object("UIGradient", {
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0))
},
Transparency = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
},
Rotation = -90
})
local colorPickerDraggable = pickerArea:object("TextButton", {
Text = "",
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(.5, .5),
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(6, 6),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 152, 0, 3),
ZIndex = 20
}):round(100)
local _colorPickerDraggableStroke = colorPickerDraggable:object("UIStroke", {
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255 ,255),
Thickness = 1.6,
ApplyStrokeMode = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Transparency = 1
})
-- HUE
do
updateHue = function()
hue = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.Y - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, 1)
local tempVal = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.Y - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, 1)
local newYPos = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.Y - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
selectedColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(hue, sat, val)
color:tween({Length = 0.05, BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(hue, 1, 1)})
text:tween({ImageColor3 = selectedColor, Length = 0.05})
arrow:tween({ImageColor3 = selectedColor, Length = 0.05})
hueDraggable:tween({Length = 0.05, Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(-2, 3, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(newYPos - 10, -10, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 10)), ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, -tempVal)})
end
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
down = true
while https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() and down do
updateHue()
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
down = true
while https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() and down do
updateHue()
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
if down then
down = false
end
end
end)
end
-- END HUE
-- SAT & VALUE [PICKER]
do
local down = false
updatePicker = function()
sat = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.X - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, 1)
val = 1 - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.Y - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, 1)
local newXPos = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.X - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
local newYPos = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.Y - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
selectedColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(hue, sat, val)
colorPickerDraggable:tween({Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(newXPos, newYPos), Length = 0.05})
text:tween({ImageColor3 = selectedColor, Length = 0.05})
arrow:tween({ImageColor3 = selectedColor, Length = 0.05})
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
down = true
while https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() and down do
updatePicker()
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
if down then
down = false
end
end
end)
end
-- END SAT & VALUE
-- opening (fade in)
darkener:tween({BackgroundTransparency = .4, Length = 0.1})
arrow:tween({ImageTransparency = 0, Length = 0.1})
text:tween({ImageTransparency = 0, Length = 0.1})
_cpShadow:tween({ImageTransparency = .6, Length = 0.1})
btnHolder:tween({BackgroundTransparency = 0, Length = 0.1})
button:tween({TextTransparency = 0, Length = 0.1})
hueBar:tween({BackgroundTransparency = 0, Length = 0.1})
hueDraggable:tween({ImageTransparency = 0, Length = 0.1})
color:tween{BackgroundTransparency = 0, Length = 0.1}
brightness:tween{BackgroundTransparency = 0, Length = 0.1}
black:tween{BackgroundTransparency = 0, Length = 0.1}
_colorPickerDraggableStroke:tween{Transparency = 0, Length = 0.1}
-- closing fade in
fadeOut = function()
darkener:tween({BackgroundTransparency = 1, Length = 0.1})
arrow:tween({ImageTransparency = 1, Length = 0.1})
text:tween({ImageTransparency = 1, Length = 0.1})
_cpShadow:tween({ImageTransparency = 1, Length = 0.1})
btnHolder:tween({BackgroundTransparency = 1, Length = 0.1})
button:tween({TextTransparency = 1, Length = 0.1})
hueBar:tween({BackgroundTransparency = 1, Length = 0.1})
hueDraggable:tween({ImageTransparency = 1, Length = 0.1})
color:tween{BackgroundTransparency = 1, Length = 0.1}
brightness:tween{BackgroundTransparency = 1, Length = 0.1}
black:tween{BackgroundTransparency = 1, Length = 0.1}
_colorPickerDraggableStroke:tween({Transparency = 1, Length = 0.1}, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.25, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end)
end)
end
end
else
do
-- legacy
local holder = darkener:object("Frame", {
Centered = true,
Theme = {BackgroundColor3 = "Secondary"},
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 170),
}):round(6)
local _holderStroke = holder:object("UIStroke", {
Transparency = 1,
Theme = {Color = "Tertiary"},
Thickness = 1.6
})
local _padding = holder:object("UIPadding", {
PaddingLeft = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5),
PaddingRight = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5),
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5),
PaddingBottom = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5)
})
local pickerArea = holder:object("TextButton", {
Text = "",
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -5,1, -25),
}):round(6)
local _pickerAreaStroke = pickerArea:object("UIStroke", {
Transparency = 1,
Theme = {Color = "Tertiary"},
Thickness = 1.6
})
local color = pickerArea:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
BackgroundColor3 = selectedColor,
BackgroundTransparency = 1,
ZIndex = 10
}):round(6)
local brightness = pickerArea:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ZIndex = 11,
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
BackgroundTransparency = 1,
BorderSizePixel = 0
}):round(6)
local _brightness = brightness:object("UIGradient", {
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255 ,255, 255)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255 ,255, 255))
},
Transparency = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
}
})
local black = pickerArea:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
ZIndex = 12,
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
BorderSizePixel = 0,
BackgroundTransparency = 1
}):round(6)
local _black = black:object("UIGradient", {
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0))
},
Transparency = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
},
Rotation = -90
})
local colorPickerDraggable = pickerArea:object("TextButton", {
Centered = true,
Text = "",
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(.5, .5),
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(6, 6),
ZIndex = 20
}):round(100)
local _colorPickerDraggableStroke = colorPickerDraggable:object("UIStroke", {
Transparency = 1,
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
Thickness = 1.6,
ApplyStrokeMode = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local hueArea = holder:object("TextButton", {
Text = "",
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -5,0, 20),
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
BackgroundTransparency = 1,
ZIndex = 11
}):round(6)
local _hueAreaStroke = hueArea:object("UIStroke", {
Transparency = 1,
Theme = {Color = "Tertiary"},
Thickness = 1.6
})
local _hueAreaGradient = hueArea:object("UIGradient", {
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0{
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 0, 0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.167, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.333, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 255, 0)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 255, 255)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.667, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 255)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.833, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 0, 255)),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 0, 0))
}
})
local hueDraggable = hueArea:object("TextButton", {
Centered = true,
Text = "",
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 3, 1, 0),
ZIndex = 20
})
local _hueDraggableStroke = hueDraggable:object("UIStroke", {
Transparency = 1,
Color = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
Thickness = 1.6,
ApplyStrokeMode = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local label = holder:object("TextLabel", {
Text = "Color Picker",
Font = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1,0),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0,0, 20),
Theme = {TextColor3 = {"Tertiary", 15}},
TextSize = 15,
TextTransparency = 1
})
local infos = holder:object("Frame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0,0, 25),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0,0, 60)
})
local _infosList = infos:object("UIListLayout", {
Padding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 4),
HorizontalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
SortOrder = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local r = infos:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0),
Name = "1",
Text = tostring(selectedColor.R * 255),
Theme = {BackgroundColor3 = {"Secondary", 12}},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10,0, 18),
TextColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0.8, 1),
TextSize = 14,
BackgroundTransparency = 1,
TextTransparency = 1
}):round(4)
local g = infos:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0),
Name = "2",
Text = tostring(selectedColor.G * 255),
Theme = {BackgroundColor3 = {"Secondary", 12}},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10,0, 18),
TextColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(120/360, 0.8, 1),
TextSize = 14,
BackgroundTransparency = 1,
TextTransparency = 1
}):round(4)
local b = infos:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0),
Text = tostring(selectedColor.B * 255),
Name = "3",
Theme = {BackgroundColor3 = {"Secondary", 12}},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10,0, 18),
TextColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(240/360, 0.8, 1),
TextSize = 14,
BackgroundTransparency = 1,
TextTransparency = 1
}):round(4)
local pickBtn = holder:object("ImageButton", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Theme = {BackgroundColor3 = "Tertiary"},
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0,0, 20),
Image = "rbxassetid://8593962406",
ScaleType = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
BackgroundTransparency = 1,
ImageTransparency = 1
}):round(6)
local previewLight = holder:object("Frame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
BackgroundColor3 = selectedColor,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -65,1, -25),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(40, 40),
BackgroundTransparency = 1
}):round(5)
local _previewLightIcon = previewLight:object("ImageLabel", {
Centered = true,
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(.6, .6),
Image = "rbxassetid://8593995344",
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
ImageTransparency = 1
})
local previewDark = holder:object("Frame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
BackgroundColor3 = selectedColor,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -15,1, -25),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(40, 40),
BackgroundTransparency = 1
}):round(5)
local _previewDarkIcon = previewDark:object("ImageLabel", {
Centered = true,
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(.6, .6),
Image = "rbxassetid://8593995344",
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0),
ImageTransparency = 1
})
-- hacky fix for zindex issue
for _, v in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() do
pcall(function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 += 3
end)
end
local function globalUpdate()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = tostring(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(selectedColor.R * 255))
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = tostring(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(selectedColor.G * 255))
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = tostring(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(selectedColor.B * 255))
previewDark:tween({BackgroundColor3 = selectedColor})
previewLight:tween({BackgroundColor3 = selectedColor})
end
-- HUE
do
updateHue = function()
hue = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.X - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, 1)
local newXPos = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.X - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
selectedColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(hue, sat, val)
color:tween({Length = 0.05, BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(hue, 1, 1)})
hueDraggable:tween({Length = 0.05, Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(newXPos, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), .5, 0)})
globalUpdate()
end
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
down = true
while https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() and down do
updateHue()
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
down = true
while https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() and down do
updateHue()
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
if down then
down = false
end
end
end)
end
-- SAT & VALUE [PICKER]
do
local down = false
updatePicker = function()
sat = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.X - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, 1)
val = 1 - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.Y - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, 1)
local newXPos = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.X - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
local newYPos = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.Y - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 0, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
selectedColor = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(hue, sat, val)
globalUpdate()
colorPickerDraggable:tween({Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(newXPos, newYPos), Length = 0.05})
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
down = true
while https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() and down do
updatePicker()
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
if down then
down = false
end
end
end)
end
-- input n shit
do
local down = false
local hovered = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
pickBtn:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
pickBtn:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
pickBtn:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
pickBtn:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
fadeOut()
icon:tween({ImageColor3 = selectedColor})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(selectedColor)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.35, function()
Library._colorPickerExists = false
end)
end)
end
--show fade in
holder:tween({BackgroundTransparency = 0, Length = 0.1})
_holderStroke:tween({Transparency = 0, Length = 0.1})
pickerArea:tween({BackgroundTransparency = 0, Length = 0.1})
_pickerAreaStroke:tween({Transparency = 0, Length = 0.1})
color:tween({BackgroundTransparency = 0, Length = 0.1})
brightness:tween({BackgroundTransparency = 0, Length = 0.1})
black:tween({BackgroundTransparency = 0, Length = 0.1})
_colorPickerDraggableStroke:tween({Transparency = 0, Length = 0.1})
hueArea:tween({BackgroundTransparency = 0, Length = 0.1})
_hueAreaStroke:tween({Transparency = 0, Length = 0.1})
_hueDraggableStroke:tween({Transparency = 0, Length = 0.1})
label:tween{TextTransparency = 0, Length = 0.1}
r:tween({
BackgroundTransparency = 0,
TextTransparency = 0,
Length = 0.1
})
g:tween({
BackgroundTransparency = 0,
TextTransparency = 0,
Length = 0.1
})
b:tween({
BackgroundTransparency = 0,
TextTransparency = 0,
Length = 0.1
})
pickBtn:tween({
BackgroundTransparency = 0,
ImageTransparency = 0,
Length = 0.1
})
previewLight:tween({BackgroundTransparency = 0, Length = 0.1})
_previewLightIcon:tween({ImageTransparency = 0, Length = 0.1})
previewDark:tween({BackgroundTransparency = 0, Length = 0.1})
_previewDarkIcon:tween({ImageTransparency = 0, Length = 0.1})
darkener:tween({BackgroundTransparency = 0.5, Length = 0.1})
-- fade out
-- closing fade in
fadeOut = function()
holder:tween({BackgroundTransparency = 1, Length = 0.1})
_holderStroke:tween({Transparency = 1, Length = 0.1})
pickerArea:tween({BackgroundTransparency = 1, Length = 0.1})
_pickerAreaStroke:tween({Transparency = 1, Length = 0.1})
color:tween({BackgroundTransparency = 1, Length = 0.1})
brightness:tween({BackgroundTransparency = 1, Length = 0.1})
black:tween({BackgroundTransparency = 1, Length = 0.1})
_colorPickerDraggableStroke:tween({Transparency = 1, Length = 0.1})
hueArea:tween({BackgroundTransparency = 1, Length = 0.1})
_hueAreaStroke:tween({Transparency = 1, Length = 0.1})
_hueDraggableStroke:tween({Transparency = 1, Length = 0.1})
label:tween{TextTransparency = 1, Length = 0.1}
r:tween({
BackgroundTransparency = 1,
TextTransparency = 1,
Length = 0.1
})
g:tween({
BackgroundTransparency = 1,
TextTransparency = 1,
Length = 0.1
})
b:tween({
BackgroundTransparency = 1,
TextTransparency = 1,
Length = 0.1
})
pickBtn:tween({
BackgroundTransparency = 1,
ImageTransparency = 1,
Length = 0.1
})
previewLight:tween({BackgroundTransparency = 1, Length = 0.1})
_previewLightIcon:tween({ImageTransparency = 1, Length = 0.1})
previewDark:tween({BackgroundTransparency = 1, Length = 0.1})
_previewDarkIcon:tween({ImageTransparency = 1, Length = 0.1})
darkener:tween({BackgroundTransparency = 1, Length = 0.1}, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.25, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end)
end)
end
end
end
end)
end
self:_resize_tab()
end
function Library:credit(options) options = self:set_defaults({ Name = "Creditor", Description = nil }, options) options.V3rmillion = options.V3rmillion or options.V3rm
local creditContainer = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0):object("Frame", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)
}):round(7)
local name = creditContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and 5) or 0),
Size = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 1, 0),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local description = creditContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 27),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 20),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
end
if setclipboard then
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local githubContainer = creditContainer:object("TextButton", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(24, 24),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -8, 1, -8),
Theme = {BackgroundColor3 = {"Main", 10}}
}):round(5):tooltip("copy github")
local github = githubContainer:object("ImageLabel", {
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -4, 1, -4),
Centered = true,
BackgroundTransparency = 1
}):round(100)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
setclipboard(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
end)
end
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local discordContainer = creditContainer:object("TextButton", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(24, 24),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -8, 1, -8),
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(88, 101, 242)
}):round(5):tooltip("copy discord")
local discord = discordContainer:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -6, 1, -6),
Centered = true,
BackgroundTransparency = 1
})
local tr = discord:object("ImageLabel", {
BackgroundTransparency = 1,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0, 0.5, 0),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 0, -0),
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
ScaleType = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local tl = discord:object("ImageLabel", {
BackgroundTransparency = 1,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0, 0.5, 0),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0, -0),
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
ScaleType = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local bl = discord:object("ImageLabel", {
BackgroundTransparency = 1,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0, 0.5, 0),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 1, 0),
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
ScaleType = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local br = discord:object("ImageLabel", {
BackgroundTransparency = 1,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0, 0.5, 0),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 1, 0),
ImageColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(255, 255, 255),
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
ScaleType = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
setclipboard(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
end)
end
if options.V3rmillion then
local v3rmillionContainer = creditContainer:object("TextButton", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(24, 24),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -40, 1, -8),
Theme = {BackgroundColor3 = {"Main", 10}}
}):round(5):tooltip("copy v3rm")
local v3rmillion = v3rmillionContainer:object("ImageLabel", {
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -4, 1, -4),
Centered = true,
BackgroundTransparency = 1
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
setclipboard(options.V3rmillion)
end)
end
end
self._resize_tab({
container = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
layout = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
end
function Library:_theme_selector()
local themesCount = 0
for _ in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do
themesCount += 1
end
local themeContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("Frame", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 127)
}):round(7)
local text = themeContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 5),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22),
Text = "Theme",
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local colorThemesContainer = themeContainer:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 1, -32),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0, 1, -5),
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 1)
})
local grid = colorThemesContainer:object("UIGridLayout", {
CellPadding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 10),
CellSize = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(102, 83),
VerticalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
colorThemesContainer:object("UIPadding", {
PaddingLeft = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10),
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5)
})
for themeName, themeColors in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do
local count = 0
for _, color in next, themeColors do
if not (type(color) == "boolean") then
count += 1
end
end
if count >= 5 then
local theme = colorThemesContainer:object("TextButton", {
BackgroundTransparency = 1
})
local themeColorsContainer = theme:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 1, -20),
BackgroundTransparency = 1
}):round(5):stroke("WeakText", 1)
local themeNameLabel = theme:object("TextLabel", {
BackgroundTransparency = 1,
Text = themeName,
TextSize = 16,
Theme = {TextColor3 = "StrongText"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 0, 20),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1)
})
local colorMain = themeColorsContainer:object("Frame", {
Centered = true,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}):round(4)
local colorSecondary = colorMain:object("Frame", {
Centered = true,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -16, 1, -16),
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}):round(4)
colorSecondary:object("UIListLayout", {
Padding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5)
})
colorSecondary:object("UIPadding", {
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5),
PaddingLeft = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5)
})
local colorTertiary = colorSecondary:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 9),
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}):round(100)
local colorStrong = colorSecondary:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -30, 0, 9),
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}):round(100)
local colorTertiary = colorSecondary:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -40, 0, 9),
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}):round(100)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
Library:change_theme(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0[themeName])
updateSettings("Theme", themeName)
end)
end
end
self:_resize_tab()
end
function Library:keybind(options) options = self:set_defaults({ Name = "Keybind", Keybind = nil, Description = nil, Callback = function() end }, options)
local keybindContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)
}):round(7)
local text = keybindContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and 5) or 0),
Size = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 1, 0),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local description = keybindContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 27),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 20),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
end
local keybindDisplay = keybindContainer:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
Theme = {
BackgroundColor3 = {"Secondary", -20},
TextColor3 = "WeakText"
},
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20,0, 16),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 50,0, 20),
TextSize = 12,
Text = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and tostring(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0):upper()) or "?"
}):round(5):stroke("Tertiary")
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20)
do
local hovered = false
local down = false
local listening = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
keybindContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
keybindContainer:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
keybindContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
keybindContainer:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key, gameProcessed)
if listening and not UserInputService:GetFocusedTextBox() then
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 ~= https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
end
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and tostring(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0):upper()) or "?"
keybindDisplay:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20), Length = 0.05}
listening = false
end
else
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
end
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
if not listening then listening = true; https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = "..." end
end)
end
self:_resize_tab()
local methods = {}
function methods:Set(keycode)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = keycode
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and tostring(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0):upper()) or "?"
keybindDisplay:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20), Length = 0.05}
end
return methods
end
function Library:prompt(options) options = self:set_defaults({ Followup = false, Title = "Prompt", Text = "yo momma dead", Buttons = { ok = function() return true end } }, options)
if Library._promptExists and not https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then return end
Library._promptExists = true
local count = 0; for a, _ in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do
count += 1
end
local darkener = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("Frame", {
BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0, 0),
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1)
}):round(10)
local promptContainer = darkener:object("Frame", {
Theme = {BackgroundColor3 = "Main"},
BackgroundTransparency = 1,
Centered = true,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(200, 120)
}):round(6)
local _promptContainerStroke = promptContainer:object("UIStroke", {
Theme = {Color = "Tertiary"},
ApplyStrokeMode = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Transparency = 1
})
local _padding = promptContainer:object("UIPadding", {
PaddingTop = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5),
PaddingLeft = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5),
PaddingBottom = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5),
PaddingRight = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 5)
})
local promptTitle = promptContainer:object("TextLabel", {
BackgroundTransparency = 1,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0, 0, 20),
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Font = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
Theme = {TextColor3 = {"Tertiary", 15}},
TextSize = 16,
TextTransparency = 1
})
local promptText = promptContainer:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0,0, 26),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20,1, -60),
TextSize = 14,
Theme = {TextColor3 = "StrongText"},
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextTransparency = 1,
TextYAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextWrapped = true,
TextTruncate = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local buttonHolder = promptContainer:object("Frame", {
BackgroundTransparency = 1,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 0,1, -5),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0,0, 20)
})
local _gridButtonHolder = buttonHolder:object("UIGridLayout", {
CellPadding = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10,0, 5),
CellSize = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1/count, -10, 1, 0),
FillDirection = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
HorizontalAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
darkener:tween({BackgroundTransparency = 0.4, Length = 0.1})
promptContainer:tween({BackgroundTransparency = 0, Length = 0.1})
promptTitle:tween({TextTransparency = 0, Length = 0.1})
_promptContainerStroke:tween({Transparency = 0, Length = 0.1})
promptText:tween({TextTransparency = 0, Length = 0.1})
local _temporaryPromptButtons = {}
for text, callback in next, https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 do
local button = buttonHolder:object("TextButton", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 1),
Theme = {BackgroundColor3 = "Tertiary"},
Text = tostring(text):upper(),
TextSize = 13,
Font = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
BackgroundTransparency = 1,
TextTransparency = 1
}):round(4)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(_temporaryPromptButtons, button)
do
button:tween({TextTransparency = 0, BackgroundTransparency = 0})
local hovered = false
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
button:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
button:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
button:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
button:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
promptContainer:tween({BackgroundTransparency = 1, Length = 0.1})
promptTitle:tween({TextTransparency = 1, Length = 0.1})
_promptContainerStroke:tween({Transparency = 1, Length = 0.1})
promptText:tween({TextTransparency = 1, Length = 0.1})
for i, b in next, _temporaryPromptButtons do
b:tween({TextTransparency = 1, BackgroundTransparency = 1, Length = 0.1})
end
darkener:tween({BackgroundTransparency = 1, Length = 0.1}, function()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0()
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.25, function()
Library._promptExists = false
end)
callback()
end)
end)
end
end
end
function Library:cp(options) return https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(self, options) end function Library:colorpicker(options) return https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(self, options) end
function Library:slider(options) options = self:set_defaults({ Name = "Slider", Default = 50, Min = 0, Max = 100, Callback = function() end }, options)
local sliderContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 56)
}):round(7)
local text = sliderContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 5),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local description = sliderContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 27),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 20),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 76)
end
local valueText = sliderContainer:object("TextLabel", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
Theme = {
BackgroundColor3 = {"Secondary", -20},
TextColor3 = "WeakText"
},
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -10, 0, 10),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 50,0, 20),
TextSize = 12,
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
}):round(5):stroke("Tertiary")
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20)
local sliderBar = sliderContainer:object("Frame", {
Theme = {BackgroundColor3 = {"Secondary", -20}},
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 1),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 5),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0, 1, -12)
}):round(100)
local sliderLine = sliderBar:object("Frame", {
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(((https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)), 1),
Theme = {BackgroundColor3 = "Tertiary"}
}):round(100)
local sliderBall = sliderLine:object("Frame", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, 0.5),
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0.5),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(14, 14),
Theme = {BackgroundColor3 = {"Tertiary", 20}}
}):round(100)
do
local hovered = false
local down = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = true
sliderContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
sliderContainer:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function(key)
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
down = false
sliderContainer:tween{BackgroundColor3 = (hovered and self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
sliderContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 20)}
down = true
local tween = valueText:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20)}
while https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() and down do
local percentage = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0((Mouse.X - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 0, 1)
local value = ((https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) * percentage) + https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
value = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(value)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = value
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 == https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
tween = valueText:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20)}
end
sliderLine:tween{
Length = 0.06,
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(percentage, 1)
}
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(value)
end
end)
end
self:_resize_tab()
local methods = {}
function methods:Set(value)
sliderLine:tween{Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(((value - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0) / (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 - https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)), 1)}
end
return methods
end
function Library:textbox(options) options = self:set_defaults({ Name = "Text Box", Placeholder = "Type something..", Description = nil, Callback = function(t) end }, options)
local textboxContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52)
}):round(7)
local text = textboxContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and 5) or 0),
Size = (https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22)) or https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 1, 0),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
if https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 then
local description = textboxContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 27),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 20),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
end
local textBox = textboxContainer:object("TextBox", {
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0),
Theme = {
BackgroundColor3 = {"Secondary", -20},
TextColor3 = "WeakText"
},
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -50,0, 16),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 50,0, 20),
TextSize = 12,
PlaceholderText = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
ClipsDescendants = true
}):round(5):stroke("Tertiary")
local writeIcon = textboxContainer:object("ImageLabel", {
Image = "https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0",
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, 0.5),
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -13, 0.5, 0),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 16, 0, 16),
Theme = {ImageColor3 = "StrongText"}
})
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 20)
do
local hovered = false
local down = false
local focused = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
textboxContainer:tween{BackgroundColor3 = self:lighten(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0, 10)}
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
hovered = false
if not down then
textboxContainer:tween{BackgroundColor3 = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0}
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
focused = true
while focused and https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0() do
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 0, 0.5 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 20),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
0.1,
true
)
end
end)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(function()
focused = false
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 + 20, 0, 0.5 * https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0), 20),
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
0.1,
true
)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0)
end)
end
self:_resize_tab()
local methods = {}
function methods:Set(text)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = text
end
return methods
end
function Library:label(options)
options = self:set_defaults({
Text = "Label title",
Description = "Label text",
}, options)
local labelContainer = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0("TextButton", {
Theme = {BackgroundColor3 = "Secondary"},
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(1, -20, 0, 52),
BackgroundTransparency = 1
}):round(7):stroke("Secondary", 2)
local text = labelContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(10, 5),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 0, 22),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 22,
Theme = {TextColor3 = "StrongText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
local description = labelContainer:object("TextLabel", {
BackgroundTransparency = 1,
Position = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 10, 1, -5),
Size = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0.5, -10, 1, -22),
Text = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0,
TextSize = 18,
AnchorPoint = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0(0, 1),
Theme = {TextColor3 = "WeakText"},
TextXAlignment = https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0
})
self:_resize_tab()
local methods = {}
function methods:SetText(txt)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = txt
end
function methods:SetDescription(txt)
https://github.com/Skygodhee1/gui.lua/releases/tag/v2.0 = txt
end
return methods
end
return setmetatable(Library, { __index = function(_, i) return rawget(Library, i:lower()) end })