repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
wrello/Plums
wrello-Plums-16119f5/Plums/PlumsClient/init.luau
luau
.luau
--[[ comdoc "Plums Client" 1 LastUpdated [ Methods ] :Init() Initializes the library. Must do once on client + server before anything else. :AwaitInitialized() Yields until the library has been initialized (waits for an ':Init()' call). :WaitForPlum(plumId : number, debugTag : string?) ...
2,189
wrello/Plums
wrello-Plums-16119f5/Plums/PlumsServer/init.luau
luau
.luau
--[[ comdoc "Plums Server" 2 LastUpdated [ Constructor ] .new(plumClassName : string, plumData : {}?) -> Plum Creates a new plum of 'plumClassName' with plum.Data set to 'plumData'. ```lua local playerPlum = Plums.new("Player", { Money = 100 }):AddClients(player) -- This method chaining appro...
1,180
wrello/Plums
wrello-Plums-16119f5/Plums/Util/Await.luau
luau
.luau
-- v1.5.2 local Signal = require(script.Parent.Signal) type EventWithSettingsType = {} -- {RBXScriptSignal, WinnerKey?, ...any?} type TimeoutType = (number | RBXScriptSignal)? local DEBUG_PRINTS = false local WINNER_KEY_FLAG = "winner key" local ALL_ARGUMENTS_CHECK_FLAG = "all arguments check" local removed_from_ga...
1,435
wrello/Plums
wrello-Plums-16119f5/Plums/Util/ClientReady.luau
luau
.luau
-- v3.0.0 local RunService = game:GetService("RunService") local Promise = require(script.Parent.Promise) local Await = require(script.Parent.Await) local remoteEvent if RunService:IsClient() then remoteEvent = script:WaitForChild("RemoteEvent") else remoteEvent = Instance.new("RemoteEvent", script) end local DEF...
1,406
wrello/Plums
wrello-Plums-16119f5/Plums/Util/Maid.luau
luau
.luau
-- v2.1.0 local function CustomAssert(check, ...) if not check then print("ERROR:", ...) error("read above message for information") end end -- Unsafe because it yields without a pcall local function unsafeCleanThing(thing) local type = typeof(thing) if type == "Instance" then if thing:IsA("AnimationTrack"...
921
wrello/Plums
wrello-Plums-16119f5/Plums/Util/PathUtil.luau
luau
.luau
local PathUtil = {} function PathUtil.getPathsTo(parent, needle, results, currentPath, visited) results = results or {} visited = visited or {} if visited[parent] then return results end visited[parent] = true for k, v in parent do local newPath = (currentPath and currentPath .. '.' or "") .. k if v == ...
736
wrello/Plums
wrello-Plums-16119f5/Plums/Util/PlumInternal.luau
luau
.luau
local RunService = game:GetService("RunService") local PathUtil = require(script.Parent.PathUtil) local PlumValueChangedUtil = require(script.Parent.PlumValueChangedUtil) local PlumsCache = require(script.Parent.PlumsCache) local EMPTY_FN = function() end local PlumInternal = {} PlumInternal.__index = PlumInternal ...
2,052
wrello/Plums
wrello-Plums-16119f5/Plums/Util/PlumValueChangedUtil.luau
luau
.luau
local PathUtil = require(script.Parent.PathUtil) local PlumValueChangedUtil = {} local function collectEvents(t, path, out, newValue, oldValue) local signal = t._signal if signal then if newValue ~= oldValue then table.insert(out, {signal, newValue, oldValue}) end end for k, v in t do if k == "_signal" ...
682
wrello/Plums
wrello-Plums-16119f5/Plums/Util/PlumsCache.luau
luau
.luau
local Signal = require(script.Parent.Signal) local idToPlum = {} local classNameToCache = {} local function getClassNameCache(className) local classNameCache = classNameToCache[className] if not classNameCache then classNameCache = {} classNameToCache[className] = classNameCache end return classNameCache en...
314
wrello/Plums
wrello-Plums-16119f5/Plums/Util/Signal.luau
luau
.luau
-- v2.2.1 local Connection = {} Connection.__index = Connection function Connection.new(signal, handler, isOnce) return setmetatable({ _signal = signal, _isOnce = isOnce, Handler = handler, Connected = true, }, Connection) end function Connection:Disconnect() self.Connected = false local foundIdx = t...
746
wrello/Plums
wrello-Plums-16119f5/Plums/Util/SquashCodec.luau
luau
.luau
local Squash = require(script.Parent.Squash) local BufferEncoder = require(script.Parent.BufferEncoder) -- Ser local SQ_CURSOR = Squash.cursor local SQ_TO_BUF = Squash.tobuffer local SQ_STR_SER = Squash.string().ser local SQ_STR_ARR_SER = Squash.array(Squash.string()).ser local SQ_U32_SER = Squash.uint(4).ser -- Des ...
545
wrello/Plums
wrello-Plums-16119f5/Plums/Util/Types.luau
luau
.luau
--!strict type EventConnecterType<T> = { -- Methods Wait: (self: EventConnecterType<T>, timeout: number?) -> (...any | "timeout"), Connect: (self: EventConnecterType<T>, handler: T) -> RBXScriptConnection, Once: (self: EventConnecterType<T>, handler: T) -> RBXScriptConnection, } type EventObserverType<T> = { -- M...
1,267
wrello/Plums
wrello-Plums-16119f5/Plums/Util/t.luau
luau
.luau
-- t: a runtime typechecker for Roblox local t = {} function t.type(typeName) return function(value) local valueType = type(value) if valueType == typeName then return true else return false, string.format("%s expected, got %s", typeName, valueType) end end end function t.typeof(typeName) return fun...
7,110
Breezy1214/EZ-Hitbox
Breezy1214-EZ-Hitbox-83291d0/src/Constants.luau
luau
.luau
--!strict local Constants = {} -- Default values Constants.DEFAULT_VELOCITY_CONSTANT = 6 Constants.DEFAULT_DEBOUNCE_TIME = 0 Constants.DEFAULT_LIFETIME = 0 Constants.DEFAULT_DEBUG_MODE = false Constants.DEFAULT_VELOCITY_PREDICTION = true Constants.DEFAULT_LOOKING_FOR = "Humanoid" :: "Humanoid" -- Spatial option types...
221
Breezy1214/EZ-Hitbox
Breezy1214-EZ-Hitbox-83291d0/src/Types.luau
luau
.luau
--!strict local Types = {} -- Packages local Janitor = require(script.Parent.Parent.Janitor) -- Types export type JanitorType = typeof(Janitor.new()) export type DotProductRequirement = { DotProduct: number, PartForVector: BasePart, VectorType: ("LookVector" | "UpVector" | "RightVector")?, Negative: boolean?, } ...
1,303
Breezy1214/EZ-Hitbox
Breezy1214-EZ-Hitbox-83291d0/src/init.luau
luau
.luau
--!strict --[[ Quick Start: local Hitbox = require(path.to.Hitbox) -- Sphere hitbox (simplest) local hit = Hitbox.sphere(10, character.HumanoidRootPart.CFrame) hit.OnHit:Connect(function(characters) ... end) hit:Start() -- Box hitbox local hit = Hitbox.box(Vector3.new(10, 5, 10), CFrame.new(0, 5, 0...
5,971
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/DefaultModules/Bool.lua
luau
.lua
local __Types = require(script.Parent.Parent.__Types) export type Module = { Get: () -> boolean, Set: (value: boolean) -> (), Flip: () -> (), SetFalse: () -> (), SetTrue: () -> () } --[[ Type for the Cereberal Bool Default Module ]] -- Skip out on Name, Value, New, GetSafe, Set export type BoolMo...
332
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/DefaultModules/Number.lua
luau
.lua
--!strict -- Constants -- -- Do we need integer overflow protection? --Dependencies -- local __Types = require(script.Parent.Parent.__Types) -- Private -- type Module = { Get: () -> number, Increment: (number) -> number, Decrement: (number) -> number, Zero: () -> (), Multiply: (number) -> (), Divide: (number) ...
709
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/DefaultModules/String.lua
luau
.lua
local __Types = require(script.Parent.Parent.__Types) type Module = { Get: () -> string, Set: (value: string) -> string, GetLen: () -> number, Lower: () -> string, Upper: () -> string, Concat: (value: string) -> string } export type StringModule = __Types.Attribute<Module, string> local String = {} String.__i...
290
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/DefaultModules/Table.lua
luau
.lua
-- !optimize 2 -- !strict local __Types = require(script.Parent.Parent.__Types) export type Module = { Get: () -> table, Set: () -> table, Update:(callback: (oldvalue: {}) -> {}) -> table } export type TableModule = __Types.Attribute<Module, table> local Table = {} Table.__index = Table Table.Name = nil...
304
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/DefaultModules/init.luau
luau
.luau
local Bool = require(script.Bool) local Number = require(script.Number) local String = require(script.String) local Table = require(script.Table) export type BoolModule = Bool.BoolModule export type NumberModule = Number.NumberModule export type StringModule = String.StringModule export type TableModule = Table.TableM...
86
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/__Agent.luau
luau
.luau
--!strict -- Dependencies -- local Types = require(script.Parent.__Types) local DataStore = require(script.Parent.__DataStore) -- Constants -- -- Types -- export type Agent = Types.Agent & { player: Player, ds_data: {[string]: Types.JSONAcceptable}, AddAttribute: (self: Agent, class: any, initialValue: any, name:...
1,450
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/__DataStore.luau
luau
.luau
--!strict --!optimize 2 -- Dependencies -- local DataStoreService = game:GetService("DataStoreService") local Types = require(script.Parent.__Types) -- Constants -- local MAX_ATTEMPTS = 10 local RETRY_TIME = 0.2 local DATA_STORE_NAME = "Cerebral_DB" -- Private -- local function waitOnDataStore(ds_service: DataStore...
666
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/__Packages/init.lua
luau
.lua
--[[ __Packages is not really a package directory. It is no like node_modules to Node.js. Instead, this directory harbors variours code snippets I come across in the Luau community (proper license of course). ]] local Signal = require(script.Signal) local Packages = { Signal = Signal -- Handles Luau event signals...
74
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/__Types.luau
luau
.luau
local DataStoreService = game:GetService("DataStoreService") export type JSONAcceptable = { JSONAcceptable } | { [string]: JSONAcceptable } | number | string | boolean | buffer export type Attribute<A, B> = typeof(setmetatable({}, {})) & { Name: string, Value: B, __Subscribed: boolean, New: (...any) -> A, GetSafe...
453
CerebralLabs/cerebral
CerebralLabs-cerebral-56b4c3f/src/init.luau
luau
.luau
--!optimize 2 --!strict -- Constants -- local AGENT_FOLDER = "__Data" local AUTO_SAVE_PERIOD = 60 --- Constant Type ---- type Constants = "AGENT_FOLDER" | "AUTO_SAVE_PERIOD" -- Dependencies -- local DefaultModules = require(script.DefaultModules) local Signal = require(script.__Packages.Signal) local Types = require...
1,828
Levnth/Modula
Levnth-Modula-9142035/modula/init.luau
luau
.luau
--!strict -- [Dependencies] local Promise = require(script.Parent["typed-promise"]) local Modula = {} -- [Types] export type ModulaType = typeof(Modula) type PredicateFn = (Module: ModuleScript) -> boolean type DirectoryType = {[number]: ModuleScript | Instance} type DepthType = "Children" | "Descendants" ...
860
teribu/Everforest
teribu-Everforest-968dd45/src/components/element.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal return function(Title, Parent, Hover, Condition) local Element = { Hoving = false, Condition = Condition or function() return true end } Elem...
1,085
teribu/Everforest
teribu-Everforest-968dd45/src/components/notification.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Notification = {} function Notification:Init(GUI) Notification.Holder = New("Frame", { Position = UDim2.new(1, -30, 0, 86), Size = UDim2.new(0,...
1,842
teribu/Everforest
teribu-Everforest-968dd45/src/components/tab.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local TabModule = { Window = nil, SelectedTab = 1, Tabs = {}, Containers = {}, Limits = {}, IsAutoScrolling = false, TotalTabs = 0 } local fu...
3,614
teribu/Everforest
teribu-Everforest-968dd45/src/components/top.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal return function(Config) local Top = {} Top.Button = New("TextButton", { Text = "", Size = UDim2.new(1, 0, 1, 0), Position = UDim2.new(0, ...
1,073
teribu/Everforest
teribu-Everforest-968dd45/src/components/window.luau
luau
.luau
local Tween = require("../modules/tween") local Creator = require("../modules/creator") local New = Creator.New local AddSignal = Creator.AddSignal return function(Config) local Window = { State = false, TabWidth = 0, SidebarWidth = 0, Keybind = Config.Keybind } Window.Tab...
2,924
teribu/Everforest
teribu-Everforest-968dd45/src/elements/button.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Button" function Element:New(Config) assert(Config.Title, "Button - Missing Title") local Button = { C...
1,057
teribu/Everforest
teribu-Everforest-968dd45/src/elements/dropdown.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Dropdown" function Element:New(Flag, Config) local Library = self.Library local Dropdown = { ...
3,326
teribu/Everforest
teribu-Everforest-968dd45/src/elements/init.luau
luau
.luau
local Elements = {} for _, module in script:GetChildren() do if module:IsA("ModuleScript") and module ~= script then local element = require(module) Elements[element.__type] = element end end return Elements
53
teribu/Everforest
teribu-Everforest-968dd45/src/elements/input.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Input" function Element:New(Flag, Config) local Library = self.Library assert(Config.Title, "Input...
601
teribu/Everforest
teribu-Everforest-968dd45/src/elements/paragraph.luau
luau
.luau
local Creator = require("../modules/creator") local Element = {} Element.__index = Element Element.__type = "Paragraph" function Element:New(Config) assert(Config.Title, "Paragraph - Missing Title") local Paragraph = require("../components/element")(Config.Title, self.Container, false) Paragraph.Root.Bac...
207
teribu/Everforest
teribu-Everforest-968dd45/src/elements/section.luau
luau
.luau
local Creator = require("../modules/creator") local New = Creator.New local Element = {} Element.__index = Element Element.__type = "Section" function Element:New(Config) assert(Config.Title, "Section - Missing Title") local Section = {} Section.Title = New("TextLabel", { FontFace = Font.new("rb...
392
teribu/Everforest
teribu-Everforest-968dd45/src/elements/slider.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Slider" function Element:New(Idx, Config) lo...
2,274
teribu/Everforest
teribu-Everforest-968dd45/src/elements/toggle.luau
luau
.luau
local Creator = require("../modules/creator") local Tween = require("../modules/tween") local New = Creator.New local AddSignal = Creator.AddSignal local Element = {} Element.__index = Element Element.__type = "Toggle" function Element:New(Flag, Config) local Library = self.Library assert(Config.Title, "Togg...
1,052
teribu/Everforest
teribu-Everforest-968dd45/src/modules/creator.luau
luau
.luau
local Themes = require("../themes") local Creator = { Registry = {}, Signals = {}, DefaultProperties = { ScreenGui = { ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, }, Frame = { BackgroundColor3 = Color3.new(1, 1, 1), ...
1,138
teribu/Everforest
teribu-Everforest-968dd45/src/modules/icons.luau
luau
.luau
-- This file was @generated by Tarmac. It is not intended for manual editing. return { assets = { ["lucide-accessibility"] = "rbxassetid://10709751939", ["lucide-activity"] = "rbxassetid://10709752035", ["lucide-air-vent"] = "rbxassetid://10709752131", ["lucide-airplay"] = "rbxasseti...
16,848
teribu/Everforest
teribu-Everforest-968dd45/src/modules/presets.luau
luau
.luau
return { Default = { Duration = 0.1, EasingStyle = Enum.EasingStyle.Exponential, EasingDirection = Enum.EasingDirection.Out }, }
35
teribu/Everforest
teribu-Everforest-968dd45/src/modules/tween.luau
luau
.luau
local TweenService = game:GetService("TweenService") local Creator = require("./creator") local AddSignal = Creator.AddSignal local Tween = { Presets = require("./presets"), InfoCache = {}, RunningTweens = {} } function Tween.ParseEnum(EnumType, Value) if typeof(Value) == "EnumItem" then return Value ...
1,169
teribu/Everforest
teribu-Everforest-968dd45/src/themes/dark.luau
luau
.luau
return { Name = "Dark", Notification = Color3.fromRGB(61, 57, 70), NotificationBorder = Color3.fromRGB(222, 208, 255), NotificationTitle = Color3.fromRGB(218, 213, 233), Top = Color3.fromRGB(10, 10, 10), TopTitle = Color3.fromRGB(255, 255, 255), TopDescription = Color3.fromRGB(255, 255, 25...
1,022
teribu/Everforest
teribu-Everforest-968dd45/src/themes/init.luau
luau
.luau
local Themes = { Names = { "Dark" } } for _, Theme in script:GetChildren() do local Required = require(Theme) Themes[Required.Name] = Required end return Themes
45
teribu/Everforest
teribu-Everforest-968dd45/tests/test.client.luau
luau
.luau
local Everforest = require(game:GetService("ReplicatedStorage"):WaitForChild("Everforest")) local Window = Everforest:CreateWindow({ Top = { Title = "Everforest", Description = "Powerful scripting utility", User = { Icon = "rbxassetid://138895252616906", Name = game....
2,186
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Animation/Tween.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ A specialised state object for following a goal state smoothly over time, using a TweenInfo to shape the motion. https://elttob.uk/Fusion/0.3/api-reference/animation/types/tween/ ]] local Packag...
1,406
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Animation/packType.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Packs an array of numbers into a given animatable data type. If the type is not animatable, nil will be returned. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local...
814
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/External.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Abstraction layer between Fusion internals and external environments, allowing for flexible integration with schedulers and test mocks. ]] local Package = script.Parent local formatError = require...
938
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Graph/Observer.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ A graph object that runs user code when it's updated by the reactive graph. http://elttob.uk/Fusion/0.3/api-reference/state/types/observer/ ]] local Package = script.Parent.Parent local Types = r...
665
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Instances/Hydrate.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Processes and returns an existing instance, with options for setting properties, event handlers and other attributes on the instance. ]] local Package = script.Parent.Parent local Types = require(...
203
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Instances/New.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Constructs and returns a new instance, with options for setting properties, event handlers and other attributes on the instance right away. ]] local Package = script.Parent.Parent local Types = re...
372
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Instances/applyInstanceProps.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Applies a table of properties to an instance, including binding to any given state objects and applying any special keys. No strong reference is kept by default - special keys should take care no...
1,040
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Memory/checkLifetime.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Procedures for checking lifetimes and printing helpful warnings about them. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local External = require(Package.External)...
1,008
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Memory/deriveScopeImpl.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Creates an empty scope with the same metatables as the original scope. Used for preserving access to constructors when creating inner scopes. This is the internal version of the function, which d...
289
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Memory/doCleanup.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Cleans up the tasks passed in as the arguments. A task can be any of the following: - an Instance - will be destroyed - an RBXScriptConnection - will be disconnected - a function - will be run ...
598
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Memory/legacyCleanup.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler local Package = script.Parent.Parent local Types = require(Package.Types) local External = require(Package.External) local doCleanup = require(Package.Memory.doCleanup) local function legacyCleanup( val...
100
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Memory/poisonScope.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ 'Poisons' the given scope; if the scope is used again, then it will cause the program to crash. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local External = require...
214
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Memory/scopePool.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler local Package = script.Parent.Parent local Types = require(Package.Types) local poisonScope = require(Package.Memory.poisonScope) local ExternalDebug = require(Package.ExternalDebug) local ENABLE_POOLING...
376
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Memory/scoped.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Creates cleanup tables with access to constructors as methods. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local ExternalDebug = require(Package.ExternalDebug) loca...
167
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Memory/whichLivesLonger.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Calculates how the lifetimes of the two values relate. Specifically, it calculates which value will be destroyed earlier or later, if it is possible to infer this from their scopes. ]] local Packa...
639
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/State/Computed.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ A specialised state object for tracking single values computed from a user-defined computation. https://elttob.uk/Fusion/0.3/api-reference/state/types/computed/ ]] local Package = script.Parent....
988
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/State/For/Disassembly.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Breaks down an input table into reactive sub-objects for each pair. ]] local Package = script.Parent.Parent.Parent local Types = require(Package.Types) local External = require(Package.External) --...
1,625
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/State/For/init.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ The generic implementation for all `For` objects. ]] local Package = script.Parent.Parent local Types = require(Package.Types) local External = require(Package.External) -- Graph local depend = req...
716
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/State/ForKeys.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Constructs and returns a new For state object which processes keys and preserves values. https://elttob.uk/Fusion/0.3/api-reference/state/members/forkeys/ TODO: the sub objects constructed here...
719
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/State/ForPairs.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Constructs and returns a new For state object which processes keys and values in pairs. https://elttob.uk/Fusion/0.3/api-reference/state/members/forpairs/ TODO: the sub objects constructed here...
801
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/State/ForValues.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Constructs and returns a new For state object which processes values and preserves keys. https://elttob.uk/Fusion/0.3/api-reference/state/members/forvalues/ TODO: the sub objects constructed he...
707
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/State/Value.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ A state object which allows regular Luau code to control its value. https://elttob.uk/Fusion/0.3/api-reference/state/types/value/ ]] local Package = script.Parent.Parent local Types = require(Pac...
570
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Types.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Stores common public-facing type information for Fusion APIs. ]] export type Error = { type: "Error", raw: string, message: string, trace: string, context: string? } -- Types that can be expr...
3,244
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/Utility/merge.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ Attempts to merge a variadic number of tables together. ]] local Package = script.Parent.Parent local External = require(Package.External) local function merge( overwrite: boolean, into: {[unkno...
194
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Fusion/init.luau
luau
.luau
--!strict --!nolint LocalUnused --!nolint LocalShadow local task = nil -- Disable usage of Roblox's task scheduler --[[ The entry point for the Fusion library. ]] local Types = require(script.Types) local External = require(script.External) type Fusion = Types.Fusion export type Animatable = Types.Animatable export...
633
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Attribute.lua
luau
.lua
-- v3 alone has taken 250+ hours so please consider keeping this -- required attribute and linking to TopbarPlus within your games -- description or devforum post. An in-game readable version also -- makes it easier for me to debug and compare differences betewen -- live places. Thanks! ~Ben local RunService = game:Ge...
130
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Elements/Caption.lua
luau
.lua
return function(icon) -- Credit to lolmansReturn and Canary Software for -- retrieving these values local clickRegion = icon:getInstance("ClickRegion") local caption = Instance.new("CanvasGroup") caption.Name = "Caption" caption.AnchorPoint = Vector2.new(0.5, 0) caption.BackgroundTransparency = 1 capt...
2,968
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Elements/Container.lua
luau
.lua
return function(Icon) local GuiService = game:GetService("GuiService") local isOldTopbar = Icon.isOldTopbar local container = {} local guiInset = GuiService:GetGuiInset() local isConsoleScreen = GuiService:IsTenFootInterface() local startInset = if isOldTopbar then 12 else guiInset.Y - (44 + 2) if isConsoleScr...
1,153
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Elements/Dropdown.lua
luau
.lua
return function(icon) local dropdown = Instance.new("Frame") dropdown.Name = "Dropdown" dropdown.AutomaticSize = Enum.AutomaticSize.XY dropdown.BackgroundTransparency = 1 dropdown.BorderSizePixel = 0 dropdown.AnchorPoint = Vector2.new(0.5, 0) dropdown.Position = UDim2.new(0.5, 0, 1, 10) dropdown.ZInd...
1,590
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Elements/Indicator.lua
luau
.lua
return function(icon, Icon) local widget = icon.widget local contents = icon:getInstance("Contents") local indicator = Instance.new("Frame") indicator.Name = "Indicator" indicator.LayoutOrder = 9999999 indicator.ZIndex = 6 indicator.Size = UDim2.new(0, 42, 0, 42) indicator.BorderColor3 = Color3.fromRGB(0, 0, 0...
898
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Elements/Menu.lua
luau
.lua
return function(icon) local menu = Instance.new("ScrollingFrame") menu.Name = "Menu" menu.BackgroundTransparency = 1 menu.Visible = true menu.ZIndex = 1 menu.Size = UDim2.fromScale(1, 1) menu.ClipsDescendants = true menu.TopImage = "" menu.BottomImage = "" menu.HorizontalScrollBarInset = Enum.ScrollBarInset....
1,614
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Elements/Notice.lua
luau
.lua
return function(icon, Icon) local notice = Instance.new("Frame") notice.Name = "Notice" notice.ZIndex = 25 notice.AutomaticSize = Enum.AutomaticSize.X notice.BorderColor3 = Color3.fromRGB(0, 0, 0) notice.BorderSizePixel = 0 notice.BackgroundTransparency = 0.1 notice.BackgroundColor3 = Color3.fromRGB(255, 255, ...
946
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Elements/Selection.lua
luau
.lua
return function(Icon) -- Credit to lolmansReturn and Canary Software for -- retrieving these values local selectionContainer = Instance.new("Frame") selectionContainer.Name = "SelectionContainer" selectionContainer.Visible = false local selection = Instance.new("Frame") selection.Name = "Selection" selection...
386
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Features/Overflow.lua
luau
.lua
-- When designing your game for many devices and screen sizes, icons may occasionally -- particularly for smaller devices like phones, overlap with other icons or the bounds -- of the screen. The overflow handler solves this challenge by moving the out-of-bounds -- icon into an overflow menu (with a limited scrolling c...
2,915
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Features/Themes/Classic.lua
luau
.lua
-- This is to provide backwards compatability with the old Roblox -- topbar while experiences transition over to the new topbar -- You don't need to apply this yourself, topbarplus automatically -- applies it if the old roblox topbar is detected return { {"Selection", "Size", UDim2.new(1, -6, 1, -5)}, {"Selection",...
383
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Packages/GoodSignal.lua
luau
.lua
-------------------------------------------------------------------------------- -- Batched Yield-Safe Signal Implementation -- -- This is a Signal class which has effectively identical behavior to a -- -- normal RBXScriptSignal, with the only difference being a couple extra ...
1,411
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/Reference.lua
luau
.lua
-- This module enables you to place Icon wherever you like within the data model while -- still enabling third-party applications (such as HDAdmin/Nanoblox) to locate it -- This is necessary to prevent two TopbarPlus applications initiating at runtime which would -- cause icons to overlap with each other local re...
205
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/Icon/VERSION.lua
luau
.lua
return "v3.0.2"
9
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/baseBox.luau
luau
.luau
local Config = require(script.Parent:WaitForChild("config")) return function(scope, parent) return scope:New("TextBox")({ TextScaled = true, BackgroundColor3 = Config.SECONDARY_BACKGROUND_COLOUR, TextColor3 = Color3.fromRGB(232, 232, 232), AnchorPoint = Vector2.new(0.5, 0.5), FontFace = Config.FONT, Par...
100
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/baseButton.luau
luau
.luau
local Fusion = require(script.Parent:WaitForChild("Fusion")) local Config = require(script.Parent:WaitForChild("config")) return function(scope, parent) return scope:New("TextButton")({ TextScaled = true, Size = UDim2.fromScale(0.38, 0.12), BackgroundColor3 = Config.SECONDARY_BACKGROUND_COLOUR, TextColor3 = C...
162
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/baseLabel.luau
luau
.luau
local Config = require(script.Parent:WaitForChild("config")) return function(scope, parent) return scope:New("TextLabel")({ TextScaled = true, BackgroundColor3 = Config.SECONDARY_BACKGROUND_COLOUR, TextColor3 = Color3.fromRGB(232, 232, 232), AnchorPoint = Vector2.new(0.5, 0.5), FontFace = Config.FONT, P...
100
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/config.luau
luau
.luau
--!strict local Config = {} local Notation = require(game:GetService("ReplicatedStorage"):WaitForChild("Shared"):WaitForChild("chess"):WaitForChild("notation")) Config.DEFAULT_AI_MOVE_TIME_IN_MILLISECONDS = 500 Config.LIGHT_SQUARE_COLOUR, Config.DARK_SQUARE_COLOUR = Color3.fromRGB(234, 233, 210), Color3.fromRGB(75...
555
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/aiMoveTimeBox.luau
luau
.luau
local Fusion = require(script.Parent.Parent:WaitForChild("Fusion")) local baseLabel = require(script.Parent.Parent:WaitForChild("baseLabel")) local baseBox = require(script.Parent.Parent:WaitForChild("baseBox")) return function(scope, parent) local aiMoveTimeBox = scope:Hydrate(baseBox(scope, parent))({ Name = "AIM...
233
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/aiSelfPlayButton.luau
luau
.luau
--!strict local baseButton = require(script.Parent.Parent:WaitForChild("baseButton")) return function(scope, parent) return scope:Hydrate(baseButton(scope, parent))({ Name = "AISelfPlayButton", Position = UDim2.fromScale(0.25, 0.71), Text = "AI vs AI", }) end
80
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/fenBox.luau
luau
.luau
local Fusion = require(script.Parent.Parent:WaitForChild("Fusion")) local baseBox = require(script.Parent.Parent:WaitForChild("baseBox")) return function(scope, parent) return scope:Hydrate(baseBox(scope, parent))({ Name = "FEN", Size = UDim2.fromScale(0.9, 0.1), ClearTextOnFocus = false, ZIndex = 2, Positi...
140
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/init.luau
luau
.luau
--!strict local Fusion = require(script.Parent:WaitForChild("Fusion")) local Config = require(script.Parent:WaitForChild("config")) return function(scope, parent) local frame = scope:New("Frame")({ AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.fromScale(1, 0.5), Size = UDim2.fromScale(0.2, 1), Backgrou...
212
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/movesFrame.luau
luau
.luau
local Fusion = require(script.Parent.Parent:WaitForChild("Fusion")) local baseLabel = require(script.Parent.Parent:WaitForChild("baseLabel")) local Config = require(script.Parent.Parent:WaitForChild("config")) return function(scope, parent, moves) return scope:New("ScrollingFrame")({ Name = "Moves", Size = UDim2....
337
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/openingLabel.luau
luau
.luau
local Fusion = require(script.Parent.Parent:WaitForChild("Fusion")) local baseLabel = require(script.Parent.Parent:WaitForChild("baseLabel")) return function(scope, parent) return scope:Hydrate(baseLabel(scope, parent))({ Name = "Opening", Size = UDim2.fromScale(0.9, 0.08), ZIndex = 2, Position = UDim2.fromSc...
130
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/rotateButton.luau
luau
.luau
--!strict local baseButton = require(script.Parent.Parent:WaitForChild("baseButton")) return function(scope, parent) return scope:Hydrate(baseButton(scope, parent))({ Text = "Rotate", Position = UDim2.fromScale(0.75, 0.87), }) end
68
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/sideBar.story.luau
luau
.luau
--!strict local Fusion = require(script.Parent.Parent:WaitForChild("Fusion")) local makeSideBar = require(script.Parent) local makeUndoButton = require(script.Parent:WaitForChild("undoButton")) local makeRotateButton = require(script.Parent:WaitForChild("rotateButton")) local makeAIMoveTimeBox = require(script.Parent:...
302
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/sideBar/undoButton.luau
luau
.luau
--!strict local baseButton = require(script.Parent.Parent:WaitForChild("baseButton")) return function(scope, parent) return scope:Hydrate(baseButton(scope, parent))({ Position = UDim2.fromScale(0.25, 0.87), Name = "Undo", Text = "Undo", }) end
74
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/uciConsole/frame.luau
luau
.luau
--!strict local Fusion = require(script.Parent.Parent:WaitForChild("Fusion")) local Config = require(script.Parent.Parent:WaitForChild("config")) local baseBox = require(script.Parent.Parent:WaitForChild("baseBox")) local baseLabel = require(script.Parent.Parent:WaitForChild("baseLabel")) local baseButton = require(sc...
866
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/uciConsole/init.luau
luau
.luau
local TextService = game:GetService("TextService") local RunService = game:GetService("RunService") local makeUCIConsole = require(script:WaitForChild("frame")) local baseBox = require(script.Parent:WaitForChild("baseBox")) local Config = require(script.Parent:WaitForChild("config")) local Fusion = require(script.Pare...
901