repo stringclasses 302
values | file_path stringlengths 18 241 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 76 697k | tokens int64 10 271k |
|---|---|---|---|---|---|
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/Include/Linking.luau | luau | .luau | local compo = require(script.Packages.compo)
export type component<TInstance, TFields> = compo.component<TInstance, TFields>
return compo | 34 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/constants.luau | luau | .luau | local RunService = game:GetService("RunService")
local StarterPlayer = game:GetService("StarterPlayer")
local ServerScriptService = game:GetService("ServerScriptService")
return {
realm = if RunService:IsServer() then ServerScriptService else StarterPlayer,
update = if RunService:IsServer() then RunService.Heartbeat... | 113 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/createComponent.luau | luau | .luau | local types = require(script.Parent.types)
local function createComponent<TComponent>(
transformer: (component: TComponent) -> (),
fields: {}
): types.componentBuilder<any, any>
return {
constructor = function(instance: Instance, refinatedFields : any): types.component<any, any>
local component = {
instanc... | 106 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/fields.luau | luau | .luau | local t = require(script.Parent.Parent.t)
local function field<T>(checker: (T) -> { any }, defaultVal: T, fieldID: number) : (val: T) -> { default : T, field : number}
return function(val)
if (checker(val)) then
return { default = val, field = fieldID }
end
return { default = defa... | 164 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/init.luau | luau | .luau | -- hi ^.^
local types = require("@self/types")
export type component<TInstance, TFields> = types.component<TInstance, TFields>
return {
launch = require("@self/launch"),
createComponent = require("@self/createComponent"),
fields = require("@self/fields")
} | 60 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/launch.luau | luau | .luau | local promise = require(script.Parent.Parent.promise)
local componentCollector = require("./componentCollector")
local prepareComponent = require("./prepareComponent")
local scheduler = require("./scheduler")
local _launched = false
--[=[
Launches Compo and starts its lifecycle
@return A promise that resolves when t... | 214 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/prepareComponent/init.luau | luau | .luau | local CollectionService = game:GetService("CollectionService")
local constants = require("./constants")
local validate = require("@self/validate")
local scheduler = require("./scheduler")
local janitor = require(script.Parent.Parent.janitor)
local t = require(script.Parent.Parent.t)
local function getRefinatedFields(f... | 1,079 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/prepareComponent/validate.luau | luau | .luau | local t = require(script.Parent.Parent.Parent.t)
local types = require("../types")
local IComponent = t.interface({
constructor = t.callback,
fields = t.optional(t.table)
})
return function(component: types.componentBuilder<any, any>)
return IComponent(component)
end | 54 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/scheduler/helper.luau | luau | .luau | --[=[
Calls a function, if an error ocurred doesnt stop the thread.
@param The callback to be called
@return Whatever the callback returned
]=]
local function call<T...>(callable: ((T...) -> any)?, yield: boolean?, ...:T...): any
if not callable then return nil end
local arg: any = {...}
if yi... | 188 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/src/types.luau | luau | .luau | --!strict
export type component<TInstance, TFields> = {
fields: TFields,
instance: TInstance,
-- life cycle methods
awake: (() -> ())?,
onEnable: (() -> ())?,
start: (() -> ())?,
update: ((deltaTime: number) -> ())?,
fixedUpdate: (() -> ())?,
onDisable: (() -> ())?,
onDestroy: (() -> ())?,
}
export type com... | 124 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/testing/killPart.component.luau | luau | .luau | local compo = require(game.ReplicatedStorage.compo)
type component = compo.component<Part, {
damage: number,
}>
return compo.createComponent(function(component: component)
local c: RBXScriptConnection = nil
local originalMaterial = component.instance.Material
local originalColor = component.instance.Color
local f... | 304 |
sparkiyy/Compo | sparkiyy-Compo-b2cc911/runtime/testing/testing.server.luau | luau | .luau | local compo = require(game:GetService("ReplicatedStorage").compo)
compo.launch():andThen(function()
print("resolved")
end) | 31 |
cameronpcampbell/openblox | cameronpcampbell-openblox-622c979/src/apis/cloud/userRestrictions/userRestrictions.ts | roblox-ts | .ts | // [ Modules ] ///////////////////////////////////////////////////////////////////
import { createApiGroup } from "../../apiGroup"
import { cloneAndMutateObject } from "../../../utils/utils"
//////////////////////////////////////////////////////////////////////////////////
// [ Types ] ///////////////////////////////... | 2,403 |
fiveman1/rbxm-parser-ts | fiveman1-rbxm-parser-ts-1d0760c/src/generated/plugin/plugin.lua | luau | .lua | local Selection = game:GetService("Selection")
local ScriptEditorService = game:GetService("ScriptEditorService")
local toolbar = plugin:CreateToolbar("Custom Script Tools")
local newScriptButton = toolbar:CreateButton("Generate Types", "Generate Types", "rbxassetid://14978048121")
newScriptButton.ClickableWhenViewpor... | 707 |
ThotArchive/Roblox-TS | ThotArchive-Roblox-TS-1f3639a/packages/discovery-common/src/ts/searchLandingPage/service/searchLandingService.ts | roblox-ts | .ts | import { SearchLandingServiceInterface } from "./interface";
import { ModalEvent } from "./modalConstants";
function mountSearchLanding(): Promise<void> {
return new Promise(() => {
const event = new CustomEvent(ModalEvent.MountSearchLanding, {
detail: {},
});
window.dispatchEvent(event);
});
}
... | 303 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/components/GridLayout.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import type { BindingVariants } from "../utils";
export type GridLayoutProps = BindingVariants<{
cellPadding?: UDim2
cellSize?: UDim2
cellAspectRatio?: number
cellAspectType?: Enum.AspectType
cellAspectAxis?: Enum.DominantAxis
startCorner?: Enum.StartCorner
... | 251 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/components/Image.ts | roblox-ts | .ts | import { BaseComponent } from "../helpers";
import { ColorOrHex, resolveColor3 } from "../utils";
import { mapBinding } from "@rbxts/pretty-react-hooks";
export interface ImageRect {
offset: Vector2;
size: Vector2;
}
export interface ImageProps {
image?: string,
imageColor?: ColorOrHex,
imageTran... | 198 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/components/ListLayout.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import { BindingVariants, resolveUDim } from "../utils";
export type ListLayoutProps = BindingVariants<{
padding?: number | UDim
direction?: Enum.FillDirection
order?: Enum.SortOrder
horizontalAlign?: Enum.HorizontalAlignment
verticalAlign?: Enum.VerticalAlignment... | 221 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/components/ScrollingFrame.ts | roblox-ts | .ts | import Object from "@rbxts/object-utils";
import BaseComponent from "../helpers/BaseComponent";
import { resolveColor3 } from "../utils";
import { getBindingValue, mapBinding } from "@rbxts/pretty-react-hooks";
import type { InstanceAttributes } from "@rbxts/react";
export type ScrollingFrameProps = {
automaticC... | 591 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/helpers/BaseComponent.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import ExpandableComponent from "./ExpandableComponent";
import { ColorOrHex, ResolvableAnchorPoint, resolveAnchorPoint, resolveUDim } from "../utils";
import { getBaseColor, Gradient, GradientElement } from "./Gradient";
import type { InstanceProps } from "@rbxts/react";
export typ... | 1,132 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/helpers/ExpandableComponent.ts | roblox-ts | .ts | import React, { ForwardedRef, InstanceProps, ReactChild, ReactNode } from "@rbxts/react";
import Object from "@rbxts/object-utils";
import { BindingVariants as BindingVariantsUtils, flat, ReactProps } from "../utils";
/** @deprecated import from `../utils`, not from here */
export type BindingVariants<T extends objec... | 902 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/helpers/Gradient.tsx | roblox-ts | .tsx | import React, { Binding } from "@rbxts/react";
import { ColorOrHex, resolveColor3 } from "../utils";
import { BindingOrValue, getBindingValue, mapBinding } from "@rbxts/pretty-react-hooks";
export type Gradient = Array<ColorOrHex> | Array<ColorSequenceKeypoint> | ColorSequence
export function createColorSequence(va... | 520 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/helpers/TextComponent.ts | roblox-ts | .ts | import BaseComponent from "./BaseComponent";
import { ColorOrHex, resolveColor3 } from "../utils";
import { mapBinding } from "@rbxts/pretty-react-hooks";
import type { InferEnumNames, InstanceEvent } from "@rbxts/react";
export type TextComponentInstance = TextLabel | TextButton | TextBox
export type TextComponentP... | 439 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/App.ts | roblox-ts | .ts | import React from "@rbxts/react";
import { Frame } from ".."; // @rbxts/better-react-components
declare const _G: Record<string, unknown>;
_G.__DEV__ = true;
export function App(props: { children: React.ReactNode }) {
return React.createElement(
Frame,
{ size: UDim2.fromScale(1, 1), noBackground:... | 90 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/basics/1_helloworld.story.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import { Text } from "../.."; // @rbxts/better-react-components
import { App } from "../App";
import { hoarcekat } from "@rbxts/pretty-react-hooks";
import { CatppuccinLatte } from "../utils";
export = hoarcekat(() => {
return (
<App>
<Text
te... | 185 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/basics/2_padding.story.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import { AnchorPoints, Frame, Text } from "../.."; // @rbxts/better-react-components
import { hoarcekat } from "@rbxts/pretty-react-hooks";
import { App } from "../App";
export = hoarcekat(() => {
return (
<App>
<Text
text={"red - parent\nblue... | 329 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/basics/3_cornerRadius.story.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import { AnchorPoints, Frame } from "../.."; // @rbxts/better-react-components
import { hoarcekat } from "@rbxts/pretty-react-hooks";
import { App } from "../App";
export = hoarcekat(() => {
return (
<App>
<Frame
position={UDim2.fromScale(.5, .... | 136 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/basics/5_flexItem.story.tsx | roblox-ts | .tsx | import React, { useBinding } from "@rbxts/react";
import { Frame, Helpers, ListLayout } from "../../index"; // @rbxts/better-react-components
import { hoarcekat } from "@rbxts/pretty-react-hooks";
import { App } from "../App";
// const { calculateAspectRatio } = Helpers;
export = hoarcekat(() => {
return (
... | 255 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/examples/sidebar.story.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import { AnchorPoints, Button, Frame, ListLayout } from "../.."; // @rbxts/better-react-components
import { App } from "../App";
import { hoarcekat } from "@rbxts/pretty-react-hooks";
import { CatppuccinLatte } from "../utils";
function CoolButton(props: { text: string, onClick: () ... | 405 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/examples/textBox.story.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import { hoarcekat } from "@rbxts/pretty-react-hooks";
import { App } from "../App";
import { AnchorPoints, TextBox } from "../.."; // @rbxts/better-react-components
import { CatppuccinLatte } from "../utils";
export = hoarcekat(() => {
return (
<App>
<TextB... | 249 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/tests/bindings.story.tsx | roblox-ts | .tsx | import React, { useBinding } from "@rbxts/react";
import { Button, Frame, GridLayout, Text } from "../.."; // @rbxts/better-react-components
import { hoarcekat } from "@rbxts/pretty-react-hooks";
import { CatppuccinLatte } from "../utils";
export = hoarcekat(() => {
const [count, setCount] = useBinding(0);
... | 393 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/tests/context.story.tsx | roblox-ts | .tsx | import React, { Binding, useMemo } from "@rbxts/react";
import { Players } from "@rbxts/services";
import { Helpers } from "../.."; // @rbxts/better-react-components
import { App } from "../App";
import { hoarcekat, joinAnyBindings } from "@rbxts/pretty-react-hooks";
const BaseComponent = Helpers.BaseComponent;
typ... | 382 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/tests/gradients.story.tsx | roblox-ts | .tsx | import React from "@rbxts/react";
import { Button, Frame, ListLayout, resolveColor3Value, Text } from "../.."; // @rbxts/better-react-components
import { App } from "../App";
import { hoarcekat } from "@rbxts/pretty-react-hooks";
import { brighten, useMotion } from "../utils";
// bindings example:
function ButtonWi... | 932 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/tests/refs.story.tsx | roblox-ts | .tsx | import React, { useEffect, useRef, useState } from "@rbxts/react";
import { AnchorPoints, Text } from "../.."; // @rbxts/better-react-components
import { App } from "../App";
import { hoarcekat } from "@rbxts/pretty-react-hooks";
export = hoarcekat(() => {
const [textSizes, setTextSizes] = useState(new Vector2()... | 252 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/stories/utils.ts | roblox-ts | .ts | import { useEventListener } from "@rbxts/pretty-react-hooks";
import { createMotion, Motion, MotionGoal } from "@rbxts/ripple";
import { Binding, useBinding, useMemo } from "@rbxts/react";
import { RunService } from "@rbxts/services";
export function useMotion(initialValue: number): LuaTuple<[Binding<number>, Motion]>... | 967 |
idkncc/better-react-components | idkncc-better-react-components-f5055b7/src/utils.ts | roblox-ts | .ts | // tl t tr
// cl c cr
// bl b br
import {
Binding,
type InferEnumNames,
InstanceChangeEvent,
InstanceEvent,
InstanceProps,
Key,
ReactNode,
RefObject,
} from "@rbxts/react";
import { BindingOrValue, isBinding, mapBinding } from "@rbxts/pretty-react-hooks";
export type BindingVariants<T ... | 884 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/.lune/docsgen/init.luau | luau | .luau | --> Generate markdown documentation from moonwave comments
local process = require("@lune/process")
local serde = require("@lune/serde")
local moonwave = require("@self/moonwave")
local logger = require("@self/log")
local writeMarkdown = require("@self/markdown")
local function extract(input: string): (number, { moo... | 226 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/.lune/docsgen/log.luau | luau | .luau | local stdio = require("@lune/stdio")
local base = stdio.style("bold")
local STYLE_INFO = base .. `{stdio.color("green")}info{stdio.color("reset")}:`
local STYLE_WARN = base .. `{stdio.color("yellow")}warn{stdio.color("reset")}:`
local STYLE_ERROR = base .. `{stdio.color("red")}error{stdio.color("reset")}:`
export ty... | 207 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/.lune/docsgen/markdown.luau | luau | .luau | local fs = require("@lune/fs")
local moonwave = require("./moonwave")
local logger = require("./log")
local function writeSectionHeader(buf: string, title: string)
buf ..= `### {title}\n`
return buf
end
local function writeRef(buf: string, name: string, fragment: string?)
buf ..= `\n[{name}]: #{fragment or name}\... | 1,305 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/.lune/tests/init.luau | luau | .luau | --> Run tests using frktest runner
local fs = require("@lune/fs")
local process = require("@lune/process")
local frktest = require("../luau_packages/frktest")
local reporter = require("@self/reporter")
-- HACK: Cast require to allow for dynamic paths in strict mode
-- A more proper solution would be to use luau.load... | 613 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/.lune/typecheck.luau | luau | .luau | --> Run luau-lsp analysis to check for type errors
local process = require("@lune/process")
local CommandBuilder = require("./util/exec")
process.exit(
CommandBuilder.new("luau-lsp")
:withArg("analyze")
:withArgs({ "--settings", ".vscode/settings.json" })
:withArgs({ "--ignore", "'**/*_packages/**/*'" })
:w... | 110 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/.lune/util/channel.luau | luau | .luau | --> util: An MPSC synchronization primitive powered by Lua upvalues which retains only
--> one value at a time.
--- ## Usage
--- ```luau
--- local send, recv = watch((nil :: any) :: string)
--- task.delay(5, send, "hello, world!")
--- task.spawn(function()
--- local value = recv()
--- print("received value:", ... | 266 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/.lune/util/reader_utils.luau | luau | .luau | local process = require("@lune/process")
local exports = {}
export type ChildProcessReader = typeof(({} :: process.ChildProcess).stdout)
local CHUNK_SIZE = 8 * 1024 -- 8 KB
--- Luau implementation of `ChildReader:readToEnd`.
---
--- This is a workaround for a lune bug which causes child processes to
--- never exit.
... | 476 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/examples/tour.luau | luau | .luau | local fs = require("@lune/fs")
local zip = require("../lib")
local asciitable = require("../luau_packages/asciitable")
local file = fs.readFile("tests/data/files_and_dirs.zip")
local reader = zip.load(buffer.fromstring(file))
--- Transforms a tree of recursive `{ [string]: EntryData }` to a recursive tree of
--- `{ [... | 738 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/lib/crc.luau | luau | .luau | local CRC32_TABLE = table.create(256)
-- TODO: Maybe compute this AoT as an optimization
-- Initialize the lookup table and lock it in place
for i = 0, 255 do
local crc = i
for _ = 1, 8 do
if bit32.band(crc, 1) == 1 then
crc = bit32.bxor(bit32.rshift(crc, 1), 0xEDB88320)
else
crc = bit32.rshift(crc, 1)
e... | 246 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/lib/inflate.luau | luau | .luau | -- Tree class for storing Huffman trees used in DEFLATE decompression
local Tree = {}
export type Tree = typeof(setmetatable({} :: TreeInner, { __index = Tree }))
type TreeInner = {
table: { number }, -- Length of 16, stores code length counts
trans: { number }, -- Length of 288, stores code to symbol translations
}... | 3,116 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/lib/utils/path.luau | luau | .luau | --- Canonicalize a path by removing redundant components
local function canonicalize(path: string): string
-- We convert any `\\` separators to `/` separators to ensure consistency
local components = string.split(path:gsub("\\", "/"), "/")
local result = {}
for _, component in components do
if component == "." th... | 826 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/lib/utils/validate_crc.luau | luau | .luau | local crc32 = require("../crc")
export type CrcValidationOptions = {
skip: boolean,
expected: number,
}
local function validateCrc(decompressed: buffer, validation: CrcValidationOptions)
-- Unless skipping validation is requested, we verify the checksum
if not validation.skip then
local computed = crc32(decompr... | 135 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/scripts/generate_invalid_version_zip.luau | luau | .luau | local fs = require("@lune/fs")
local stdio = require("@lune/stdio")
local process = require("@lune/process")
-- stylua: ignore
local function createZip(version: number): buffer
version = version or math.random(63, 100)
print("Using version:", version)
local data = buffer.create(98)
local pos = ... | 1,136 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/tests/edge_cases.luau | luau | .luau | local fs = require("@lune/fs")
local process = require("@lune/process")
local serde = require("@lune/serde")
local frktest = require("../luau_packages/frktest")
local check = frktest.assert.check
local reader = require("../.lune/util/reader_utils")
local ZipReader = require("../lib")
return function(test: typeof(frk... | 934 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/tests/extract.luau | luau | .luau | local fs = require("@lune/fs")
local process = require("@lune/process")
local frktest = require("../luau_packages/frktest")
local check = frktest.assert.check
local readToEnd = require("../.lune/util/reader_utils").readToEnd
local ZipReader = require("../lib")
-- Reuse the same ZIP files from metadata tests
local ZI... | 655 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/tests/list.luau | luau | .luau | local fs = require("@lune/fs")
local process = require("@lune/process")
local frktest = require("../luau_packages/frktest")
local check = frktest.assert.check
local ZipReader = require("../lib")
return function(test: typeof(frktest.test))
test.suite("ZIP listing tests (top-level)", function()
test.case("Lists all... | 571 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/tests/metadata.luau | luau | .luau | local fs = require("@lune/fs")
local process = require("@lune/process")
local DateTime = require("@lune/datetime")
local frktest = require("../luau_packages/frktest")
local check = frktest.assert.check
local readToEnd = require("../.lune/util/reader_utils").readToEnd
local unzip = require("../lib")
local ZIPS = fs.r... | 1,749 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/tests/path.luau | luau | .luau | local frktest = require("../luau_packages/frktest")
local check = frktest.assert.check
local path = require("../lib/utils/path")
return function(test: typeof(frktest.test))
test.suite("Path utilities function as expected", function()
test.case("Canonicalize should handle basic paths", function()
check.equal(pat... | 731 |
0x5eal/luau-unzip | 0x5eal-luau-unzip-1f8574c/tests/walk.luau | luau | .luau | local fs = require("@lune/fs")
local process = require("@lune/process")
local frktest = require("../luau_packages/frktest")
local check = frktest.assert.check
local ZipReader = require("../lib")
local ZIPS = {
"tests/data/files_and_dirs.zip",
"tests/data/symlink.zip",
"tests/data/extended_timestamp.zip",
}
retur... | 596 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/lune/_shared.luau | luau | .luau | export type InstanceProps = {
kind: nil | {
kind: "folder",
realtype: string | nil,
props: string | nil,
root: string,
},
path: string | nil,
children: { [string]: InstanceProps },
}
export type Manifest = {
game: { [string]: any },
}
local module = { }
module.colors = {
BLUE = "\27[34m",
YELLOW = "\27... | 290 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/lune/assemble.luau | luau | .luau | --[[
Place Builder Script
Reads a `structure.json` manifest to build a Roblox place file (`.rbxl`).
This script recursively processes a structure of folders and model files (.rbxm/.rbxmx)
and assembles them into a new DataModel.
]]
-- Required modules
local fs = require("@lune/fs")
local roblox = require("@lun... | 3,004 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/lune/savechanges.luau | luau | .luau | --[[
Place Extractor Script
Reads a Roblox place file (`.rbxl`) and a `structure.json` manifest.
It finds the instances specified in the manifest within the place file
and serializes them back into individual .rbxm/.rbxmx model files.
]]
-- Required modules
local fs = require("@lune/fs")
local roblox = require... | 1,795 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/ThemeAutoSetter.ts | roblox-ts | .ts | import { CollectionService } from "@rbxts/services";
import { HostedService } from "engine/shared/di/HostedService";
import { Instances } from "engine/shared/fixes/Instances";
import type { Theme, ThemeKey } from "client/Theme";
@injectable
export class ThemeAutoSetter extends HostedService {
constructor(@inject them... | 179 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/blocks/LogicVisualizer.ts | roblox-ts | .ts | import { Workspace } from "@rbxts/services";
import { Component } from "engine/shared/component/Component";
import { ComponentInstance } from "engine/shared/component/ComponentInstance";
import { ReplicatedAssets } from "shared/ReplicatedAssets";
import type { BlockLogicTickContext, GenericBlockLogic } from "shared/blo... | 396 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/AchievementController.ts | roblox-ts | .ts | import { RunService, TextChatService } from "@rbxts/services";
import { CheckBoxControl } from "client/gui/controls/CheckBoxControl";
import { Control } from "engine/client/gui/Control";
import { Interface } from "engine/client/gui/Interface";
import { PartialControl } from "engine/client/gui/PartialControl";
import { ... | 2,734 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/BeaconController.ts | roblox-ts | .ts | import { Workspace } from "@rbxts/services";
import { Beacon } from "client/gui/Beacon";
import { LocalPlayer } from "engine/client/LocalPlayer";
import { Component } from "engine/shared/component/Component";
import { ComponentKeyedChildren } from "engine/shared/component/ComponentKeyedChildren";
import { HostedService... | 590 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/BlurController.ts | roblox-ts | .ts | import { Lighting } from "@rbxts/services";
import { InstanceComponent } from "engine/shared/component/InstanceComponent";
import { Transforms } from "engine/shared/component/Transforms";
import { HostedService } from "engine/shared/di/HostedService";
export class BlurController extends HostedService {
readonly blur;... | 123 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/CameraController.ts | roblox-ts | .ts | import { HttpService, Workspace } from "@rbxts/services";
import { HostedService } from "engine/shared/di/HostedService";
import { Objects } from "engine/shared/fixes/Objects";
import type { PlayerDataStorage } from "client/PlayerDataStorage";
@injectable
export class CameraController extends HostedService {
construc... | 303 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/DayCycleController.ts | roblox-ts | .ts | import { Lighting } from "@rbxts/services";
import { HostedService } from "engine/shared/di/HostedService";
import type { PlayerDataStorage } from "client/PlayerDataStorage";
@injectable
export class DayCycleController extends HostedService {
constructor(@inject playerData: PlayerDataStorage) {
super();
Lighting... | 243 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/EnvBlacklistsController.ts | roblox-ts | .ts | import { Players, Workspace } from "@rbxts/services";
import { Component } from "engine/shared/component/Component";
import { BB } from "engine/shared/fixes/BB";
import type { SharedPlot } from "shared/building/SharedPlot";
import type { SharedPlots } from "shared/building/SharedPlots";
@injectable
export class EnvBla... | 622 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/GameEnvironmentController.ts | roblox-ts | .ts | import { RunService, Workspace } from "@rbxts/services";
import { LocalPlayerController } from "client/controller/LocalPlayerController";
import { LocalPlayer } from "engine/client/LocalPlayer";
import { HostedService } from "engine/shared/di/HostedService";
import { GameEnvironment } from "shared/data/GameEnvironment"... | 637 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/GraphicsSettingsController.ts | roblox-ts | .ts | import { Players } from "@rbxts/services";
import { HostedService } from "engine/shared/di/HostedService";
import { PartUtils } from "shared/utils/PartUtils";
import type { PlayerDataStorage } from "client/PlayerDataStorage";
import type { SharedPlots } from "shared/building/SharedPlots";
@injectable
export class Grap... | 418 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/MirrorVisualizer.ts | roblox-ts | .ts | import { ReplicatedStorage } from "@rbxts/services";
import { Component } from "engine/shared/component/Component";
import type { ReadonlyObservableValue } from "engine/shared/event/ObservableValue";
import type { SharedPlot } from "shared/building/SharedPlot";
export class MirrorVisualizer extends Component {
privat... | 543 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/ObstaclesController.ts | roblox-ts | .ts | import { CollectionService } from "@rbxts/services";
import { initKillPlane, initLavaKillPlane } from "client/controller/KillPlane";
import { HostedService } from "engine/shared/di/HostedService";
import { Signal } from "engine/shared/event/Signal";
export class ObstaclesController extends HostedService {
constructor... | 195 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/RagdollController.ts | roblox-ts | .ts | import { ContextActionService } from "@rbxts/services";
import { InputController } from "engine/client/InputController";
import { LocalPlayer } from "engine/client/LocalPlayer";
import { Component } from "engine/shared/component/Component";
import { ComponentEvents } from "engine/shared/component/ComponentEvents";
impo... | 1,659 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/sound/MusicController.ts | roblox-ts | .ts | import { Workspace } from "@rbxts/services";
import { MusicPlaylist } from "client/controller/sound/MusicPlaylist";
import { SoundController } from "client/controller/SoundController";
import { HostedService } from "engine/shared/di/HostedService";
import type { PlayModeController } from "client/modes/PlayModeControlle... | 474 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/controller/sound/MusicPlaylist.ts | roblox-ts | .ts | import { TweenService } from "@rbxts/services";
const shuffleArray = <T>(array: T[]) => {
const result: T[] = [...array];
for (let i = 0; i < result.size(); i++) {
const indx = math.floor(math.random() * result.size());
[result[i], result[indx]] = [result[indx], result[i]];
}
return result;
};
export class Mu... | 508 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/AdminGui.ts | roblox-ts | .ts | import { Players } from "@rbxts/services";
import { SavePopup } from "client/gui/popup/SavePopup";
import { ServiceIntegrityChecker } from "client/integrity/ServiceIntegrityChecker";
import { PlayerDataStorage } from "client/PlayerDataStorage";
import { BuildingDiffer } from "client/tutorial2/BuildingDiffer";
import { ... | 1,596 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/Beacon.ts | roblox-ts | .ts | import { Players, ReplicatedStorage, RunService, Workspace } from "@rbxts/services";
import { Interface } from "engine/client/gui/Interface";
import { Component } from "engine/shared/component/Component";
import { InstanceComponent } from "engine/shared/component/InstanceComponent";
import { PartUtils } from "shared/ut... | 1,045 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/FpsCounterController.ts | roblox-ts | .ts | import { RunService } from "@rbxts/services";
import { Interface } from "engine/client/gui/Interface";
import { HostedService } from "engine/shared/di/HostedService";
export class FpsCounterController extends HostedService {
constructor() {
super();
const gui = Interface.getInterface<{ Fps: TextLabel }>().Fps;
... | 165 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/HideInterfaceController.ts | roblox-ts | .ts | import { ReplicatedStorage, StarterGui, UserInputService } from "@rbxts/services";
import { Anim } from "client/gui/Anim";
import { ButtonControl } from "engine/client/gui/Button";
import { Interface } from "engine/client/gui/Interface";
import { HostedService } from "engine/shared/di/HostedService";
import { Observabl... | 617 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/MaterialChooser.ts | roblox-ts | .ts | import { MarketplaceService, Players } from "@rbxts/services";
import { ButtonControl } from "engine/client/gui/Button";
import { Control } from "engine/client/gui/Control";
import { Colors } from "engine/shared/Colors";
import { Materials } from "engine/shared/data/Materials";
import { SubmittableValue } from "engine/... | 1,044 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/buildmode/BlockPreviewControl.ts | roblox-ts | .ts | import { RunService } from "@rbxts/services";
import { Control } from "engine/client/gui/Control";
export class BlockPreviewControl extends Control<ViewportFrame> {
private block?: BlockModel;
constructor(gui: ViewportFrame, block?: BlockModel) {
super(gui);
this.set(block);
this.event.subscribe(RunService.H... | 251 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/buildmode/HotbarControl.ts | roblox-ts | .ts | import { StarterGui, UserInputService } from "@rbxts/services";
import { LoadingController } from "client/controller/LoadingController";
import { SoundController } from "client/controller/SoundController";
import { Control } from "engine/client/gui/Control";
import { ComponentKeyedChildren } from "engine/shared/compone... | 1,271 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/buildmode/MaterialColorEditControl.ts | roblox-ts | .ts | import { UserInputService } from "@rbxts/services";
import { Color4Chooser } from "client/gui/Color4Chooser";
import { BlockPipetteButton } from "client/gui/controls/BlockPipetteButton";
import { MaterialChooser } from "client/gui/MaterialChooser";
import { TextButtonControl } from "engine/client/gui/Button";
import { ... | 2,287 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/configControls/ConfigControlColor.ts | roblox-ts | .ts | import { ContextActionService, UserInputService } from "@rbxts/services";
import { Anim } from "client/gui/Anim";
import { Color4Chooser } from "client/gui/Color4Chooser";
import { ColorVisualizerWithAlpha } from "client/gui/ColorVisualizerWithAlpha";
import { ConfigControlBase } from "client/gui/configControls/ConfigC... | 1,585 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/configControls/ConfigControlMaterial.ts | roblox-ts | .ts | import { ContextActionService, UserInputService } from "@rbxts/services";
import { Anim } from "client/gui/Anim";
import { ConfigControlBase } from "client/gui/configControls/ConfigControlBase";
import { MaterialChooser } from "client/gui/MaterialChooser";
import { Control } from "engine/client/gui/Control";
import { I... | 923 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/controls/BlockPipetteButton.ts | roblox-ts | .ts | import { Players, UserInputService } from "@rbxts/services";
import { HoveredPartHighlighter } from "client/tools/highlighters/HoveredPartHighlighter";
import { ButtonControl } from "engine/client/gui/Button";
import { Interface } from "engine/client/gui/Interface";
import { Element } from "engine/shared/Element";
impo... | 1,033 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/controls/KeyChooserControl.ts | roblox-ts | .ts | import { ContextActionService } from "@rbxts/services";
import { SelectButtonPopup, SelectButtonPopupWithCustomString } from "client/gui/popup/SelectButtonPopup";
import { Control } from "engine/client/gui/Control";
import { InputController } from "engine/client/InputController";
import { ObservableValue } from "engine... | 673 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/controls/PlayerSelectorListControl.ts | roblox-ts | .ts | import { Players, RunService } from "@rbxts/services";
import { ButtonControl } from "engine/client/gui/Button";
import { Control } from "engine/client/gui/Control";
import { ComponentKeyedChildren } from "engine/shared/component/ComponentKeyedChildren";
import { Transforms } from "engine/shared/component/Transforms";
... | 1,354 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/controls/SliderControl.ts | roblox-ts | .ts | import { Players, UserInputService } from "@rbxts/services";
import { NumberTextBoxControlNullable } from "client/gui/controls/NumberTextBoxControl";
import { ProgressBarControl } from "client/gui/controls/ProgressBarControl";
import { PartialControl } from "engine/client/gui/PartialControl";
import { EventHandler } fr... | 1,590 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/playerSettings/PlayerSettingsBlacklist.ts | roblox-ts | .ts | import { ConfigControlBlacklist } from "client/gui/configControls/ConfigControlBlacklist";
import { ConfigControlList } from "client/gui/configControls/ConfigControlsList";
import { Objects } from "engine/shared/fixes/Objects";
import { CustomRemotes } from "shared/Remotes";
import type {
ConfigControlListDefinition,
... | 355 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/playerSettings/PlayerSettingsEnvironment.ts | roblox-ts | .ts | import { ConfigControlList } from "client/gui/configControls/ConfigControlsList";
import { Colors } from "engine/shared/Colors";
import { Observables } from "engine/shared/event/Observables";
import type {
ConfigControlListDefinition,
ConfigControlTemplateList,
} from "client/gui/configControls/ConfigControlsList";
i... | 940 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/popup/AlertPopup.ts | roblox-ts | .ts | import { GuiService } from "@rbxts/services";
import { SoundController } from "client/controller/SoundController";
import { Control } from "engine/client/gui/Control";
import { Interface } from "engine/client/gui/Interface";
import type { ButtonDefinition } from "engine/client/gui/Button";
type AlertPopupDefinition = ... | 353 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/popup/ConfirmPopup.ts | roblox-ts | .ts | import { GuiService } from "@rbxts/services";
import { SoundController } from "client/controller/SoundController";
import { Control } from "engine/client/gui/Control";
import { Interface } from "engine/client/gui/Interface";
import { PartialControl } from "engine/client/gui/PartialControl";
const template = Interface.... | 370 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/popup/ReportSubmitPopup.ts | roblox-ts | .ts | import { Base64 } from "@rbxts/crypto";
import { GuiService, Players } from "@rbxts/services";
import { SoundController } from "client/controller/SoundController";
import { ButtonControl } from "engine/client/gui/Button";
import { Control } from "engine/client/gui/Control";
import { Interface } from "engine/client/gui/... | 897 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/popup/SelectButtonPopup.ts | roblox-ts | .ts | import { GuiService } from "@rbxts/services";
import { TextButtonControl } from "engine/client/gui/Button";
import { Control } from "engine/client/gui/Control";
import { Interface } from "engine/client/gui/Interface";
import { TextBoxControl } from "engine/client/gui/TextBoxControl";
import { Signal } from "engine/shar... | 988 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/popup/TextPopup.ts | roblox-ts | .ts | import { GuiService } from "@rbxts/services";
import { ButtonControl } from "engine/client/gui/Button";
import { Control } from "engine/client/gui/Control";
import { Interface } from "engine/client/gui/Interface";
type TextPopupDefinition = GuiObject & {
readonly Heading: Frame & {
readonly CloseButton: TextButton;... | 357 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/ridemode/RideModeScene.ts | roblox-ts | .ts | import { RunService, UserInputService, Workspace } from "@rbxts/services";
import { LoadingController } from "client/controller/LoadingController";
import { LocalPlayerController } from "client/controller/LocalPlayerController";
import { ManualBeacon } from "client/gui/Beacon";
import { CheckBoxControl } from "client/g... | 4,693 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/gui/static/TooltipsControl.ts | roblox-ts | .ts | import { UserInputService } from "@rbxts/services";
import { Control } from "engine/client/gui/Control";
import { Interface } from "engine/client/gui/Interface";
import { InputController } from "engine/client/InputController";
import { InstanceComponent } from "engine/shared/component/InstanceComponent";
import { Eleme... | 1,046 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/main.client.ts | roblox-ts | .ts | import { ContentProvider, Players, ReplicatedStorage, RunService, Workspace } from "@rbxts/services";
import { LoadingController } from "client/controller/LoadingController";
import { BSOD } from "client/gui/BSOD";
import { SandboxGame } from "client/SandboxGame";
import { Interface } from "engine/client/gui/Interface"... | 745 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/modes/PlayModeController.ts | roblox-ts | .ts | import { GuiService, StarterGui } from "@rbxts/services";
import { BuildingMode } from "client/modes/build/BuildingMode";
import { requestMode } from "client/modes/PlayModeRequest";
import { RideMode } from "client/modes/ride/RideMode";
import { LocalPlayer } from "engine/client/LocalPlayer";
import { HostedService } f... | 795 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/modes/build/CenterOfMassController.ts | roblox-ts | .ts | import { ReplicatedStorage, Workspace } from "@rbxts/services";
import { Interface } from "engine/client/gui/Interface";
import { Component } from "engine/shared/component/Component";
import { ComponentInstance } from "engine/shared/component/ComponentInstance";
import { ComponentStateContainer } from "engine/shared/co... | 1,637 |
anywaymachines/overengineered | anywaymachines-overengineered-d872be4/src/client/modes/build/WeldVisualizer.ts | roblox-ts | .ts | import { ReplicatedStorage, Workspace } from "@rbxts/services";
import { Interface } from "engine/client/gui/Interface";
import { Component } from "engine/shared/component/Component";
import { ComponentInstance } from "engine/shared/component/ComponentInstance";
import { ComponentStateContainer } from "engine/shared/co... | 1,209 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.