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
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Filled/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = re...
2,255
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Filled/Defaults.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
804
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Filled/Fusion.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
1,969
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Filled/React.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
3,393
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Filled/Roact.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
3,378
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Filled/Wrapper.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
2,656
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Filled/_Config.story.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("Maid")) -- Modules local Style = require(_Package:WaitForChild("Style")) local Enums = require(_Packag...
2,086
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Filled/_Theme.story.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("Maid")) -- Modules local Style = require(_Package:WaitForChild("Style")) local Enums = require(_Packag...
759
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Outlined/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = re...
2,185
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Outlined/Defaults.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
794
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Outlined/Fusion.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
1,947
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Outlined/React.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
3,365
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Outlined/Roact.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
3,350
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Outlined/Wrapper.luau
luau
.luau
--!strict -- this script was generated by the build system, please do not make manual edits local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) ...
2,624
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Component/TextField/Outlined/_Config.story.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("Maid")) -- Modules local Style = require(_Package:WaitForChild("Style")) local Enums = require(_Packag...
1,999
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Enums.luau
luau
.luau
--strict -- this script was generated by nightcycle/pseudo-enum, do not manually edit export type SoundType = "hero_simple_celebration_02" | "navigation_cancel" | "ui_tap_variant_03" | "alert_error_03" | "notification_ambient" | "state_change_confirm_up" | "ringtone_minimal" | "hero_decorative_celebration_01" ...
5,107
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Sounds.luau
luau
.luau
--!strict local _Package = script.Parent local _Packages = _Package.Parent -- Services local SoundService = game:GetService("SoundService") -- Packages -- Modules local Enums = require(_Package:WaitForChild("Enums")) -- Types -- Constants local LIBRARY: { [Enums.SoundType]: string } = table.freeze({ hero_simple_celebr...
842
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Style/init.luau
luau
.luau
--!strict local _Package = script.Parent local _Packages = _Package.Parent -- Services -- Packages local HashUtil = require(_Packages:WaitForChild("HashUtil")) -- Modules local Typography = require(_Package:WaitForChild("Typography")) local Theme = require(_Package:WaitForChild("Theme")) local Enums = require(_Package...
857
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Theme/Palette.story.luau
luau
.luau
--!strict -- Services -- Packages local Maid = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("Maid")) -- Modules local Enums = require(script.Parent.Parent:WaitForChild("Enums")) -- Types -- Constants -- Variables -- References -- Class return function(frame: Frame) local maid = Ma...
456
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Theme/Scheme.story.luau
luau
.luau
--!strict -- Services -- Packages local Enums = require(script.Parent.Parent:WaitForChild("Enums")) local Maid = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("Maid")) -- Modules -- Types -- Constants -- Variables -- References -- Class return function(frame: Frame) local maid = M...
808
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Theme/init.luau
luau
.luau
--!strict --!native local _Package = script.Parent local _Packages = _Package.Parent -- Services -- Packages local HashUtil = require(_Packages:WaitForChild("HashUtil")) local TableUtil = require(_Packages:WaitForChild("TableUtil")) -- Modules local ThemeUtil = require(script:WaitForChild("ThemeUtil")) local HCT = req...
2,849
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Transition/Graph.story.luau
luau
.luau
--!strict local _Package = script.Parent.Parent local _Packages = _Package.Parent -- Services local RunService = game:GetService("RunService") -- Packages local Maid = require(_Packages:WaitForChild("Maid")) local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local CurveUtil = require(_Packages:WaitForChil...
2,058
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Transition/init.luau
luau
.luau
--!strict local _Package = script.Parent local _Packages = _Package.Parent -- Services -- Packages local CurveUtil = require(_Packages:WaitForChild("CurveUtil")) -- Modules local Enums = require(_Package:WaitForChild("Enums")) -- Types -- Constants local EMP_FLIP_POINT = 0.2 local EMP_WEIGHT = 0.45 local STD_FLIP_POIN...
871
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Translators.luau
luau
.luau
--!strict --!native local _Package = script.Parent local _Packages = _Package.Parent -- Services -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local Fusion = require(_Packages:WaitForChild("Fusion")) local Maid = require(_Packages:WaitForChild("Maid")) -- Modules -- Types type Maid = Maid...
844
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Types.luau
luau
.luau
--!strict -- Services -- Packages -- Modules -- Types export type AppearanceData = { Color3: Color3, Transparency: number, } export type ShadowData = { Offset: Vector2, Appearance: AppearanceData, } export type RenderData = { Scale: number, Border: AppearanceData, Background: AppearanceData, Sound: SoundData?...
858
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Typography.luau
luau
.luau
--!strict local _Package = script.Parent local _Packages = _Package.Parent -- Services -- Packages local HashUtil = require(_Packages:WaitForChild("HashUtil")) -- Modules local Enums = require(_Package:WaitForChild("Enums")) local Types = require(_Package:WaitForChild("Types")) -- Types export type FontData = Types.Fo...
1,730
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/Container/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local Maid = require(_Packages:WaitForChild("Maid")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = require(_P...
329
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/Container/init.luau
luau
.luau
--!strict return { ColdFusion = require(script:WaitForChild("ColdFusion")), }
23
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/ImageLabel/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local Maid = require(_Packages:WaitForChild("Maid")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = require(_P...
444
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/List/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local Maid = require(_Packages:WaitForChild("Maid")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = require(_P...
912
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/Padding/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local Maid = require(_Packages:WaitForChild("Maid")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = require(_P...
679
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/PopUp/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent local _Packages = _Package.Parent -- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local Maid = require(_Packages:WaitForChild("Maid"...
1,001
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/PopUp/_Config.story.luau
luau
.luau
--!strict -- Services -- Packages local Maid = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("Maid")) local ColdFusion = require(game:GetService("ReplicatedStorage"):WaitForChild("Packages"):WaitForChild("ColdFusion")) -- Modules -- Types -- Constants local ANCHOR_POINT_KEY = "Gui...
571
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/ScrollingContainer/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local Maid = require(_Packages:WaitForChild("Maid")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = require(_P...
559
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/ScrollingContainer/_Config.story.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local Maid = require(_Packages:WaitForChild("Maid")) -- Modules -- Types -- Constants -- Variables -- References -- Class return function(frame: Frame) local maid = Maid.new() task.spawn(function() local...
240
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/TextLabel/ColdFusion.luau
luau
.luau
--!strict local _Package = script.Parent.Parent.Parent local _Packages = _Package.Parent -- Services -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) local Maid = require(_Packages:WaitForChild("Maid")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = require(_P...
2,151
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/Util/init.luau
luau
.luau
--!strict local _Package = script.Parent local _Packages = _Package.Parent -- Services -- Packages local ColdFusion = require(_Packages:WaitForChild("ColdFusion")) -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = require(_Package:WaitForChild("Style")) -- Types type State<V> = ColdFusion....
348
nightcycle/synthetic
nightcycle-synthetic-1a0c0d5/src/init.luau
luau
.luau
--!strict local _Package = script local _Packages = _Package.Parent -- Services -- Packages -- Modules local Types = require(_Package:WaitForChild("Types")) local Style = require(_Package:WaitForChild("Style")) local Enums = require(_Package:WaitForChild("Enums")) -- Types export type ImageData = Types.ImageData export...
1,340
AlexanderLindholt/TextPlus
AlexanderLindholt-TextPlus-5dae0bd/source/CorrectOptions.luau
luau
.luau
--!optimize 2 --!native -- Services. local TextService = game:GetService("TextService") -- Option defaults. local defaults = require(script.Parent.Defaults) -- User fonts. local userFonts = require(script.Parent.Fonts) -- Option lists for validity checks. local scaleSizeTypes = { RootX = true, RootY = true, RootX...
1,584
AlexanderLindholt/TextPlus
AlexanderLindholt-TextPlus-5dae0bd/source/Defaults.luau
luau
.luau
--!optimize 2 -- Services. local CollectionService = game:GetService("CollectionService") -- Attempt to find the plugin object. local plugin = script:FindFirstAncestorOfClass("Plugin") -- Options list for validation. local optionsList = require(script.Parent.Options) -- Default defaults. local defaults = { Font = ...
422
AlexanderLindholt/TextPlus
AlexanderLindholt-TextPlus-5dae0bd/source/Fonts.luau
luau
.luau
--!optimize 2 -- Services. local CollectionService = game:GetService("CollectionService") local RunService = game:GetService("RunService") local Players = game:GetService("Players") -- Load and store all custom fonts. local userFonts = {} for _, module in CollectionService:GetTagged("Fonts") do if module:IsA("Modul...
1,142
AlexanderLindholt/TextPlus
AlexanderLindholt-TextPlus-5dae0bd/source/Options.luau
luau
.luau
return { Font = true, Size = true, ScaleSize = true, MinimumSize = true, MaximumSize = true, Color = true, Transparency = true, Pixelated = true, Offset = true, Rotation = true, StrokeSize = true, StrokeColor = true, StrokeTransparency = true, ShadowOffset = true, ShadowColor = true, Shado...
151
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/AVLTree/init.luau
luau
.luau
local AVLTree = {} AVLTree.__index = AVLTree export type Node<T = any> = { Value: T, Left: Node<T>?, Right: Node<T>?, Height: number, } export type Class<T = any> = typeof(setmetatable({} :: { Root: Node<T>?, Compare: (T, T) -> number, _lookup: { [T]: Node<T>, }, _size: n...
1,738
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/ArraySquash/init.luau
luau
.luau
local Shared = script.Parent local Squash = require(Shared.Squash) local VLQ = Squash.vlq() local F32 = Squash.f32() local I32 = Squash.i32() local U32 = Squash.u32() local U8 = Squash.u8() type Cursor = Squash.Cursor type SerDes<T...> = Squash.SerDes<T...> -------------------------------------------- -- SerDes (Int...
3,331
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/BufferExtras/init.luau
luau
.luau
--!native --!strict --- Reads a 16-bit floating point number (half-precision) from a buffer at the given offset. local function readf16(buf: buffer, offset: number): number local b0 = buffer.readu8(buf, offset) local b1 = buffer.readu8(buf, offset + 1) local sign = bit32.btest(b0, 128) and -1 or 1 loc...
1,467
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/CrunchTable/init.luau
luau
.luau
--!native --!strict --- CrunchTable is a shallow typechecked wrapper around Squash that allows you to define --- a data layout without needing to worry about the underlying serdes functions. It also --- provides a more user-friendly API for compressing and decompressing data. Squash is --- better suited for more comp...
3,384
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DeltaTable/init.luau
luau
.luau
--!native --!strict local DeltaTable = {} export type LazyTable = { [any]: any, } export type Patch = { Path: { any }, Value: any, } export type Trace = { Path: { any }, OnApply: (path: { any }, value: any) -> (), } local function Deep<T>(tbl: T & LazyTable): T local tCopy = table.create(#t...
1,072
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/DragSelectionView.luau
luau
.luau
--[[ Component that displays a rubber band-style selection frame. ]] local DraggerFramework = script.Parent.Parent local Packages = DraggerFramework.Parent local React = require(Packages.React) local Colors = require(DraggerFramework.Utility.Colors) export type Props = { BackgroundColor3: Color3?, BackgroundTrans...
324
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/DraggedPivot.luau
luau
.luau
local DraggerFramework = script.Parent.Parent local Packages = DraggerFramework.Parent local React = require(Packages.React) local Implementation = DraggerFramework.Implementation local DraggerContext = require(Implementation.DraggerContext) local MAIN_SPHERE_RADIUS = 0.4 local MAIN_SPHERE_TRANSPARENCY = 0.5 type Dr...
220
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/DraggerTool.luau
luau
.luau
--[[ DraggerToolComponent is a React component which drives an internal DraggerToolModel with inputs in a real-time situation such as ingame or in studio plugin. ]] -- Services local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local HttpService = game:GetS...
1,483
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/LocalSpaceIndicator.luau
luau
.luau
--[[ Component that displays an "L" label near the bottom-right corner of the passed in bounding volume. ]] local DraggerFramework = script.Parent.Parent local Packages = DraggerFramework.Parent local React = require(Packages.React) local PADDING = 3 local Implementation = DraggerFramework.Implementation local Drag...
1,057
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/MoveHandleView.luau
luau
.luau
local DraggerFramework = script.Parent.Parent local Shared = DraggerFramework.Parent local Math = require(DraggerFramework.Utility.Math) local React = require(Shared.React) local ReactRoblox = require(Shared.ReactRoblox) local CULLING_MODE = Enum.AdornCullingMode.Never local BASE_HANDLE_RADIUS = 0.10 local BASE_HAN...
1,473
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/RotateHandleView.luau
luau
.luau
--[[ Displays rotation gimbal handles. When dragging, start and end radii showing the central angle of rotation are displayed. ]] -- Dragger Framework local RotateHandleView = {} local DraggerFramework = script.Parent.Parent local Packages = DraggerFramework.Parent local React = require(Packages.React) local Math =...
2,376
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/ScaleHandleView.luau
luau
.luau
--[[ Component that displays a spherical scale handle. ]] local ScaleHandleView = {} local DraggerFramework = script.Parent.Parent local Packages = DraggerFramework.Parent local React = require(Packages.React) -- Dragger Framework local Math = require(DraggerFramework.Utility.Math) local CULLING_MODE = Enum.AdornC...
1,002
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/SelectionDot.luau
luau
.luau
--[[ Component that displays a dot of fixed size at the given position. Intended to be used to show the center of the current selection. ]] local DraggerFramework = script.Parent.Parent local Packages = DraggerFramework.Parent local React = require(Packages.React) local Colors = require(DraggerFramework.Utility.Colo...
250
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/StandaloneSelectionBox.luau
luau
.luau
--[[ Component that displays a SelectionBox with an arbitrary position and size, without having to create an adornee. Internally, StandaloneSelectionBox creates a transparent adornee with the correct position/size and parents it to CoreGui to prevent implementation details from leaking into the workspace. ]] loc...
477
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/SummonHandlesHider.luau
luau
.luau
local DraggerFramework = script.Parent.Parent local Implementation = DraggerFramework.Implementation local DraggerContext = require(Implementation.DraggerContext) local Packages = DraggerFramework.Parent local React = require(Packages.React) local SummonHandlesHider = {} -- When the user has summoned the handles for...
373
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Components/SummonHandlesNote.luau
luau
.luau
local DraggerFramework = script.Parent.Parent local Implementation = DraggerFramework.Implementation local DraggerContext = require(Implementation.DraggerContext) local Packages = DraggerFramework.Parent local ReactRoblox = require(Packages.ReactRoblox) local React = require(Packages.React) -- How much space between ...
750
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Handles/MoveHandles.luau
luau
.luau
-- Libraries local DraggerFramework = script.Parent.Parent local Utility = DraggerFramework.Utility local Shared = DraggerFramework.Parent local React = require(Shared.React) local Colors = require(Utility.Colors) local SelectionInfo = require(Utility.SelectionInfo) local computeDraggedDistance = require(Utility.com...
4,138
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Handles/RotateHandles.luau
luau
.luau
-- Libraries local DraggerFramework = script.Parent.Parent local Shared = DraggerFramework.Parent local React = require(Shared.React) -- Dragger Framework local Utility = DraggerFramework.Utility local Colors = require(Utility.Colors) local Math = require(Utility.Math) local roundRotation = require(Utility.roundRotat...
3,278
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/DraggerStateType.luau
luau
.luau
local StateType = { Ready = "Ready", PendingDraggingParts = "PendingDraggingParts", PendingSelectNext = "PendingSelectNext", DraggingHandle = "DraggingHandle", DraggingParts = "DraggingParts", DragSelecting = "DragSelecting", DraggingFaceInstance = "DraggingFaceInstance", } export type StateType = keyof<typeof(...
126
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/DraggerStates/DragSelecting.luau
luau
.luau
local Implementation = script.Parent.Parent local DraggerToolModel = require(Implementation.DraggerToolModel) local DraggerFramework = Implementation.Parent local Packages = DraggerFramework.Parent local React = require(Packages.React) local Components = DraggerFramework.Components local DragSelectionView = require(C...
722
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/DraggerStates/DraggingFaceInstance.luau
luau
.luau
--[[ When dragging over a Part, DraggingFaceInstance parents the instance onto the part and sets the instance's "Face" property to the closest Surface. ]] --!nonstrict local Implementation = script.Parent.Parent local DraggerToolModel = require(Implementation.DraggerToolModel) local DraggerFramework = Implementatio...
662
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/DraggerStates/DraggingHandle.luau
luau
.luau
local Implementation = script.Parent.Parent local DraggerToolModel = require(Implementation.DraggerToolModel) local DraggerFramework = Implementation.Parent local StandardCursor = require(DraggerFramework.Utility.StandardCursor) local DraggingHandle = {} DraggingHandle.__index = DraggingHandle type DraggerToolModel ...
913
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/DraggerStates/DraggingParts.luau
luau
.luau
local DraggerFramework = script.Parent.Parent.Parent local Implementation = DraggerFramework.Implementation local DraggerToolModel = require(Implementation.DraggerToolModel) local Utility = DraggerFramework.Utility local PartMover = require(Utility.PartMover) local StandardCursor = require(Utility.StandardCursor) lo...
911
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/DraggerStates/PendingDraggingParts.luau
luau
.luau
local Implementation = script.Parent.Parent local DraggerFramework = Implementation.Parent local DraggerToolModel = require(Implementation.DraggerToolModel) type DraggerToolModel = DraggerToolModel.Class local Utility = DraggerFramework.Utility local StandardCursor = require(Utility.StandardCursor) local FREEFORM_DR...
564
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/DraggerStates/PendingSelectNext.luau
luau
.luau
--[[ When clicking on the selection in a way that doesn't change the selection on mouse down, attempt to select the next selectables instead when the mouse is released. The reason that we do this on mouse up is for uniformity with the begin freeform drag behavior. ]] local Implementation = script.Parent.Parent loca...
498
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/DraggerStates/Ready.luau
luau
.luau
--!strict local Implementation = script.Parent.Parent local DraggerFramework = Implementation.Parent local Components = DraggerFramework.Components local Packages = DraggerFramework.Parent local Utility = DraggerFramework.Utility local React = require(Packages.React) local HoverTracker = require(Implementation.Hover...
2,225
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Implementation/HoverTracker.luau
luau
.luau
local DraggerFramework = script.Parent.Parent local Utility = DraggerFramework.Utility local SelectionInfo = require(Utility.SelectionInfo) type SelectionInfo = SelectionInfo.Class --[[ Ignored handle hits: When the ToolImplementation's shouldBiasTowardsObject function returns true, then this function will decide w...
1,275
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/AttachmentMover.luau
luau
.luau
local RunService = game:GetService("RunService") local AttachmentMover = {} AttachmentMover.__index = AttachmentMover type AttachmentMover = { _originalWorldCFrames: { [Attachment]: CFrame, }, _partsToUnanchor: { [BasePart]: true, }, } type Proto = typeof(AttachmentMover) export type Class = setmetatable<At...
380
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/BoundingBox.luau
luau
.luau
local function getBoundingBoxInternal(cframe: CFrame, size: Vector3, inverseBasis: CFrame?) local localCFrame = if inverseBasis then inverseBasis * cframe else cframe local sx, sy, sz = size.X, size.Y, size.Z local _, _, _, t00, t01, t02, t10, t11, t12, t20, t21, t22 = localCFrame:GetComponents() local hw =...
2,345
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/BoundsChangedTracker.luau
luau
.luau
--[[ BoundsChangedTracker object Watches a set of parts for cframe and size changes. ]] local Utility = script.Parent local SelectionInfo = require(Utility.SelectionInfo) local DraggerFramework = Utility.Parent local Implementation = DraggerFramework.Implementation local DraggerContext = require(Implementation.Dr...
1,842
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/Colors.luau
luau
.luau
local Colors = {} Colors.WHITE = Color3.new(1, 1, 1) Colors.BLACK = Color3.new(0, 0, 0) Colors.GRAY = Color3.new(0.7, 0.7, 0.7) Colors.X_AXIS = Color3.new(1, 0, 0) Colors.Y_AXIS = Color3.new(0, 1, 0) Colors.Z_AXIS = Color3.new(0, 0, 1) Colors.WeldJoint = Color3.new(1, 1, 1) Colors.RotatingJoint = Color3.new(0, 0, 1)...
206
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/DragHelper.luau
luau
.luau
local Utility = script.Parent local Math = require(Utility.Math) local getGeometry = require(Utility.getGeometry) local roundRotation = require(Utility.roundRotation) local snapRotationToPrimaryDirection = require(Utility.snapRotationToPrimaryDirection) local PrimaryDirections = { Vector3.xAxis, -Vector3.xAxis, Ve...
3,823
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/DragSelector.luau
luau
.luau
local Utility = script.Parent local SelectionHelper = require(Utility.SelectionHelper) local DraggerFramework = Utility.Parent local Implementation = DraggerFramework.Implementation local DraggerContext = require(Implementation.DraggerContext) type DraggerContext = DraggerContext.Class -- Minimum distance (pixels) r...
1,395
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/JointMaker.luau
luau
.luau
local DraggerFramework = script.Parent.Parent local Utility = DraggerFramework.Utility local getGeometry = require(Utility.getGeometry) local JointPairs = require(Utility.JointPairs) local JointUtil = require(Utility.JointUtil) local JointMaker = {} JointMaker.__index = JointMaker type LengthConstraint = | RopeCons...
2,301
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/JointPairs.luau
luau
.luau
local Utility = script.Parent local DraggerFramework = Utility.Parent local Packages = DraggerFramework.Parent local React = require(Packages.React) local getGeometry = require(Utility.getGeometry) local Colors = require(Utility.Colors) local Math = require(Utility.Math) local JointPairs = {} JointPairs.__index = Joi...
4,185
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/JointUtil.luau
luau
.luau
local JointUtil = {} function JointUtil.getConstraintCounterpart(constraint: Constraint, part: BasePart?): BasePart? -- Ugly micro-optimized code because this function gets hit in hot paths -- The micro-optimized version saves 3-4ms on some actions over the -- unoptimized variant. local attachment0 = constraint.At...
409
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/PartMover.luau
luau
.luau
--[[ Shared utility class which transforms parts efficiently as a group, and manages joining / unjoining them from the world. ]] local RunService = game:GetService("RunService") local Utility = script.Parent local JointUtil = require(Utility.JointUtil) local JointPairs = require(Utility.JointPairs) local getGeometry...
5,119
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/SelectionHelper.luau
luau
.luau
--[[ Provides utility functions related to the selection. ]] local SelectionHelper = {} type SelectionChangeHint = { Added: { Instance }, Removed: { Instance }, } -- Returns: Did the selection change, The new selection, A change hint function SelectionHelper.updateSelection( selectable: Instance?, oldSelection:...
917
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/SelectionInfo.luau
luau
.luau
local Utility = script.Parent local BoundingBox = require(Utility.BoundingBox) local shouldDragAsFace = require(Utility.shouldDragAsFace) local DraggerFramework = Utility.Parent local Implementation = DraggerFramework.Implementation local DraggerContext = require(Implementation.DraggerContext) type DraggerContext = ...
3,086
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/SelectionWrapper.luau
luau
.luau
--!strict --[[ A wrapper around a Selection object (anything with the same API the Roblox SelectionService has), which disambiguates selection changed events which were caused by something else setting the selection, vs selection changed events which were caused by calling :Set on the Selection object. Also cach...
557
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/StandardCursor.luau
luau
.luau
--[[ This file is a workaround for STUDIOCORE-22344 We would like to just use the system cursors for the draggers, however, due to the above unresolved issue, the system cursors do not work in Play Solo mode. To work around this, use the old set of dragger cursors instead while in Play Solo mode. ]] local RunService...
259
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/TemporaryTransparency.luau
luau
.luau
local NO_COLLISIONS_TRANSPARENCY = 0.4 local TemporaryTransparency = {} TemporaryTransparency.__index = TemporaryTransparency type TemporaryTransparency = { _draggingModifiedParts: { BasePart }, } type Proto = typeof(TemporaryTransparency) export type Class = setmetatable<TemporaryTransparency, Proto> function Tem...
202
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/assertGoodCFrame.luau
luau
.luau
--[[ Check that a CFrame has "good" values. That is: * None of the values are NaN * The position values are not particularly large * The rotation matrix is orthonormal This is a general catchall to be used for DEBUGGING ONLY to investigate CFrames becoming corrupted in some way. There are situations where a user...
499
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/classifyPivot.luau
luau
.luau
const PIVOT_NEAR_EDGE_THRESHOLD = 0.01 export type PivotType = | "None" | "Center" | "Surface" | "Inside" | "Outside" | "Far" return function(cframe: CFrame, offset: Vector3, size: Vector3): PivotType if offset:FuzzyEq(Vector3.zero, PIVOT_NEAR_EDGE_THRESHOLD) then return "Center" end local absOffset = Ve...
338
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/computeDraggedDistance.luau
luau
.luau
local Utility = script.Parent local Math = require(Utility.Math) --[[ Returns the distance the mouse cursor was dragged from dragStartPosition along dragDirection This is non-trivial when the cursor gets away from the axis on the screen. Let p be the start of the handle, u be the direction of the handle, and ...
417
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/getBoundingBoxScale.luau
luau
.luau
local BoundingBoxCorners = { Vector3.new(0.5, 0.5, 0.5), Vector3.new(-0.5, 0.5, 0.5), Vector3.new(0.5, -0.5, 0.5), Vector3.new(-0.5, -0.5, 0.5), Vector3.new(0.5, 0.5, -0.5), Vector3.new(-0.5, 0.5, -0.5), Vector3.new(0.5, -0.5, -0.5), Vector3.new(-0.5, -0.5, -0.5), } local DraggerFramework = script.Parent.Paren...
286
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/getFaceInstance.luau
luau
.luau
--[[ Get the FaceInstance (Decal or Texture) on a given part closest to a given position. ]] local function getNormalId(normalizedPosition: Vector3): Enum.NormalId local x = math.abs(normalizedPosition.X) local y = math.abs(normalizedPosition.Y) local z = math.abs(normalizedPosition.Z) if x > y and x > z then ...
250
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/getGeometry.luau
luau
.luau
export type Shape = | "Brick" | "Sphere" | "Cylinder" | "Wedge" | "CornerWedge" | "Terrain" | "Mesh" export type Surface = | "RightSurface" | "LeftSurface" | "TopSurface" | "BottomSurface" | "FrontSurface" | "BackSurface" type IGeometry<T> = { type: T, id: number?, part: BasePart?, } export type Face...
3,608
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/isProtectedInstance.luau
luau
.luau
--[[ isProtectedInstance( instance ): Return true for instances which are "protected" by Roblox. Accessing any method or property on these instances will raise an error. Internally use a weak hash map to cache the protection status of the instances, as determining the protection status is somewhat expensive. ]] ...
225
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/roundRotation.luau
luau
.luau
--[[ roundRotation(CFrame) -> CFrame Round a rotation CFrame which is approximately primary axis aligned to be exactly primary axis aligned instead (such that all of its components are -1, 0, or 1). Will not work on an arbitrary CFrame! This function is intended to be used on CFrames which within a small amount...
267
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/setInsertPoint.luau
luau
.luau
-- Wrapper around WorldRoot::SetInsertPoint, since that function is Roblox only, -- but we want the DraggerFramework to be forkable. return function(insertPoint: Vector3) pcall(function() local setInsertPoint = (workspace :: any).SetInsertPoint setInsertPoint(workspace, insertPoint, true) end) end
72
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/shouldDragAsFace.luau
luau
.luau
return function(instance: Instance) return instance:IsA("FaceInstance") or instance:IsA("VideoFrame") or instance:IsA("SurfaceGui") end
31
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/Utility/snapRotationToPrimaryDirection.luau
luau
.luau
local PrimaryDirections = { Vector3.xAxis -Vector3.xAxis, Vector3.yAxis, -Vector3.yAxis, Vector3.zAxis, -Vector3.zAxis, } local function largestComponent(vector: Vector3) return math.max(math.abs(vector.X), math.abs(vector.Y), math.abs(vector.Z)) end local function snapVectorToPrimaryDirection(direction: Vec...
471
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerFramework/init.luau
luau
.luau
local Implementation = script.Implementation local Components = script.Components local Handles = script.Handles local Utility = script.Utility local DraggerTool = require(Components.DraggerTool) local DraggedPivot = require(Components.DraggedPivot) local SelectionDot = require(Components.SelectionDot) local MoveHandl...
1,321
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerSchemaCore/BoundsChangedTracker.luau
luau
.luau
-- Baseline wrapper around the default BoundsChangedTracker implementation provided in DraggerFramework. -- This provides backwards compatibility for its previous place of residence, while still allowing -- consumers to extend it as needed. local DraggerSchemaCore = script.Parent local Packages = DraggerSchemaCore.Par...
100
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerSchemaCore/ExtrudeHandlesImplementation.luau
luau
.luau
local DraggerSchemaCore = script.Parent local Packages = DraggerSchemaCore.Parent local DraggerFramework = require(Packages.DraggerFramework) local Utility = DraggerFramework.Utility local JointMaker = Utility.JointMaker local getBoundingBoxScale = Utility.getBoundingBoxScale local TemporaryTransparency = Utility.Tem...
5,644
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerSchemaCore/FreeformDragger.luau
luau
.luau
local DraggerSchemaCore = script.Parent local Packages = DraggerSchemaCore.Parent local DraggerFramework = require(Packages.DraggerFramework) local Utility = DraggerFramework.Utility local AttachmentMover = Utility.AttachmentMover local DragHelper = Utility.DragHelper local PartMover = Utility.PartMover local Freefo...
2,013
MaximumADHD/Roblox-Utils
MaximumADHD-Roblox-Utils-5926d8b/Modules/DraggerSchemaCore/HoverEscapeDetector.luau
luau
.luau
--[[ class HoverEscapeDetector Constructed with a given selectable object and a given callback. Calls the callback whenever selectable object changes in some way that could make it no longer hovered thanks to factors external to the dragger (such as when it is deleted through a hotkey). ]] local DraggerSchemaCor...
658