repo stringclasses 350
values | file_path stringlengths 29 200 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.01M | tokens int64 2 598k |
|---|---|---|---|---|---|
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 |
Perthys/chalk | Perthys-chalk-cb019a7/src/init.luau | luau | .luau | export type ChalkColor = Color3 | string
export type StrokeJoins = "round" | "bevel" | "miter"
export type StrokeSizing = "fixed" | "scaled"
export type StrokeOptions = {
Color: ChalkColor;
Joins: StrokeJoins?;
Thickness: number?;
Transparency: number?;
Sizing: StrokeSizing?;
}
export type MarkOptions = {
Colo... | 3,194 |
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 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Container.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... | 2,291 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/Arrow.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 629 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/CodeLabel.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent
local TextLabel = require(CoreComponents.TextLabel)
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
local Packages =... | 224 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/FocusVisual.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
local GuiService = game:GetService("GuiService")
-------------------------------------------------------------------------------------------------------
--> Modules -------------------------------------... | 535 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/Squircle.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 278 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/TextLabel.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
local ComputeTransforms = require(Modules.ComputeTransforms)
local TableUtils = require(Modules.TableUtils)... | 594 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/EmbeddedContainer.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent.Core
local Squircle = require(CoreComponents.Squircle)
local Modules = script.Parent.Parent.Modules
local Component = require( Modules.Component)
local CombineProps =... | 678 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/ImageBackground.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Component)
local CombineProps = require(Modules.CombineProps)
local TableUtils = require(Modules.TableUtils)
local Packages ... | 483 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Map.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local Container = require(Components.Container)
local TextInput = require(Components.TextInput)
local CoreComponents = Components.Core
local TextLabel = require(CoreCompo... | 2,823 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Navigation.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... | 2,072 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Padding/PaddingLarge.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
-------------------------------------------------------------------------------------------------------
r... | 97 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Padding/PaddingSmall.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
-------------------------------------------------------------------------------------------------------
r... | 97 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Progress.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent.Core
local Squircle = require(CoreComponents.Squircle)
local TextLabel = require(CoreComponents.TextLabel)
local Modules = script.Parent.Parent.Modules
local Componen... | 1,306 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Scrollable.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Component)
local CombineProps = require(Modules.CombineProps)
local ForceToState = require(Modules.ForceToState)
local TableU... | 1,101 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Slider.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 1,652 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Switch.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Component)
local ComputeTransforms = require(Modules.ComputeTransforms)
local ForceToState = require(Modules.ForceToState)
lo... | 1,265 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Tabs.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 1,585 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/TextInput.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
local GuiService = game:GetService("GuiService")
local UserInputService = game:GetService("UserInputService")
----------------------------------------------------------------------------------------------... | 3,244 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Widget.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
local StarterGui = game:GetService("StarterGui")
-------------------------------------------------------------------------------------------------------
--> Modules -------------------------------------... | 741 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/LICENSE.luau | luau | .luau | --[[
MIT License
Copyright (c) 2024 Cameron Campbell
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | 222 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/CombineProps.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Packages = script.Parent.Parent.Packages
local Fusion = require(Packages.Fusion)
-------------------------------------------------------------------------------------------------------
--> Variabl... | 231 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/Component/Component.Types.luau | luau | .luau | --> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent
local RootEventHandlersUtils = require(Modules.RootEventHandlersUtils)
local ThemeHandler = require(Modules.ThemeHandler)
local Packages = script.Parent.Parent.Parent.Packages
lo... | 130 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/Component/init.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local ComponentTypes = require(script["Component.Types"])
local Modules = script.Parent
local CombineProps = require(Modules.CombineProps)
local Packages = script.Parent.Parent.Packages
local Fusion = r... | 159 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ComputeMath.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 735 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ComputeTransforms.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 573 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ForceToState.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Packages = script.Parent.Parent.Packages
local Fusion = require(Packages.Fusion)
-------------------------------------------------------------------------------------------------------
return func... | 94 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/RootEventHandlersUtils.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 877 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/TableUtils.luau | luau | .luau | return {
CountKeys = function(tble: { [any]: any }): number
local length = 0
for _ in tble do length += 1 end
return length
end,
HasItems = function(tble: { [any]: any }): boolean
for _ in tble do return true end
return false
end,
Take = function<K, V>(tble: { [K]: V }, keyOrIndex: K, default: V?)
lo... | 247 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ThemeHandler/DefaultThemes.luau | luau | .luau | --> Modules -------------------------------------------------------------------------------------------
local Types = require(script.Parent["ThemeHandler.Types"])
-------------------------------------------------------------------------------------------------------
--> Types -----------------------------------------... | 209 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ThemeHandler/ThemeHandler.Types.luau | luau | .luau | export type ThemeConfig = {
Background: {
Primary: Color3,
Secondary: Color3,
Tertiary: Color3,
Stroke: Color3
},
Text: {
Title: Color3,
Body: Color3
},
Accent: {
Primary: Color3,
Secondary: Color3,
Destructive: Color3
}
}
export type ThemeFlatConfig = {
["Background... | 255 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ThemeHandler/init.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Types = require(script["ThemeHandler.Types"])
local DefaultThemes = require(script.DefaultThemes)
local Packages = script.Parent.Parent.Packages
local Fusion = require(Packages.Fusion)
------------... | 871 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ThemeHandlerOld.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 980 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/TrackProperty.luau | luau | .luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Packages = script.Parent.Parent.Packages
local Fusion = require(Packages.Fusion)
-------------------------------------------------------------------------------------------------------
--> Variabl... | 357 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/init.luau | luau | .luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 365 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-b48d89a/source/Client.luau | luau | .luau | --!optimize 2
--!native
-- Services.
local CollectionService = game:GetService("CollectionService")
local RunService = game:GetService("RunService")
-- Attempt to find the plugin object.
local plugin = script:FindFirstAncestorOfClass("Plugin")
-- Network packets.
local packets
if not plugin and RunService:IsRunning(... | 3,321 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-b48d89a/source/Data/Defaults.luau | luau | .luau | --!optimize 2
-- Services.
local CollectionService = game:GetService("CollectionService")
-- Attempt to find the plugin object.
local plugin = script:FindFirstAncestorOfClass("Plugin")
-- Default defaults.
local defaults = {
Time = 1,
EasingStyle = "Linear",
EasingDirection = "In",
DelayTime = 0,
Reverses =... | 408 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-b48d89a/source/Data/Types.luau | luau | .luau | -- Signal types from Signal+.
export type Signal<Parameters...> = {
Connect: typeof(
-- Connects a function.
function(signal: Signal<Parameters...>, callback: (Parameters...) -> ()): Connection end
),
Once: typeof(
-- Connects a function, then auto-disconnects after the first call.
function(signal: Signal<Pa... | 485 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-b48d89a/source/Server.luau | luau | .luau | --!optimize 2
--!native
-- Services.
local CollectionService = game:GetService("CollectionService")
local ServerStorage = game:GetService("ServerStorage")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
-- Get and verify network packets.
local packets = CollectionService:Ge... | 3,754 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-b48d89a/source/Utilities/EasingFunctions.luau | luau | .luau | --!optimize 2
--!native
-- Services.
local CollectionService = game:GetService("CollectionService")
-- Elastic constants.
local elasticInP = 0.3
local elasticInA = 1.0
local elasticInS = elasticInP*0.25
local elasticOutP = 0.3
local elasticOutA = 1.0
local elasticOutS = elasticOutP*0.25
local elasticInOutP = 0.45
loc... | 2,785 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-b48d89a/source/Utilities/UpdateFunctions.luau | luau | .luau | --!optimize 2
-- Value functions.
local valueFunctions = require(script.Parent.ValueFunctions)
local normalValueFunctions = valueFunctions.Normal
local normalBezierValueFunctions = normalValueFunctions.Bezier
local advancedValueFunctions = valueFunctions.Advanced
-- Property validation function.
local function check... | 811 |
AlexanderLindholt/TweenPlus | AlexanderLindholt-TweenPlus-b48d89a/source/Utilities/ValueFunctions.luau | luau | .luau | --!optimize 2
--!native
local function numberLerp(a, b)
local difference = b - a
return function(alpha)
return a + difference*alpha
end
end
local function normalize(x, y, z, w)
local m = math.sqrt(x*x + y*y + z*z + w*w)
if m == 0 then return 0, 0, 0, 1 end
m = 1/m
return x*m, y*m, z*m, w*m
end
local function... | 7,610 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Async.luau | luau | .luau | --!strict
local Compat = require("./Compat")
local Graph = require("./Graph")
local raw = Graph.raw
local new = Graph.new
local readDep = Graph.readDep
local rawDep = Graph.rawDep
local untrack = Graph.untrack
local retrack = Graph.retrack
local task = Compat.task
local function gatedOff(src: any, input: any): bool... | 1,491 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Bind.luau | luau | .luau | --!strict
local Compat = require("./Compat")
local Graph = require("./Graph")
local get = Graph.Node.get
local new = Graph.new
local raw = Graph.raw
local readDep = Graph.readDep
local untrack = Graph.untrack
local isNode = Graph.isNode
local withOwner = Graph.withOwner
local task = Compat.task
-- Marker wrapping a... | 3,353 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Clean.luau | luau | .luau | --!strict
export type Cleanable = () -> () | Instance | RBXScriptConnection | any | thread | { [number]: Cleanable }
local Compat = require("./Compat")
local warn = Compat.warn
local task = Compat.task
local traceback = Compat.traceback
local function invoke(fn: any, arg: any?)
local ok, err = xpcall(fn, traceback... | 561 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Compat.luau | luau | .luau | --!strict
-- Roblox/headless (vanilla Luau CLI) runtime compat: `warn` and `task` only
-- exist in Roblox; each fallback is the closest semantic the bare VM offers.
local warnShim = warn or print
local function resume(fnOrThread: any, ...: any): thread
local thread = if type(fnOrThread) == "thread" then fnOrThread ... | 214 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Conditional.luau | luau | .luau | --!strict
local Graph = require("./Graph")
local new = Graph.new
local readDep = Graph.readDep
local set = Graph.Node.set
local untrack = Graph.untrack
local retrack = Graph.retrack
local scope = Graph.scope
local withOwner = Graph.withOwner
type Node<T> = Graph.Node<T>
local DEFAULT_SYMBOL = table.freeze({ type = ... | 1,724 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Construct.luau | luau | .luau | --!strict
local Defaults = require("./Defaults")
local Edit = require("./Edit")
local Flags = require("./Flags")
local Graph = require("./Graph")
local getOwner = Graph.getOwner
local onDestroy = Graph.onDestroy
-- Builds an instance through the standard pipeline: per-class defaults, owner-scoped cleanup
-- (so an i... | 196 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Context.luau | luau | .luau | --!strict
export type Context<T> = {
default: T,
_current: T,
get: (self: Context<T>) -> T,
provide: <R>(self: Context<T>, value: T, fn: () -> R) -> R,
}
local Context = {}
--[[
Reads the current value: the innermost active `provide` on the call stack, falling back to the `default` when
none is active. Callable ... | 524 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Defaults.luau | luau | .luau | if game == nil then
return {} :: { [string]: { [string]: unknown } }
end
return {
Part = {
Material = Enum.Material.SmoothPlastic,
Size = vector.create(1, 1, 1),
Anchored = true,
},
BillboardGui = {
ResetOnSpawn = false,
ZIndexBehavior = Enum.ZIndexBehavior.Sibling,
},
CanvasGroup = nil,
Frame = {
... | 844 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Directive.luau | luau | .luau | --!strict
local Graph = require("./Graph")
local isNode = Graph.isNode
type Node = Graph.Node<any>
export type Tag = Node | string | (() -> string | { string })
export type tagValue = Tag | { Tag }
local Directive = {}
--[[
One-off form of the `_ATTR` directive: place `Flux.attr("Name", value)` or `Flux.attr { Nam... | 1,239 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Edit.luau | luau | .luau | --!strict
local Bind = require("./Bind")
local Clean = require("./Clean")
local Compat = require("./Compat")
local Directive = require("./Directive")
local Graph = require("./Graph")
local Find = require("./Find")
local Type = require("./Type")
local FIND_SYMBOL = Find.Symbol
local MODEL_SYMBOL = Bind.MODEL_SYMBOL
l... | 2,466 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Find.luau | luau | .luau | --!strict
local Compat = require("./Compat")
local Type = require("./Type")
local warn = Compat.warn
local Symbol = table.freeze({ type = "Symbol" }) :: Type.Symbol
local function indexParent(instance: Instance): Instance?
return instance.Parent
end
local function queryFirst(instance: Instance, query: string): In... | 1,924 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Flags.luau | luau | .luau | --!strict
return {
--[[
Global on/off switch for the automatic per-class defaults system. When `true` (the default), every Roblox
[`Instance`](https://create.roblox.com/docs/reference/engine/classes/Instance) built by
[`Flux.new`](https://flux.kohl.gg/guide/roblox/creation#the-flux-new-function) has its matching `F... | 144 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/For.luau | luau | .luau | --!strict
local Clean = require("./Clean")
local Compat = require("./Compat")
local Graph = require("./Graph")
local new = Graph.new
local newValue = Graph.signal
local read = Graph.read
local setValue = Graph.Node.set
local untrack = Graph.untrack
local withOwner = Graph.withOwner
local warn = Compat.warn
export ty... | 1,447 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Graph.luau | luau | .luau | --!strict
--[[
Lazy reactivity for Luau (push-pull / fine-grained reactivity).
Observable primitives auto-track dependencies and recompute only what's read.
Primitives:
Graph.signal(value, equals?) -- writable source
Graph.computed(fn, equals?) -- derived value, recomputed on demand
Graph.effect... | 8,329 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Interact.luau | luau | .luau | --!strict
local Graph = require("./Graph")
local isNode = Graph.isNode
export type Group = {
activate: (self: Group, state: Graph.Node<boolean>) -> (),
deactivate: (self: Group, state: Graph.Node<boolean>) -> (),
toggle: (self: Group, state: Graph.Node<boolean>) -> (),
clear: (self: Group) -> (),
_active: Graph... | 1,097 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Motion/Color.luau | luau | .luau | --!strict
local sRGB = {}
local function fromLinear(channel: number): number
if channel < 0.0031308 then
return channel * 12.92
else
return channel ^ (1 / 2.4) * 1.055 - 0.055
end
end
local function toLinear(channel: number): number
if channel < 0.04045 then
return channel / 12.92
else
return ((channel ... | 3,775 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Motion/DataType.luau | luau | .luau | --!strict
local Color = require("./Color")
local Oklab = Color.Oklab
export type Animatable =
number
& vector
& CFrame
& Color3
& ColorSequence
& ColorSequenceKeypoint
& DateTime
& NumberRange
& NumberSequence
& NumberSequenceKeypoint
& PhysicalProperties
& Ray
& Rect
& Region3
& Region3int16
& UDim
... | 2,450 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Motion/init.luau | luau | .luau | --!strict
local Color = require("@self/Color")
local Compat = require("./Compat")
local DataType = require("@self/DataType")
local Engine = require("@self/Engine")
local Graph = require("./Graph")
local PACK = DataType.pack
local isNode = Graph.isNode
local raw = Graph.raw
local read = Graph.read
type Spring<T> = {... | 2,220 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Safe.luau | luau | .luau | --!strict
local Graph = require("./Graph")
local new = Graph.new
local untrack = Graph.untrack
--[[ Runs `handler` untracked to recover from `err`, re-raising the handler's own error (with its original message preserved) if it throws in turn. ]]
local function recover<T>(handler: (err: unknown) -> T, err: unknown): ... | 591 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Selector.luau | luau | .luau | --!strict
local Graph = require("./Graph")
local new = Graph.new
local newValue = Graph.signal
local get = Graph.Node.get
local readDep = Graph.readDep
local rawDep = Graph.rawDep
local untrack = Graph.untrack
local retrack = Graph.retrack
local withOwner = Graph.withOwner
local setValue = Graph.Node.set
local isReac... | 1,208 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Store.luau | luau | .luau | --!strict
local Graph = require("./Graph")
local Compat = require("./Compat")
local new = Graph.new
local newValue = Graph.signal
local get = Graph.Node.get
local setValue = Graph.Node.set
local scope = Graph.scope
local withOwner = Graph.withOwner
local onDestroy = Graph.onDestroy
local isReactive = Graph.isReactive... | 4,397 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Type/init.luau | luau | .luau | local Graph = require("./Graph")
local Instances = require("@self/Instances")
export type Action = () -> ()
export type Consumer = (...any) -> ()
export type Producer = () -> ...any
export type Function = (...any) -> ...any
export type Map<T> = { [T]: any }
export type Symbol = { read type: "Symbol" }
type _ATTR = "... | 825 |
kohltastrophe/flux | kohltastrophe-flux-aff69f9/src/Wrap.luau | luau | .luau | --!strict
local Graph = require("./Graph")
local isNode = Graph.isNode
local createNode = Graph.new
type function wrappedType(obj: type, node: type)
local nodeMT = node:metatable()
local nodeIndexer = node:indexer()
local function makeNode(value: type): type
local mt, indexer = nodeMT, nodeIndexer
if not mt ... | 939 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/external/GuiTemplates.luau | luau | .luau | -- Retrieves GuiTemplates
-- @module GuiTemplates
-- @author Quenty
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TemplateProvider = shared("TemplateProvider") ---@module TemplateProvider
local provider = TemplateProvider.new(ReplicatedStorage.GuiTemplates)
provider:Provide()
return provider... | 66 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/lib/UI/AtomicButton.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: AtomicButton.luau
Version: 1.3.2
]]
-- Dependencies
local AtomicPane = shared("AtomicPane")
-- Types
export type AtomicButton = {
-- Metatable members
__index: AtomicButton,
ClassName: "AtomicButton",
-- Public members
new: (template: string | Instance, ins... | 2,048 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/lib/UI/CoreUI.storybook.luau | luau | .luau | local storybook = {
name = "Core UI",
storyRoots = {
script.Parent,
},
}
return storybook
| 28 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/lib/UI/ScreenGui.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: ScreenGui.luau
Version: 1.0.0
]]
--[=[
@class ScreenGui
@client
Utility for creating `ScreenGui` instances with sensible defaults.
Automatically parents to `PlayerGui` at runtime, or to `CoreGui` when
running inside a story environment.
]=]
-- Services
local P... | 303 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/AnalyticsClient.luau | luau | .luau | --[[
AnalyticsClient.lua
ChiefWildin
Version: 1.2.0
]]
-- Services
-- Main job table
local AnalyticsClient = { Priority = 5000 }
-- Dependencies
local GamebeastSDK = shared("GamebeastSDK") ---@module GamebeastSDK
-- Constants
-- Global variables
-- Objects
-- Private functions
-- Public functions
-- Frame... | 106 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/CmdrStarter.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: CmdrStarter.lua
Version: 1.0.0
]]
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- Module Declaration
local CmdrStarter = {}
-- Task Initialization
function CmdrStarter:Init()
local CmdrClient = require(ReplicatedStorage:Wai... | 118 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/DataController.luau | luau | .luau | --[[ File Info
Module: DataController.luau
Author(s): ChiefWildin
Version: 2.4.0
]]
--[=[
@class DataController
@client
Handles data replication coming from the server.
]=]
-- Services
local RunService = game:GetService("RunService")
-- Task Declaration
local DataController = { Priority = 10 }
-- Depende... | 1,043 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/BranchButton.story.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: BranchButton.story.luau
Version: 1.0.0
]]
local shared = require(game.ReplicatedStorage.Order)
local BranchButton = shared("BranchButton") ---@module BranchButton
local Story = {
controls = {
Visible = true,
},
render = function(props)
local pane = BranchButto... | 283 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Branches.storybook.luau | luau | .luau | local storybook = {
name = script.Parent.Name,
storyRoots = {
script.Parent,
},
}
return storybook
| 28 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Components/BranchButton.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: BranchButton.luau
Version: 1.0.0
]]
-- Services
-- Dependencies
local AtomicButton = shared("AtomicButton") ---@module AtomicButton
local BranchButtonTemplate = shared("BranchButtonTemplate") ---@module BranchButtonTemplate
-- Types
-- Module Declaration
local Br... | 543 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Components/BranchButtonTemplate.luau | luau | .luau | local function BranchButtonTemplate(): GuiBase2d
local branchButton = Instance.new("Frame")
branchButton.Name = "BranchButton"
branchButton.AnchorPoint = Vector2.new(0.5, 0.5)
branchButton.BackgroundTransparency = 1
branchButton.Position = UDim2.fromScale(0.5, 0.5)
branchButton.Size = UDim2.new(1, 0, 0, 80)
loc... | 910 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Components/BranchCloseButton.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: BranchCloseButton.luau
Version: 1.0.0
]]
-- Services
-- Dependencies
local AtomicButton = shared("AtomicButton") ---@module AtomicButton
local BranchCloseButtonTemplate = shared("BranchCloseButtonTemplate") ---@module BranchCloseButtonTemplate
-- Types
-- Module D... | 444 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/client/core/tasks/UI/Branches/Components/BranchCloseButtonTemplate.luau | luau | .luau | local function BranchCloseButtonTemplate(): GuiBase2d
local branchCloseButton = Instance.new("Frame")
branchCloseButton.Name = "BranchCloseButton"
branchCloseButton.AnchorPoint = Vector2.new(1, 0)
branchCloseButton.BackgroundTransparency = 1
branchCloseButton.Position = UDim2.new(1, 0, 0, 0)
branchCloseButton.Siz... | 750 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/framework/Bootstrapper.client.luau | luau | .luau | require(game:GetService("ReplicatedStorage"):WaitForChild("Order"))
| 15 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/framework/CycleMetatable.luau | luau | .luau | local CycleMetatable
local function warning(self, message: string)
warn(
"Detected bare code referencing a cyclic dependency ("
.. tostring(CycleMetatable.CurrentModuleLoading)
.. " -> "
.. tostring(self.Name)
.. ").",
message,
debug.traceback(1)
)
end
CycleMetatable = {
__index = function(self, ... | 585 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/framework/Settings.luau | luau | .luau | export type Initializer = {
Name: string,
Async: boolean,
Protected: boolean,
WarnDelay: number,
}
export type OrderSettings = {
Debug: {
CyclicAnalysis: boolean,
VerboseLoading: boolean,
},
PlaceTypes: { [number]: string },
CodeGroups: { [string]: { [string]: true } },
InitOrder: "Individual" | "Project"... | 586 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/external/data/ReplicaServiceListeners.luau | luau | .luau | --[[
{Madwork}
-[ReplicaServiceListeners]
Injects listener methods to the Replica class server-side - these methods are otherwise
only accessible client-side due to personal decisions based on code sanity.
More information about the decision to opt out server-side listeners can be found here:
https://devforum.r... | 4,023 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/lib/BadgeGiver.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: BadgeGiver.luau
Version: 1.0.1
]]
-- Services
local BadgeService = game:GetService("BadgeService")
local RunService = game:GetService("RunService")
-- Dependencies
local PlayerData = shared("PlayerData") ---@module PlayerData
local rcall = shared("rcall") ---@modul... | 462 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/AnalyticsServer.luau | luau | .luau | --[[
AnalyticsServer.luau
ChiefWildin
Version: 1.2.0
]]
-- Services
local AnalyticsService = game:GetService("AnalyticsService")
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
-- Dependencies
local GamebeastSDK = shared("GamebeastSDK") ---@module GamebeastSDK
lo... | 377 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.