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
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/States/Resource.luau
luau
.luau
-- Author: iGottic local Resource = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Batch = require(Modules.Batch) local StateManager = require(Modules.StateManager) local Trove = require(Modules.Trove) local Signal = require(Modules.Signal) local Types = require(Modules.Types) local Symbol = ...
830
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/States/Value.luau
luau
.luau
-- Author: iGottic local Value = {} -- Imports local Modules = script.Parent.Parent.Parent.Modules local Batch = require(Modules.Batch) local StateManager = require(Modules.StateManager) local Trove = require(Modules.Trove) local Signal = require(Modules.Signal) local Types = require(Modules.Types) local IsValueChang...
1,677
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Utilities/GetValue.luau
luau
.luau
-- Author: iGottic local GetValue = {} -- Types export type GetValue = (State : any?) -> any? -- Imports local IsState = require(script.Parent.IsState) function GetValue:__call(State : any?) : any? -- Nothing exists? No problem. if State == nil then return nil end -- Is it a state? Return t...
170
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Utilities/Inspect.luau
luau
.luau
-- Author: iGottic local Inspect = {} -- Types export type Inspect = (Object : any, DebugName : string) -> RBXScriptConnection function Inspect:__call(Object : any, DebugName : string) if not DebugName then error("Expected DebugName, got nil") end return (Object.Changed :: RBXScriptSignal):Conne...
206
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Utilities/IsComponent.luau
luau
.luau
-- Author: iGottic local IsComponent = {} -- Types export type IsComponent = (CheckedValue : any?) -> boolean function IsComponent:__call(CheckedValue : any?) : boolean if typeof(CheckedValue) ~= "table" then return false -- Not a component since it's not a table end if CheckedValue.__SEAM_COMPO...
167
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Utilities/IsState.luau
luau
.luau
-- Author: iGottic local IsState = {} -- Types export type IsState = (CheckedValue : any?) -> boolean -- Constants local RECOGNIZED_STATE_SYMBOLS = {"Spring", "Tween", "Bezier", "Resource", "ComputedInstance", "RenderedInstance", "Value"} function IsState:__call(CheckedValue : any?) : boolean if typeof(CheckedV...
259
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Utilities/LockValue.luau
luau
.luau
-- Author: iGottic local LockValue = {} -- Imports local Value = require(script.Parent.Parent.States.Value) -- Types export type LockValue = (LockedValue : Value.ValueInstance<any>) -> nil function LockValue:__call(LockedValue : Value.ValueInstance<any>) : nil if typeof(LockedValue) ~= "table" or not LockedValu...
177
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Constructors/Utilities/SetValue.luau
luau
.luau
-- Author: iGottic local SetValue = {} -- Types export type SetValue = (State : any?, NewValue : any?) -> any? function SetValue:__call(State : any?, NewValue : any?) : any? if State == nil then return NewValue end if typeof(State) == "table" and State.Value ~= nil then State.Value = New...
146
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/Batch.luau
luau
.luau
-- Author: iGottic local Batch = {} -- Types type BatchedArguments = { n: number, [number]: any, } export type Batch = ((Callback: (...any) -> ...any, ...any) -> ...any) -- Variables local ActiveDepth = 0 local PendingSignals: {[any]: BatchedArguments} = {} local PendingOrder: {any} = {} local function Flu...
439
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/CreateDeepTraceback.luau
luau
.luau
-- Author: iGottic -- Constants local DEPTH = 10 return function() local Traceback = "" for Index = 1, DEPTH do local ThisTraceback = debug.traceback(nil, Index + 1) if ThisTraceback:len() == 0 then break end Traceback ..= ThisTraceback .. "\n" end return Traceback end
94
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/IsValueChanged.luau
luau
.luau
-- Author: iGottic return function(OldValue : any, NewValue : any) : boolean if typeof(OldValue) ~= typeof(NewValue) then return true end return OldValue ~= NewValue end
54
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/Signal/Connection.luau
luau
.luau
--[=[ @within Signal @interface SignalConnection .Connected boolean .Disconnect (SignalConnection) -> () Represents a connection to a signal. ```lua local ConnectionObj = SignalInstance:Connect(function() end) print(ConnectionObj.Connected) --> true ConnectionObj:Disconnect() print(ConnectionObj.Connected) -...
322
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/StateManager.luau
luau
.luau
-- Author: iGottic local StateManager = {} -- Imports local Trove = require(script.Parent.Trove) local IsValueChanged = require(script.Parent.IsValueChanged) local UpdateSignals = require(script.Parent.UpdateSignals) local CreateDeepTraceback = require(script.Parent.CreateDeepTraceback) local function GetObjectType(...
591
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/Symbol.luau
luau
.luau
-- Author: iGottic local Symbol = {} -- Types export type Symbol = typeof(newproxy(true)) function Symbol.new(Name : string) local self = newproxy(true) getmetatable(self).__tostring = function() return Name end return self end return Symbol
64
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/Trove.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") export type Trove = { Extend: (self: Trove) -> Trove, Clone: <T>(self: Trove, instance: T & Instance) -> T, Construct: <T, A...>(self: Trove, class: Constructable<T, A...>, A...) -> T, Connect: ( self: Trove, signal: SignalLike | SignalLikeMetatable |...
2,633
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/Types.luau
luau
.luau
-- Author: iGottic export type BaseState<T> = { Value : T, } export type Child = Instance | BaseState<any> | {[unknown] : Child} return nil
41
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/UpdateSignals.luau
luau
.luau
-- Author: iGottic local UpdateSignals = {} -- Types type UpdateSignals = { OnFrameUpdate : RBXScriptSignal, OnFramePreUpdate : RBXScriptSignal, } -- Services local RunService = game:GetService("RunService") if RunService:IsClient() then UpdateSignals.OnFrameUpdate = RunService.RenderStepped UpdateS...
143
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/Modules/ValuePacker/init.luau
luau
.luau
-- Author: iGottic -- Based on UnpackType and PackType from Elttob local ValuePacker = {} -- Types type UnpackedValue = {[number]: number} -- Imports local Oklab = require(script.Oklab) -- We use Oklab color space to make animating colors look more natural -- Variables local Converter : {[string] : {Pack : (Unpacke...
1,714
MiaGobble/Seam
MiaGobble-Seam-cbdeaf5/src/init.luau
luau
.luau
-- Author: iGottic -- Documentation: https://seam.igottic.com/ -- Services local RunService = game:GetService("RunService") -- Imports -- Note: I opt for WaitForChild to load stuff; this helps prevent edge case errors where children don't load in time, particularly when loading from ReplicatedStorage in a script loca...
1,673
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/Bitbuf.lua
luau
.lua
------------------------------------------------------------------------------------- -- Bitbuf implements a bit-level buffer, suitable for -- serialization and storing data in-memory. ------------------------------------------------------------------------------------- --!native --!strict local Bitbuf = {} --------...
5,385
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/CageBuilder.lua
luau
.lua
--!strict local CageBuilder = {} CageBuilder.__index = CageBuilder local Modules = script.Parent local Trove = require(Modules.Trove) local JointTree = require(Modules.JointTree) local RobloxMesh = require(Modules.RobloxMesh) type Trove = Trove.Class type RobloxMesh = RobloxMesh.Class export type Class = typeof(set...
517
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/CageSolver.lua
luau
.lua
--!native --!strict local CageSolver = {} CageSolver.__index = CageSolver local Root = script.Parent local Matrix = require(Root.Matrix) local Octree = require(Root.Octree) local QuadTree = require(Root.QuadTree) local RobloxMesh = require(Root.RobloxMesh) local CageBuilder = require(Root.CageBuilder) type Octree = ...
992
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/JointTree.lua
luau
.lua
--!strict local JointTree = {} type Joints = { [BasePart]: SpanningTree, } type Assembly = { [BasePart]: CFrame, } type SpanningTree = { [number]: { Joint: JointInstance, Part: BasePart, }, } local function addJointEdge(joints: Joints, joint: JointInstance) local _part0 = joint.Part0 local _part1 = joint....
1,305
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/Octree.lua
luau
.lua
--!strict -- FIXME: This is nearly identical to QuadTree. Their common logic -- COULD be consolidated, but it's not really worth doing. -- Juggling the type annotation conflicts is not fun. local Octree = {} Octree.__index = Octree local OctreeNode = {} OctreeNode.__index = OctreeNode type Set<T> = { ...
3,104
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/QuadTree.lua
luau
.lua
--!strict -- FIXME: This is nearly identical to Octree. Their common logic -- COULD be consolidated, but it's not really worth doing. -- Juggling the type annotation conflicts is not fun. local QuadTree = {} QuadTree.__index = QuadTree local QuadTreeNode = {} QuadTreeNode.__index = QuadTreeNode type S...
2,942
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/RobloxMesh.lua
luau
.lua
--!strict local RobloxMesh = {} RobloxMesh.__index = RobloxMesh export type Vertex = { Position: Vector3, Normal: Vector3, UV: Vector2, Tangent: { Vector: Vector3, Sign: number, }?, Color: { Tint: Color3, Alpha: number, }, Weights: { [string]: number, }, } type Envelope = { Bones: { number }, ...
4,339
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Modules/Trove.lua
luau
.lua
-- This is a strictly typed binding of sleitnick's Trove module. -- Use is optional but nice to have. --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local Packages = ReplicatedStorage.Packages local Modules = ReplicatedStorage.Modules local Trove = require(Packages.Trove) local Signal = req...
365
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Scripts/LiveCageMorph.server.lua
luau
.lua
--!strict local TweenService = game:GetService("TweenService") local Modules = game.ReplicatedStorage.Modules local CageSolver = require(Modules.CageSolver) local RobloxMesh = require(Modules.RobloxMesh) local CageBuilder = require(Modules.CageBuilder) local info = TweenInfo.new(2) local activeDummy: Model? = nil lo...
884
MaximumADHD/cage-mesh-deformer
MaximumADHD-cage-mesh-deformer-1330745/Scripts/Wireframe/init.server.lua
luau
.lua
--!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local Modules = ReplicatedStorage.Modules local CageSolver = require(Modules.CageSolver) local RobloxMesh = require(Modules.RobloxMesh) local CageBuilder = require(Modules.CageBuilder) type CageSolver = CageSolver.Class type CageMesh = "Referenc...
1,017
creepersaur/quark
creepersaur-quark-0ef88d1/handler/events.luau
luau
.luau
export type ALL_EVENTS = "WriteActivityHistoryEventFromStudio" | "AnimationPlayed" | "Stopped" | "DidLoop" | "Ended" | "KeyframeReached" | "UserGuiRenderingChanged" | "TopbarTransparencyChangedSignal" | "CoreGuiChangedSignal" | "OnClientEvent" | "OnServerEvent" | "Event" | "ActionActivatedSignal" | "FindV...
799
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/.storybook.luau
luau
.luau
local storybook = { name = "Examples", storyRoots = { script.Parent, }, } return storybook
26
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Button_ToolTip.story/ToolTip.luau
luau
.luau
-- elements created by functions can take parameters -- Visible is a state that that tells the tooltip to show return function(Scope, tool_text: string?, Hovering) local New = Scope.New local Spring = Scope.Animations.Spring local text = tool_text or "ToolTip" local Visible = Scope.State(function(use) if use(Hov...
377
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Button_ToolTip.story/init.luau
luau
.luau
local ReplicatedStorage = game:GetService "ReplicatedStorage" local Button = require(script.Button) local Quark = require(ReplicatedStorage.Shared.Quark) local New = Quark.New -- The Story return function(Parent) local ButtonData: { [string]: string } = { ["Continue"] = "Continue the game", ["New Game"] = "Start...
418
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Computed.story.luau
luau
.luau
local ReplicatedStorage = game:GetService "ReplicatedStorage" local Quark = require(ReplicatedStorage.Shared.Quark) local New = Quark.New local State = Quark.State local Hook = Quark.Hook return function(parent) local Counter = State(0) -- Tip text New "TextLabel" { Text = "Click the buttons. These update autom...
426
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Entries.story.luau
luau
.luau
local ReplicatedStorage = game:GetService "ReplicatedStorage" local Quark = require(ReplicatedStorage.Shared.Quark) local New = Quark.New local Entries = Quark.Entries local Hook = Quark.Hook return function(parent: Instance) local E = Entries(10, function(Scope, i: number) return Scope.New "TextLabel" { Positi...
246
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Notepad.story/NewNote.luau
luau
.luau
return function(Scope) local New = Scope.New local Main = New "Frame" { Size = UDim2.new(1, 0, 0, 30), BackgroundTransparency = 1 } local Button = New "TextButton" { Text = "New Note", BackgroundTransparency = 0.9, TextColor3 = Color3.new(1,1,1), Size = UDim...
124
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Notepad.story/Note.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Quark = require(ReplicatedStorage.Shared.Quark) return function(Scope: Quark.Scope, text: string?) local New = Scope.New local Spring = Scope.Animations.Spring local Hook = Scope.Hook local Main = New "Frame" { Size = UDim2.new(1, -10, 0, 50),...
567
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Notepad.story/NoteHolder.luau
luau
.luau
local Note = require(script.Parent.Note) return function(Scope) local New = Scope.New local Main = New "Frame" { Size = UDim2.fromScale(1, 1), BackgroundColor3 = Color3.new(), BackgroundTransparency = 0.85, BorderSizePixel = 0, children = { New "UIListLayout" {...
173
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Notepad.story/init.luau
luau
.luau
local ReplicatedStorage = game:GetService "ReplicatedStorage" local Quark = require(ReplicatedStorage.Shared.Quark) local New = Quark.New local NewNote = require(script.NewNote) local NoteHolder = require(script.NoteHolder) -- Slightly more advanced, I suggest you look into `Button_ToolTip.story` first. local contr...
488
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/PropertyState.story.luau
luau
.luau
local ReplicatedStorage = game:GetService "ReplicatedStorage" local Quark = require(ReplicatedStorage.Shared.Quark) local New = Quark.New local Hook = Quark.Hook return function(parent: Instance) -- This state controls text. -- Text will auto-update when set to this state. local Hovering = Quark.State "Hover over ...
426
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/Spring.story.luau
luau
.luau
local ReplicatedStorage = game:GetService "ReplicatedStorage" local Quark = require(ReplicatedStorage.Shared.Quark) local Spring = Quark.Animations.Spring local New = Quark.New local State = Quark.State local Hook = Quark.Hook -- Spring settings can be States local SpringSettings = { Elasticity = State(0.1), Stiffn...
541
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/_.story.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Quark = require(ReplicatedStorage.Shared.Quark) local New = Quark.New return Quark.CreateStory(function() local baseSCOPE = Quark.Scope() local ScopeA = baseSCOPE.Scope() local ScopeB = baseSCOPE.Scope() print(Quark._CreatedScopes) return New...
189
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/style.story.luau
luau
.luau
local ReplicatedStorage = game:GetService "ReplicatedStorage" local Quark = require(ReplicatedStorage.Shared.Quark) local New = Quark.New Quark.Stylesheet "Hello" { TextLabel = { BackgroundColor3 = Color3.new(0.2, 0.5, 1), Text = "Instance: TextLabel", }, [Quark.Class "BIG"] = { TextSize = 30, BackgroundCo...
502
creepersaur/quark
creepersaur-quark-0ef88d1/src/examples/Stories/tween.story.luau
luau
.luau
local ReplicatedStorage = game:GetService "ReplicatedStorage" local TweenService = game:GetService "TweenService" local Quark = require(ReplicatedStorage.Shared.Quark) local New = Quark.New local Hook = Quark.Hook return function(parent) local START = UDim2.fromOffset(0, 50) local TARGET = UDim2.new(0.15, 0, 0, 50)...
483
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Animations/Loop.luau
luau
.luau
local RunService = game:GetService("RunService") local Types = require(script.Parent.Parent.Types) return function() local Reactive = require(script.Parent.Parent.Reactive)() local LoopModule = { Created = {}, } local Loop = {} Loop.__index = Loop function LoopModule.new(): Types.Loop local self = setmet...
460
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Animations/Spring.luau
luau
.luau
local RunService = game:GetService("RunService") local Types = require(script.Parent.Parent.Types) local ValueMath = require(script.Parent.ValueMath) return function() local Reactive = require(script.Parent.Parent.Reactive)() local SpringModule = { Created = {}, } local Spring = {} Spring.__index = Spring ...
950
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Animations/Tween.luau
luau
.luau
local RunService = game:GetService("RunService") local Types = require(script.Parent.Parent.Types) local ValueMath = require(script.Parent.ValueMath) return function() local Reactive = require(script.Parent.Parent.Reactive)() local TweenModule = { Created = {}, } local Tween = {} Tween.__index = Tween func...
1,987
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Animations/ValueMath.luau
luau
.luau
local function lerp(start, finish, alpha: number, clamp: boolean?) -- Clamp alpha between 0 and 1 if clamp then alpha = math.clamp(alpha, 0, 1) end -- Handle different data types local startType = typeof(start) local finishType = typeof(finish) -- Check if types match if startType ~= finishType then error...
1,687
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Animations/init.luau
luau
.luau
return function() local Animations = { _Created = {}, } local ValueMath = require(script.ValueMath) Animations.ValueMath = ValueMath local Spring = require(script.Spring)() Spring.Created = Animations._Created Animations.Spring = Spring.new local Tween = require(script.Tween)() Tween.Created = Animations....
112
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Components/Cleanup.luau
luau
.luau
return function() local Created = {} local Scopes = {} local CleanupQueued = { PostCleanup = {}, PreCleanup = {}, } -- Cleans up the current Quark scope local function Cleanup() for _, v in CleanupQueued.PreCleanup do task.spawn(v) end for _, list in Created do for _, v in list do if typeof(...
407
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Components/CreateStory.luau
luau
.luau
return function() local Types = require(script.Parent.Parent.Types) local module = { Quark = nil, } -- takes in a function which returns an Instance (or state) -- returns a function that returns a Cleanup function function module.CreateStory( StoryFunc: (Target: Instance) -> Instance | Types.New<any> | { Ins...
222
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Components/New.luau
luau
.luau
return function() local all_events = require(script.Parent.Parent.Misc.all_events) local custom_properties = require(script.Parent.Parent.Misc.custom_properties) local State = require(script.Parent.Parent.Reactive.State)() local Types = require(script.Parent.Parent.Types) local all_instances = require(script.Paren...
1,733
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Components/Scope.luau
luau
.luau
local Scope = {} function Scope.new(created) local base = require(script.Parent.Parent.QuarkBase)() base.Scope = function() return Scope.new(base) end table.insert(created, base) return base end return Scope
48
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Misc/custom_properties.luau
luau
.luau
export type CUSTOM_PROPERTIES = { children: { any } | any, class: string, style: { any }, } export type StyleProperties = { [string]: { corner: UDim | number?, corner_radius: UDim | number?, aspect_ratio: number?, aspect: number?, stroke: { Thickness: number?, Color: Color3?, ApplyStrokeMode: E...
200
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Misc/default_properties.luau
luau
.luau
return { ["TextLabel"] = { Size = UDim2.fromOffset(200, 50), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, }, ["TextBox"] = { Size = UDim2.fromOffset(200, 50), BackgroundColor3 = Color3.new(1, 1, 1), BorderSizePixel = 0, }, ["TextButton"] = { Size = UDim2.fromOffset(200, 50), Backgro...
441
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/QuarkBase.luau
luau
.luau
function new() local Quark = { _CreatedScopes = {}, Scope = function(): Scope return nil::any end } --[[ REACTIVE ]] local Reactive = require(script.Parent.Reactive)() Reactive.Quark = Quark Quark.State = Reactive.State Quark.Signal = Reactive.Signal Quark.Entries = Reactive.Entries --[[ NEW ]] lo...
411
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Reactive/Entries.luau
luau
.luau
local quicklist = require(script.Parent.Parent.quicklist) local Types = require(script.Parent.Parent.Types) return function() local Entries: any = { Created = {}, } function Entries.new(n, func) local Quark = Entries.Reactive.Quark local Children = quicklist() local entry = { Scope = Quark.Scope(), C...
725
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Reactive/Signal.luau
luau
.luau
local Types = require(script.Parent.Parent.Types) return function() local module = { Created = {}, } local Signal = {} Signal.__index = Signal function Signal:Disconnect() if self.state_object[1] then for _, state in self.state_object do if state.connections[self.id] then state.connections[self....
262
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Reactive/State.luau
luau
.luau
local Types = require(script.Parent.Parent.Types) return function() local Signal = require(script.Parent.Signal)() local module = { Created = {}, } local function HandleComputedState(default, self) if type(default) == "function" then coroutine.wrap(function() self.value = default(function(dependency: T...
490
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Reactive/init.luau
luau
.luau
return function() local State = require(script.State)() local Signal = require(script.Signal)() local Entries = require(script.Entries)() local Reactive = { Created = {}, } State.Created = Reactive.Created Signal.Created = Reactive.Created Entries.Created = Reactive.Created Entries.Reactive = Reactive Rea...
97
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Styles/StyleSheet.luau
luau
.luau
local all_properties = require(script.Parent.Parent.Misc.all_properties) local custom_properties = require(script.Parent.Parent.Misc.custom_properties) local Types = require(script.Parent.Parent.Types) return function() local module = { Created = {}, _class_id = "__class__", } function module.Class(name: strin...
1,121
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Styles/init.luau
luau
.luau
return function() local Stylesheet = require(script.Stylesheet)() local Styles = { Created = {}, } Styles.Stylesheet = Stylesheet Styles.Created = Stylesheet.Created return Styles end
46
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/Types.luau
luau
.luau
local all_properties = require(script.Parent.Misc.all_properties) local all_events = require(script.Parent.Misc.all_events) local all_instances = require(script.Parent.Misc.all_instances) local custom_properties = require(script.Parent.Misc.custom_properties) local quicklist = require(script.Parent.quicklist) type Stat...
1,856
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/init.luau
luau
.luau
local QuarkBase = require(script.QuarkBase) local Quark = QuarkBase() local Scope = require(script.Components.Scope) Quark.Scope = function() return Scope.new(Quark._CreatedScopes) end return (Quark :: any) :: QuarkBase.Quark
59
creepersaur/quark
creepersaur-quark-0ef88d1/src/shared/Quark/quicklist.luau
luau
.luau
ql = {} export type QuickList<T> = { t: { [number]: T }, copy: () -> QuickList<T>, deep_copy: () -> QuickList<T>, insert: (pos: number?, value: T) -> QuickList<T>, append: (...T) -> QuickList<T>, append_table: (_table: { [T]: T }) -> QuickList<T>, join: (sep: string?) -> string, split: (index: number?) -> Quic...
4,313
Steadyon/TweenServiceV2
Steadyon-TweenServiceV2-6288881/ReplicatedTweening.luau
luau
.luau
-- V.2.2 --[[Created by SteadyOn THIS MODULE MUST BE IN REPLICATEDSTORAGE - YOU NEED TO REQUIRE THIS MODULE SOMEWHERE ON THE CLIENT: require(game.ReplicatedStorage.ReplicatedTweening) Documentation: :Create(instance [Instance], TweenInfo [TweenInfo Object], PropertyTable [Table]) [Tween] Parameters are exactly...
3,385
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Bootloader/src/init.luau
luau
.luau
local STAGES = { "Created", "Initialized", "Started", "Destroyed", } local function NewBootloader(ModuleScripts: { ModuleScript }) local Bootloader = { Stage = STAGES[1], Systems = {}, } function Bootloader:Destroy() assert(Bootloader.Stage == STAGES[3], `Must be at stage {STAGES[3]}.`) Bootloader.Stag...
308
loneka/moonlets
loneka-moonlets-a2f46c2/modules/CoreThemer/src/init.luau
luau
.luau
local Players = game:GetService("Players") local StarterGui = game:GetService("StarterGui") local TextChatService = game:GetService("TextChatService") local MouseLockController = Players.LocalPlayer.PlayerScripts :WaitForChild("PlayerModule") :WaitForChild("CameraModule") :WaitForChild("MouseLockController") local...
1,352
loneka/moonlets
loneka-moonlets-a2f46c2/modules/EnumSerDes/bundler.luau
luau
.luau
return require(script.Packages.EnumSerDes)
9
loneka/moonlets
loneka-moonlets-a2f46c2/modules/EnumSerDes/src/init.luau
luau
.luau
export type SerEnumItem = { EnumType: string, Value: number, } local TableUtil = require(script.Parent.TableUtil) local EnumSerDes = {} function EnumSerDes.DeserializeTree(Tree) local NewTree = TableUtil.Copy(Tree, true) for Key, Value in pairs(Tree) do if typeof(Value) == "table" then if (typeof(Value.Enu...
393
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Footstepper/src/DefaultSounds.luau
luau
.luau
return { Brick = { SoundId = "rbxassetid://16829037315", Volume = 0.4, }, Climb = { SoundId = "rbxassetid://145180175", Volume = 0.3, }, Cobblestone = { SoundId = "rbxassetid://16829037315", Volume = 0.4, }, Concrete = { SoundId = "rbxassetid://16829037315", Volume = 0.4, }, CorrodedMetal = { ...
1,147
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Footstepper/src/init.luau
luau
.luau
local Players = game:GetService("Players") local DefaultSounds = require(script.DefaultSounds) local BLACKLISTEED_MATERIALS = { Enum.Material.Air, Enum.Material.Water } local Footstepper = { BaseVolume = 5, } function Footstepper:UpdateSounds(Sounds: { Sound }, SoundProperties: { [string]: any }) for _, Sound in ...
846
loneka/moonlets
loneka-moonlets-a2f46c2/modules/GamepassHandler/bundler.luau
luau
.luau
return require(script.Packages.GamepassHandler)
9
loneka/moonlets
loneka-moonlets-a2f46c2/modules/HumanoidDescriber/bundler.luau
luau
.luau
return require(script.Packages.HumanoidDescriber)
11
loneka/moonlets
loneka-moonlets-a2f46c2/modules/HumanoidDescriber/src/AvatarAssetTypes.luau
luau
.luau
local AvatarAssetTypes = { Types = { RigidAccessories = { Enum.AvatarAssetType.BackAccessory, Enum.AvatarAssetType.FaceAccessory, Enum.AvatarAssetType.HairAccessory, Enum.AvatarAssetType.NeckAccessory, Enum.AvatarAssetType.FrontAccessory, Enum.AvatarAssetType.WaistAccessory, Enum.AvatarAssetType...
808
loneka/moonlets
loneka-moonlets-a2f46c2/modules/HumanoidDescriber/src/init.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local Signal = require(script.Parent.Signal) local AvatarAssetTypes = require(script.AvatarAssetTypes) local AssetAccessoryTypes = require(script.AssetAccessoryTypes) local Future = require(script.Parent.Future) local TableUtil = require(script.Parent.Ta...
4,461
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Instantiate/src/init.luau
luau
.luau
local function Instantiate(ClassOrInstance: string | Instance) local Object: Instance if typeof(ClassOrInstance) == "string" then Object = Instance.new(ClassOrInstance) elseif typeof(ClassOrInstance) == "Instance" then Object = ClassOrInstance end return function(Properties: { [string]: any | (typeof(Object)...
169
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Leaderboard/bundler.luau
luau
.luau
return require(script.Packages.Leaderboard)
9
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Leaderboard/src/init.luau
luau
.luau
local Players = game:GetService("Players") local Instantiate = require(script.Parent.Instantiate) local TYPE_CLASSES = { int = "IntValue", number = "NumberValue", string = "StringValue", boolean = "BoolValue", Instance = "ObjectValue", BrickColor = "BrickColorValue", Color3 = "Color3Value", Vector3 = "Vector3...
440
loneka/moonlets
loneka-moonlets-a2f46c2/modules/SessionStore/bundler.luau
luau
.luau
return require(script.Packages.SessionStore)
8
loneka/moonlets
loneka-moonlets-a2f46c2/modules/SessionStore/src/init.luau
luau
.luau
local Players = game:GetService("Players") local Signal = require(script.Parent.Signal) export type SessionData = { any } export type MetaData = { CreationTime: number, } export type SessionProfile = { Data: SessionData, MetaData: MetaData, UpdateData: (SessionProfile, SessionData) -> SessionData, DataUpdated: S...
387
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Stator/bundler.luau
luau
.luau
return require(script.Packages.Stator)
8
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Stator/src/DeepEquals.luau
luau
.luau
local function DeepEquals(TableA: { [any]: any }, TableB: { [any]: any }) for Key, Value in pairs(TableA) do if typeof(Value) == "table" then if not DeepEquals(TableB[Key], Value) then return false end elseif Value ~= TableB[Key] then return false end end return true end return DeepEquals
94
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Stator/src/init.luau
luau
.luau
local TableUtil = require(script.Parent.TableUtil) local DeepEquals = require(script.DeepEquals) local function CopyIfTable(Value) if typeof(Value) == "table" then return TableUtil.Copy(Value, true) else return Value end end local function Equals(A, B) if (typeof(A) == "table") and (typeof(B) == "table") then...
486
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Wrapper/bundler.luau
luau
.luau
return require(script.Packages.Wrapper)
8
loneka/moonlets
loneka-moonlets-a2f46c2/modules/Wrapper/src/init.luau
luau
.luau
local CollectionService = game:GetService("CollectionService") local Signal = require(script.Parent.Signal) local function NewWrapper<Value, Destroy>(Construct: (Instance) -> (Value, Destroy)) assert(Construct ~= nil, "Construct argument not provided") export type Wrap = { Value: Value, Destroy: () -> (), } ...
666
loneka/moonlets
loneka-moonlets-a2f46c2/scripts/pesdeToWally.luau
luau
.luau
local fs = require("@lune/fs") local serde = require("@lune/serde") local function convertDependencies(pesdeDependencies) local wallyDependencies = {} for alias, dependency in pairs(pesdeDependencies) do if next(dependency) ~= nil then assert(dependency.name == nil, `Package relies on Pesde package.`) if d...
395
loneka/moonlets
loneka-moonlets-a2f46c2/tests/init.luau
luau
.luau
local Tests = { BuiltIn = {}, KillCallbacks = {}, } function Tests:Run(ModuleScript: ModuleScript): () -> () local NewModule = ModuleScript:Clone() NewModule.Parent = ModuleScript.Parent local Kill = require(NewModule) table.insert(Tests.KillCallbacks, Kill) return Kill end function Tests:RunAll(ModuleScript...
185
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/BaseScreenGui.luau
luau
.luau
--Base ScreenGui instance. --!strict local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance")) local BaseScreenGui = {} BaseScreenGui.ClassName = "BaseScreenGui" BaseScreenGui.__index = BaseScreenGui export type BaseScreenGui<T> = { Container: T, RotationOffse...
781
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui.luau
luau
.luau
--Contains user interface components. --!strict local UserInputService = game:GetService("UserInputService") local BaseScreenGui = require(script.Parent:WaitForChild("BaseScreenGui")) local ScreenGui3D = require(script.Parent:WaitForChild("ScreenGui3D")) local ScreenGui2D = require(script.Parent:WaitForChild("ScreenG...
139
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui2D.luau
luau
.luau
--Implementation of a ScreenGui for 2D players. --!strict local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance")) local BaseScreenGui = require(script.Parent:WaitForChild("BaseScreenGui")) local ScreenGui2D = {} ScreenGui2D.ClassName = "ScreenGui2D" ScreenGui2D.__ind...
303
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui3D.luau
luau
.luau
--Contains user interface components for a 3D user interface. --!strict local Workspace = game:GetService("Workspace") local RunService = game:GetService("RunService") local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance")) local BaseScreenGui = require(script.Parent...
1,125
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/Utility/PartUtility.luau
luau
.luau
--Utility for parts. local PartUtility = {} --[[ Helper function for ray casting. --]] function PartUtility.RaycastToFront(AimingCFrame: CFrame, Size: Vector3, FrontCFrame: CFrame): (number, number, number) FrontCFrame = FrontCFrame * CFrame.new(0, 0, -Size.Z / 2) --Convert the aiming CFrame to a local CFr...
1,396
TheNexusAvenger/Nexus-VR-Core
TheNexusAvenger-Nexus-VR-Core-c547d32/src/init.luau
luau
.luau
--Main module for Nexus VR Core. --!strict local BaseScreenGui = require(script:WaitForChild("Container"):WaitForChild("BaseScreenGui")) local ScreenGui = require(script:WaitForChild("Container"):WaitForChild("ScreenGui")) local ScreenGui2D = require(script:WaitForChild("Container"):WaitForChild("ScreenGui2D")) local ...
379
cameronpcampbell/Ignite
cameronpcampbell-Ignite-61cf3cc/PackageLinks/default/Fusion.luau
luau
.luau
local Fusion = require(script.Parent.Parent.Parent.Parent["elttob_fusion@0.3.0"]["fusion"]) type Fusion = typeof(Fusion) export type Animatable = Fusion.Animatable export type UsedAs<T> = Fusion.UsedAs<T> export type Child = Fusion.Child export type Computed<T> = Fusion.Computed<T> export type Contextual<T> = Fusion.C...
232
cameronpcampbell/Ignite
cameronpcampbell-Ignite-61cf3cc/PackageLinks/default/Highlighter.luau
luau
.luau
return require(script.Parent.Parent.Parent.Parent["boatbomber_highlighter@0.8.3"]["highlighter"])
24
cameronpcampbell/Ignite
cameronpcampbell-Ignite-61cf3cc/src/Components/Accordion.luau
luau
.luau
--!strict --> Modules ------------------------------------------------------------------------------------------- local Components = script.Parent local CoreComponents = Components.Core local Squircle = require(CoreComponents.Squircle) local TextLabel = require(CoreComponents.TextLabel) local Arrow = require(CoreComp...
1,569
cameronpcampbell/Ignite
cameronpcampbell-Ignite-61cf3cc/src/Components/Background.luau
luau
.luau
--!strict --> Services ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------- --> Modules --------------------------------------------------------------------------------------...
125
cameronpcampbell/Ignite
cameronpcampbell-Ignite-61cf3cc/src/Components/Button.luau
luau
.luau
--!strict --> Services ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------- --> Modules --------------------------------------------------------------------------------------...
1,178
cameronpcampbell/Ignite
cameronpcampbell-Ignite-61cf3cc/src/Components/Checkbox.luau
luau
.luau
--!strict --> Modules ------------------------------------------------------------------------------------------- local Components = script.Parent local CoreComponents = Components.Core local Squircle = require(CoreComponents.Squircle) local Modules = script.Parent.Parent.Modules local Component = require(Modules.Co...
787