repo stringclasses 302
values | file_path stringlengths 18 241 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 76 697k | tokens int64 10 271k |
|---|---|---|---|---|---|
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/examples/matter/src/shared/start.luau | luau | .luau | local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Packages = ReplicatedStorage.Packages
local Matter = require(ReplicatedStorage.Packages.Matter)
local Plasma = require(Packages.Plasma)
local... | 594 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/examples/matter/src/shared/systems/updateModelAttribute.luau | luau | .luau | local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local components = require(ReplicatedStorage.Shared.components)
local name = RunService:IsServer() and "serverEntityId" or "clientEntityId"
local function updateModelAttribute(world)
for id, record in worl... | 102 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/Connection.luau | luau | .luau | type ConnectionImpl = {
__index: ConnectionImpl,
_callback: <U...>(U...) -> (),
connected: boolean,
disconnect: (Connection) -> (),
reconnect: (Connection) -> (),
new: <U...>(callback: (U...) -> ()) -> Connection,
}
export type Connection = typeof(setmetatable({} :: ConnectionImpl, {} :: ConnectionImpl))
--[... | 296 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/Identifier.luau | luau | .luau | local identifier = require("@serdes/datatypes/custom/identifier")
export type Identifier = buffer
local function new(uniquePosition: number?): buffer
return identifier.serialize(uniquePosition)
end
local function read(_buffer: buffer): number
return identifier.deserialize(_buffer)
end
return {
new = new,
read = ... | 66 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/QueryResult.luau | luau | .luau | local Bridge = require("@yetanothernet/Bridge")
type Bridge = Bridge.Bridge
type Recipient = Bridge.Recipient
type IncomingPacket = Bridge.IncomingPacket
type OutgoingPacket = Bridge.OutgoingPacket
type IncomingQueue = Bridge.IncomingQueue
type OutgoingQueue = Bridge.OutgoingQueue
type NetServer = Bridge.NetServer
... | 1,472 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/SendRequest.luau | luau | .luau | local RunService = game:GetService("RunService")
local Bridge = require("@yetanothernet/Bridge")
type Bridge = Bridge.Bridge
type Recipient = Bridge.Recipient
type IncomingPacket = Bridge.IncomingPacket
type OutgoingPacket = Bridge.OutgoingPacket
type IncomingQueue = Bridge.IncomingQueue
type OutgoingQueue = Bridge.... | 392 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/__mocks__/mockBridge.luau | luau | .luau | --!nonstrict
local root = script.Parent.Parent
local Bridge = require(root.Bridge)
local utils = root.__utils__
local mockRemoteEvents = require(utils.mockRemoteEvents)
local mockPlayers = require(utils.mockPlayers)
local ServerRemoteEvent = mockRemoteEvents.ServerRemoteEvent
local ClientRemoteEvent = mockRemoteEvent... | 331 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/__tests__/Bridge.test.luau | luau | .luau | local JestGlobals = require("@dev-packages/JestGlobals")
local Bridge = require("@yetanothernet/Bridge")
local beforeAll = JestGlobals.beforeAll
local describe = JestGlobals.describe
local expect = JestGlobals.expect
local test = JestGlobals.test
local jest = JestGlobals.jest
local root = script.Parent.Parent
local Br... | 1,381 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/__tests__/Identifier.test.luau | luau | .luau | local JestGlobals = require("@dev-packages/JestGlobals")
local describe = JestGlobals.describe
local expect = JestGlobals.expect
local it = JestGlobals.it
local Identifier = require("@yetanothernet/Identifier")
describe("Identifier", function()
it("Should return unique strings", function()
local identifierOne = Id... | 147 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/__tests__/Route.test.luau | luau | .luau | local Net = require("@yetanothernet")
local JestGlobals = require("@dev-packages/JestGlobals")
local beforeAll = JestGlobals.beforeAll
local afterEach = JestGlobals.afterEach
local beforeEach = JestGlobals.beforeEach
local describe = JestGlobals.describe
local expect = JestGlobals.expect
local test = JestGlobals.test
l... | 1,377 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/__tests__/SendRequest.test.luau | luau | .luau | local JestGlobals = require("@dev-packages/JestGlobals")
local describe = JestGlobals.describe
local test = JestGlobals.test
local Identifier = require("@yetanothernet/Identifier")
local SendRequest = require("@yetanothernet/SendRequest")
describe("SendRequest", function()
test("When calling `to()`, should modify th... | 174 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/__tests__/serdes.test.luau | luau | .luau | local Workspace = game:GetService("Workspace")
local JestGlobals = require("@dev-packages/JestGlobals")
local expect = JestGlobals.expect
local describe = JestGlobals.describe
local test = JestGlobals.test
local root = script.Parent.Parent
local typeToValue = {
array = { 1, 2, 3 },
dictionary = {
a = 1,
b = 2,... | 1,009 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/__utils__/mockPlayers.luau | luau | .luau | local mockedPlayers = {}
function createPlayer()
local n = #mockedPlayers + 1
table.insert(mockedPlayers, {
__type = "Player",
Name = `MockPlayer{n}`,
UserId = -n,
})
return mockedPlayers[n]
end
function getAllPlayers()
return mockedPlayers
end
return {
createPlayer = createPlayer,
getAllPlayers = getA... | 85 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/__utils__/mockRemoteEvents.luau | luau | .luau | --!nocheck
local Signal = require("@dev-packages/Signal")
local clientRemotes = {}
local serverRemotes = {}
local ClientRemoteEvent = {}
ClientRemoteEvent.__index = ClientRemoteEvent
local mockPlayers = require("@yetanothernet/__utils__/mockPlayers")
function ClientRemoteEvent:FireServer(...: any)
local container... | 656 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/custom/identifier.luau | luau | .luau | --!native
local BUFFER_SIZE = 2
local nextIdentifier = 1
local function serialize(position: number?): buffer
if not position then
position = nextIdentifier
nextIdentifier += 1
end
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writeu16(_buffer, 0, position :: number)
return _buffer
end
local function ... | 128 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/primitive/boolean.luau | luau | .luau | --!native
local BUFFER_SIZE = 1
local _true = buffer.create(BUFFER_SIZE)
buffer.writei8(_true, 0, 1)
local _false = buffer.create(BUFFER_SIZE)
buffer.writei8(_false, 0, 0)
local _nil = buffer.create(BUFFER_SIZE)
buffer.writei8(_nil, 0, -1)
local function serialize(bool: boolean?): buffer
if bool == true then
re... | 188 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/primitive/buffer.luau | luau | .luau | --!native
--[[
This exists purely to add support for buffers into
Arrays, Dictionaries, and other custom types which may
contain a buffer.
Instead of defining unique behavior for buffers, this
module allows us to use the prexisting framework for
serializing/deserializing datatypes for buffers.... | 122 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/primitive/number.luau | luau | .luau | --!native
local BUFFER_SIZE = 4
local function serialize(number: number): buffer
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writef32(_buffer, 0, number)
return _buffer
end
local function deserialize(_buffer: buffer): number
return buffer.readf32(_buffer, 0)
end
return {
serialize = serialize,
deseriali... | 94 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/primitive/string.luau | luau | .luau | --!native
local function serialize(_string: string): buffer
return buffer.fromstring(_string)
end
local function deserialize(_buffer: buffer): string
return buffer.tostring(_buffer)
end
return {
serialize = serialize,
deserialize = deserialize,
id = 5,
}
| 60 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/BrickColor.luau | luau | .luau | --!native
local BUFFER_SIZE = 2
local brickColorCache = {}
local function serialize(color: BrickColor): buffer
if brickColorCache[color.Number] then
return brickColorCache[color.Number]
end
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writeu16(_buffer, 0, color.Number)
brickColorCache[color.Number] = _... | 143 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/CFrame.luau | luau | .luau | --!native
local BUFFER_SIZE = 48
local function serialize(cframe: CFrame): buffer
local _buffer = buffer.create(BUFFER_SIZE)
local x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = cframe:GetComponents()
buffer.writef32(_buffer, 0, x)
buffer.writef32(_buffer, 4, y)
buffer.writef32(_buffer, 8, z)
buffer.wri... | 468 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Color3.luau | luau | .luau | --!native
local BUFFER_SIZE = 12
local function serialize(color: Color3): buffer
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writef32(_buffer, 0, color.R)
buffer.writef32(_buffer, 4, color.G)
buffer.writef32(_buffer, 8, color.B)
return _buffer
end
local function deserialize(_buffer: buffer): Color3
loca... | 161 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/DateTime.luau | luau | .luau | --!native
local BUFFER_SIZE = 8
local function serialize(dateTime: DateTime): buffer
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writef64(_buffer, 0, dateTime.UnixTimestampMillis)
return _buffer
end
local function deserialize(_buffer: buffer): DateTime
return DateTime.fromUnixTimestampMillis(buffer.readf64... | 103 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/EnumItem.luau | luau | .luau | --!native
local enumMap = {}
for _, enum in Enum:GetEnums() do
enumMap[tostring(enum)] = {}
for _, enumItem in enum:GetEnumItems() do
enumMap[tostring(enum)][enumItem.Value] = enumItem
end
end
local enumItemCache = {}
local function serialize(enumItem: EnumItem): buffer
if enumItemCache[enumItem] then
retur... | 257 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Instance.luau | luau | .luau | --!native
local BUFFER_SIZE = 4
local nextIdentifer = 1
local instanceMap: { [number]: Instance } = {}
local function setIdentifier(identifier: number, instance: Instance)
instanceMap[tonumber(identifier) :: number] = instance
end
local function getInstanceMap()
return table.freeze(table.clone(instanceMap))
end
... | 222 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Rect.luau | luau | .luau | --!native
local vector2 = require("@serdes/datatypes/userdata/Vector2")
local BUFFER_SIZE = vector2.size * 2
local function serialize(rect: Rect): buffer
local min = vector2.serialize(rect.Min)
local max = vector2.serialize(rect.Max)
local _buffer = buffer.create(BUFFER_SIZE)
buffer.copy(_buffer, 0, min, 0, vec... | 226 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Region3.luau | luau | .luau | --!native
local cframe = require("@serdes/datatypes/userdata/CFrame")
local vector3 = require("@serdes/datatypes/userdata/Vector3")
local BUFFER_SIZE = cframe.size + vector3.size
local function serialize(region: Region3): buffer
local _cframe = cframe.serialize(region.CFrame)
local size = vector3.serialize(region.... | 283 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Region3int16.luau | luau | .luau | --!native
local vector3int16 = require("@serdes/datatypes/userdata/Vector3int16")
local BUFFER_SIZE = vector3int16.size * 2
local function serialize(region: Region3int16): buffer
local min = vector3int16.serialize(region.Min)
local max = vector3int16.serialize(region.Max)
local _buffer = buffer.create(BUFFER_SIZ... | 262 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/TweenInfo.luau | luau | .luau | --!native
local enumItem = require("@serdes/datatypes/userdata/EnumItem")
local number = require("@serdes/datatypes/primitive/number")
local boolean = require("@serdes/datatypes/primitive/boolean")
local _string = require("@serdes/datatypes/primitive/string")
local PARTIAL_BUFFER_SIZE = (number.size * 3) + boolean.si... | 866 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/UDim.luau | luau | .luau | --!native
local BUFFER_SIZE = 8
local function serialize(udim: UDim): buffer
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writef32(_buffer, 0, udim.Scale)
buffer.writeu32(_buffer, 4, udim.Offset)
return _buffer
end
local function deserialize(_buffer: buffer): UDim
local scale = buffer.readf32(_buffer, 0)
... | 137 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/UDim2.luau | luau | .luau | --!native
local udim = require("@serdes/datatypes/userdata/UDim")
local BUFFER_SIZE = udim.size * 2
local function serialize(_udim: UDim2): buffer
local x = udim.serialize(_udim.X)
local y = udim.serialize(_udim.Y)
local _buffer = buffer.create(BUFFER_SIZE)
buffer.copy(_buffer, 0, x)
buffer.copy(_buffer, udim.... | 221 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Vector2.luau | luau | .luau | --!native
local BUFFER_SIZE = 8
local function serialize(vector: Vector2): buffer
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writef32(_buffer, 0, vector.X)
buffer.writef32(_buffer, 4, vector.Y)
return _buffer
end
local function deserialize(_buffer: buffer): Vector2
local x = buffer.readf32(_buffer, 0)
... | 133 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Vector2int16.luau | luau | .luau | --!native
local BUFFER_SIZE = 4
local function serialize(vector: Vector2int16): buffer
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writei16(_buffer, 0, vector.X)
buffer.writei16(_buffer, 2, vector.Y)
return _buffer
end
local function deserialize(_buffer: buffer): Vector2int16
local x = buffer.readi16(_bu... | 139 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Vector3.luau | luau | .luau | --!native
local BUFFER_SIZE = 12
local function serialize(vector: Vector3): buffer
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writef32(_buffer, 0, vector.X)
buffer.writef32(_buffer, 4, vector.Y)
buffer.writef32(_buffer, 8, vector.Z)
return _buffer
end
local function deserialize(_buffer: buffer): Vector3... | 161 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/datatypes/userdata/Vector3int16.luau | luau | .luau | --!native
local BUFFER_SIZE = 6
local function serialize(vector: Vector3int16): buffer
local _buffer = buffer.create(BUFFER_SIZE)
buffer.writei16(_buffer, 0, vector.X)
buffer.writei16(_buffer, 2, vector.Y)
buffer.writei16(_buffer, 4, vector.Z)
return _buffer
end
local function deserialize(_buffer: buffer): Vec... | 167 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/lib/serdes/init.luau | luau | .luau | local array = require("@serdes/datatypes/custom/array")
local dictionary = require("@serdes/datatypes/custom/dictionary")
local boolean = require("@serdes/datatypes/primitive/boolean")
local number = require("@serdes/datatypes/primitive/number")
local _string = require("@serdes/datatypes/primitive/string")
local Bric... | 470 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/tests/jest.config.luau | luau | .luau | local Workspace = script.Parent
-- In case we need to specify a custom testSetupFile for a project, we need to do that in in a separate jest.config.lua file that's in the project's root folder.
-- Therefore we specify the project here and provide it to the "projects" field in this config file.
-- We also need to add t... | 209 |
YetAnotherClown/YetAnotherNet | YetAnotherClown-YetAnotherNet-a8f8f7e/tests/startJest.server.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Jest = require("@dev-packages/Jest")
Jest.runCLI(
script,
{
testPathPattern = { "\\.test$" },
testPathIgnorePatterns = { "DevPackages" },
verbose = true,
} :: any,
{
ReplicatedStorage,
}
):await()
| 79 |
g0ofycat/Match | g0ofycat-Match-5add5ed/Match/modules/helpers/PlayerLocation.luau | luau | .luau | --!strict
local PlayerLocation = {}
--=========================
-- // SERVICES
--=========================
local LocalizationService = game:GetService("LocalizationService")
--=========================
-- // DATA
--=========================
PlayerLocation.continentMap = {
-- // Africa (AF)
["DZ"] = "AF", ["AO"] ... | 1,903 |
g0ofycat/Match | g0ofycat-Match-5add5ed/Match/modules/helpers/Settings.luau | luau | .luau | --!strict
local Settings = {}
Settings.Matches = {
-- // MATCHMAKING
MATCHMAKING_DURATION = 300, -- // How long the player is in matchmaking before removing them
CHECK_MATCHMAKING_INTERVALS = 5, -- // How fast to check for matches
CACHE_CLEANUP_INTERVAL = 300, -- // How fast cached data gets cleaned up
CROSS_SE... | 462 |
g0ofycat/Match | g0ofycat-Match-5add5ed/Match/modules/helpers/Signal.luau | luau | .luau | --!strict
local Signal = {}
Signal.__index = Signal
--=========================
-- // TYPES
--=========================
export type Connection = {
Disconnect: (self: Connection) -> (),
IsConnected: (self: Connection) -> boolean,
}
export type SignalData = {
_listeners: { [number]: (...any) -> () },
... | 605 |
g0ofycat/Match | g0ofycat-Match-5add5ed/Match/modules/sub_modules/CrossServerManager.luau | luau | .luau | --!strict
local CrossServerManager = {}
--=========================
-- // SERVICES
--=========================
local Players = game:GetService("Players")
local MessagingService = game:GetService("MessagingService")
local HttpService = game:GetService("HttpService")
--=========================
-- // TYPES
--========... | 707 |
g0ofycat/Match | g0ofycat-Match-5add5ed/Match/modules/sub_modules/PartyManager.luau | luau | .luau | --!strict
local PartyManager = {}
--=========================
-- // SERVICES
--=========================
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
--=========================
-- // MODULES
--=========================
PartyManager.Modules = {
Settings = requi... | 2,071 |
g0ofycat/Match | g0ofycat-Match-5add5ed/Match/modules/sub_modules/QueueManager.luau | luau | .luau | --!strict
local QueueManager = {}
--=========================
-- // SERVICES
--=========================
local MemoryStoreService = game:GetService("MemoryStoreService")
local HttpService = game:GetService("HttpService")
--=========================
-- // TYPES
--=========================
local Types = require(scri... | 3,662 |
g0ofycat/Match | g0ofycat-Match-5add5ed/Match/modules/sub_modules/SharedData.luau | luau | .luau | --!strict
--=========================
-- // MODULES
--=========================
local Signal = require(script.Parent.Parent.helpers.Signal)
--=========================
-- // TYPES
--=========================
local Types = require(script.Parent.Parent.helpers.Types)
--=========================
-- // MAIN
--========... | 119 |
g0ofycat/Match | g0ofycat-Match-5add5ed/Match/modules/sub_modules/TeleportHandler.luau | luau | .luau | --!strict
local TeleportHandler = {}
--=========================
-- // SERVICES
--=========================
local Players = game:GetService("Players")
local TeleportService = game:GetService("TeleportService")
--=========================
-- // TYPES
--=========================
local Types = require(script.Parent.P... | 857 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/Tests/Demo.client.luau | luau | .luau | -- 7kayoh
-- Demo.lua
-- 07 February 2022
-- Tests out every UI component in the library
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer.PlayerGui
local Packages = ReplicatedStorage.Package... | 1,921 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/AppBarButton.luau | luau | .luau | -- 7kayoh
-- AppBarButton.lua
-- 20 February 2022
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Icons = require(Modules.Icons)
local Scheme = require(Modules.Scheme)
local IconButton = require(Components.Controls.IconButton)
return function(props)
return IconButton({
_ico... | 162 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/AppTabBarButton.luau | luau | .luau | -- 7kayoh
-- AppTabBarButton.lua
-- 21 February 2022
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Constants = require(Modules.Constants)
local Icons = require(Modules.Icons)
local Scheme = require(Mo... | 373 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/BaseButton.luau | luau | .luau | -- 7kayoh
-- TextButton.lua
-- 10 February 2022
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Constants = require(Modules.Constants)
local Scheme = require(Modules.Scheme)
local Children = Fusion.Chi... | 571 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/Checkbox.luau | luau | .luau | -- 7kayoh
-- Checkbox.lua
-- 24 March 2022
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Icons = require(Modules.Icons)
local Scheme = require(Modules.Scheme)
local BaseButton = require(Components.Con... | 437 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/ColorPicker.luau | luau | .luau | -- 7kayoh
-- ColorPicker.lua
-- 24 Apr 2024
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Slider = require(Components.Controls.Slider)
local Constants = require(Modules.Constants)
local Scheme = requi... | 1,060 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/IconButton.luau | luau | .luau | -- 7kayoh
-- IconButton.lua
-- 17 March 2022
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Scheme = require(Modules.Scheme)
local BaseButton = require(Components.Controls.BaseButton)
local New = Fus... | 254 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/IconTextButton.luau | luau | .luau | -- 7kayoh
-- IconTextButton.lua
-- 17 March 2022
local TextService = game:GetService("TextService")
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Scheme = require(Modules.Scheme)
local BaseButton = re... | 490 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/Slider.luau | luau | .luau | -- 7kayoh
-- Slider.lua
-- 2 Apr 2022
local UserInputService = game:GetService("UserInputService")
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Scheme = require(Modules.Scheme)
local Constants = req... | 943 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/TextButton.luau | luau | .luau | -- 7kayoh
-- TextButton.lua
-- 17 March 2022
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Scheme = require(Modules.Scheme)
local BaseButton = require(Components.Controls.BaseButton)
local New = Fusi... | 225 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/TextField.luau | luau | .luau | local TextService = game:GetService("TextService")
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Constants = require(Modules.Constants)
local Scheme = require(Modules.Scheme)
local Children = Fusion.C... | 1,217 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Controls/Toggle.luau | luau | .luau | -- 7kayoh
-- Toggle.lua
-- 18 February 2022
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Constants = require(Modules.Constants)
local Scheme = require(Modules.Scheme)
local BaseButton = require(Compo... | 544 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Divider.luau | luau | .luau | -- 7kayoh
-- Divider.lua
-- 03 February 2022
--[[
Divider {
AnchorPoint: Vector2?,
Size: UDim2?,
Position: UDim2?,
ZIndex: number?
} -> Frame
--]]
local Components = script.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require... | 211 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Views/AppTabBar.luau | luau | .luau | -- 7kayoh
-- BottomAppTabBar.lua
-- 21 February 2022
local Components = script.Parent.Parent
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Children = Fusion.Children
local New = Fusion.New
return function(props)
return New("Frame")({
BackgroundTransparency = 1,
ZIndex = prop... | 173 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Views/BottomAppBar.luau | luau | .luau | -- 7kayoh
-- BottomAppBar.lua
-- 07 February 2022
--[[
BottomAppBar {
ZIndex: number?,
[Fusion.Children]: {Instances}
} -> Frame
--]]
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion... | 329 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Views/ToolTip.luau | luau | .luau | -- 7kayoh
-- ToolTip.lua
-- 4 April 2022
local Components = script.Parent.Parent
local Modules = Components.Parent.Modules
local Lydie = Components.Parent
local Fusion = require(Lydie.Parent.Fusion)
local Constants = require(Modules.Constants)
local Scheme = require(Modules.Scheme)
local Shadow = require(Components.S... | 658 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Views/TopAppBar.luau | luau | .luau | -- 7kayoh
-- TopAppbar.lua
-- 03 February 2022
--[[
TopAppBar {
Icon: Value<string>|string,
Title: Value<string>|string,
Subtitle: Value<string>|string,
ZIndex: number?,
[Fusion.Children]: {Instances}
} -> Frame
--]]
local Components = script.Parent.Parent
local Modu... | 1,051 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/Views/Window.luau | luau | .luau | -- 7kayoh
-- Window.lua
-- 03 February 2022
--[[
Window {
Size: Value<UDim2>|UDim2?,
Position: Value<UDim2>|UDim2?,
ZIndex: Value<number>|number?,
Visible: Value<boolean>|boolean?,
[Fusion.Children]: {Instances}
} -> Frame
--]]
local Components = script.Parent.Parent
local... | 494 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Components/init.luau | luau | .luau | return {
Controls = {
AppBarButton = require(script.Controls.AppBarButton),
AppTabBarButton = require(script.Controls.AppTabBarButton),
BaseButton = require(script.Controls.BaseButton),
Checkbox = require(script.Controls.Checkbox),
ColorPicker = require(script.Controls.ColorP... | 196 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Modules/Constants.luau | luau | .luau | local EnumList = require(script.Parent.EnumList)
local rect256 = Rect.new(Vector2.new(256, 256), Vector2.new(256, 256))
return {
BottomRounded = EnumList.new("BottomRounded", {
Center = rect256,
Id = "rbxassetid://8858987793",
}),
Rounded = EnumList.new("Rounded", {
Center = rect256,
Id = "rbxassetid://88... | 316 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Modules/EnumList.luau | luau | .luau | -- bubba_biga
-- EnumList.lua
-- 17 January 2022
--[[
EnumList.new(name: string, enumTable: table {[string]: any}) --> Enum
EnumList.IsA(self: any) --> boolean
EnumList.GetEnums() --> table
[EnumList instance only]:
EnumList:IsEnumItem(enumItem: any) --> boolean
EnumList:GetEnumItems() --> table {[string]: an... | 431 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Modules/Scheme/Schemes/Dark.luau | luau | .luau | -- 7kayoh
-- Dark.lua
-- 03 February 2022
return {
Elevation = {
Color3.fromRGB(0, 0, 0),
Color3.fromRGB(20, 20, 20),
Color3.fromRGB(25, 25, 25),
Color3.fromRGB(30, 30, 30),
},
Typography = {
HeroLarge = { Font = Enum.Font.GothamBold, Size = 28 },
Hero = { Font = Enum.Font.GothamMedium, Size = 25 },
He... | 629 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Modules/Scheme/Schemes/Light.luau | luau | .luau | -- 7kayoh
-- Light.lua
-- 03 February 2022
return {
Elevation = {
Color3.fromRGB(200, 200, 200),
Color3.fromRGB(245, 245, 245),
Color3.fromRGB(250, 250, 255),
Color3.fromRGB(255, 255, 255),
},
Typography = {
HeroLarge = { Font = Enum.Font.GothamBold, Size = 28 },
Hero = { Font = Enum.Font.GothamMedium, S... | 629 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Modules/Scheme/Schemes/SolarizedDark.luau | luau | .luau | -- 7kayoh
-- SolarizedDark.lua
-- 03 February 2022
return {
Elevation = {
Color3.fromHex("002b36"),
Color3.fromHex("002b36"),
Color3.fromHex("073642"),
Color3.fromHex("073642"),
},
Typography = {
HeroLarge = { Font = Enum.Font.Ubuntu, Size = 28 },
Hero = { Font = Enum.Font.Ubuntu, Size = 25 },
Header =... | 568 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Modules/Scheme/init.luau | luau | .luau | -- bubba_biga
-- Scheme.lua
-- 03 February 2022
--[[
Scheme.Schemes: EnumList
Scheme.Current: string
Scheme.Switch(enumScheme: string) --> void
]]
-- :( why wally
local Scheme = {} :: {
Switch: (string) -> (),
SetAccent: (Color3|Fusion.Value<Color3>) -> (),
_updateScheme: ({ any }, { any }) -> (),
_... | 582 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/Modules/init.luau | luau | .luau | return {
Scheme = require(script.Scheme),
Constants = require(script.Constants),
EnumList = require(script.EnumList),
Icons = require(script.Icons),
SharedStates = require(script.SharedStates)
} | 43 |
7kayoh/Lydie | 7kayoh-Lydie-f45aead/src/init.luau | luau | .luau | return {
Components = require(script.Components),
Modules = require(script.Modules),
} | 18 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/CPTest/CPTest.server.luau | luau | .luau | --!strict
-- Plugin that exposes the ColorPane API script for testing
local ColorPane = script.Parent.ColorPane
require(ColorPane)(plugin, "CPTester")
local APIScript = ColorPane.API
APIScript.Parent = game:GetService("Workspace")
APIScript.Archivable = false
plugin.Unloading:Connect(function()
APIScript:Destroy... | 80 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/API.luau | luau | .luau | --!strict
--[[
The ColorPane API.
Please refer to the documentation for the available API
members.
]]
local root = script.Parent
local Common = root.Common
local CommonModules = Common.Modules
local CommonEnums = require(CommonModules.Enums)
local Constants = require(CommonModules.Constants)
local Pl... | 4,616 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ButtonBar.luau | luau | .luau | -- A container for multiple buttons, where one button is selected at a time
local Common = script.Parent.Parent.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local CommonIncludes = Common.Includes
local Cryo = require(CommonIncludes.Cryo)
local Roact = require(CommonIncludes.... | 1,446 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorBrewerPalettes.luau | luau | .luau | -- Palette page for ColorBrewer palettes
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Color = require(CommonIncludes.Color)... | 1,388 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorEditor.luau | luau | .luau | -- The entire color editor interface
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Color = require(CommonIncludes.Color).Co... | 4,010 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorGrids.luau | luau | .luau | -- A grid of colors
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local CommonIncludes = Common.Includes
local Roact = require(CommonIncludes.RoactRodux.Roact)
local CommonComponents = Common.Components
local Button = req... | 1,739 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorInfo.luau | luau | .luau | -- A page containing information in different formats about a color
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Color = re... | 3,043 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorSorter.luau | luau | .luau | -- A page for sorting colors based on their ΔE* to another color
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Color = requi... | 1,478 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorToolPages.luau | luau | .luau | --[[
A Pages container for the Color Information, Color Sorter,
Color Variations, and Gradient Pickers pages
]]
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local R... | 505 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorVariations.luau | luau | .luau | -- A page showing variations of a color
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Color = require(CommonIncludes.Color).... | 1,301 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorWheel.luau | luau | .luau | --[[
A color picker containing a hue ring and saturation-value plane
with color harmony guides
]]
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local CommonIncludes = Common.Includes
local Color = require(CommonInc... | 4,335 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ExportPalette.luau | luau | .luau | -- A page for exporting a palette
local HttpService = game:GetService("HttpService")
local Selection = game:GetService("Selection")
local ServerStorage = game:GetService("ServerStorage")
---
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(Commo... | 2,054 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/FirstTimeSetup.luau | luau | .luau | -- An informational page shown when launching ColorPane for the first time
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Roa... | 706 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GradientEditor.luau | luau | .luau | -- The entire gradient editor interface
local TextService = game:GetService("TextService")
---
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local CommonEnums = require(CommonModules.Enums)
local Constants = require(CommonModules.Constants)
local Style = require(C... | 8,641 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GradientInfo.luau | luau | .luau | -- A page showing the editing metadata for a gradient
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Constants = require(CommonModules.Constants)
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonInclud... | 3,275 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GradientPalette.luau | luau | .luau | -- A page showing a palette of gradients
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Gradient = require(CommonIncludes.Col... | 3,860 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GradientPickers.luau | luau | .luau | -- A page for picking colors from gradients
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local CommonIncludes = Common.Includes
local Gradient = require(CommonIncludes.Color).Gradient
local Roact = require(CommonIncludes.... | 1,812 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GreyscaleSliderPage.luau | luau | .luau | -- RGB slider page for monochrome colors
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Color = require(CommonIncludes.Color)... | 991 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/NamePalette.luau | luau | .luau | -- Palette naming dialog page
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Roact = require(CommonIncludes.RoactRodux.Roact)... | 1,561 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/Pages.luau | luau | .luau | --[[
A container for multiple pages which can be selected with a dropdown,
and also contains a button for showing page options
]]
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local CommonIncludes = Common.Includes... | 515 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/Palette.luau | luau | .luau | -- A color palette
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Color = require(CommonIncludes.Color).Color
local Roact = r... | 2,131 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/PaletteColorGrid.luau | luau | .luau | -- A color palette where the colors are shown in a grid
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Roact = require(Common... | 1,219 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/PaletteColorList.luau | luau | .luau | -- A color palette where the colors are shown in a list
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local CommonIncludes = Common.Includes
local Roact = require(CommonIncludes.RoactRodux.Roact)
local CommonComponents = ... | 2,095 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/PalettePages.luau | luau | .luau | -- A Pages container for all the built-in and user palettes
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local CommonEnums = require(CommonModules.Enums)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.Includes
local Cryo = requir... | 2,221 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/RemovePalette.luau | luau | .luau | -- A dialog for removing a palette
local TextService = game:GetService("TextService")
---
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local Translator = require(CommonModules.Translator)
local CommonIncludes = Common.I... | 1,252 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/Selection.luau | luau | .luau | -- A selection button and list
local root = script.Parent.Parent
local Common = root.Common
local CommonModules = Common.Modules
local Style = require(CommonModules.Style)
local CommonIncludes = Common.Includes
local Roact = require(CommonIncludes.RoactRodux.Roact)
local CommonComponents = Common.Components
local B... | 2,540 |
Blupo/ColorPane | Blupo-ColorPane-e0e4760/projects/ColorPane/Components/SimpleList.luau | luau | .luau | -- A simple list of elements
local Common = script.Parent.Parent.Common
local CommonIncludes = Common.Includes
local Roact = require(CommonIncludes.RoactRodux.Roact)
local CommonComponents = Common.Components
local ConnectTheme = require(CommonComponents.ConnectTheme)
local StandardComponents = CommonComponents.Sta... | 1,077 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.