repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/graph/linegraph.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local container = require(script.Parent.Parent.util.container) local create = vide.create local source = vide.source local action = vide.action local effect = vide.effect local read = vide.read ...
381
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/interactable/button.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local anim = require(script.Parent.Parent.Parent.util.anim) local theme = require(script.Parent.Parent.Parent.util.theme) local typography = require(script.Parent.Parent.display.typography) local padding = require(script.Parent.Parent.util.padding) local cr...
982
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/interactable/select.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local theme = require(script.Parent.Parent.Parent.util.theme) local scroll_frame = require(script.Parent.Parent.display.scroll_frame) local container = require(script.Parent.Parent.util.container) local list = require(script.Parent.Parent.util.list) local pa...
1,028
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/interactable/textfield.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local anim = require(script.Parent.Parent.Parent.util.anim) local theme = require(script.Parent.Parent.Parent.util.theme) local typography = require(script.Parent.Parent.display.typography) local padding = require(script.Parent.Parent.util.padding) local cr...
1,022
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/container.luau
luau
.luau
--[[ container is a basic transparent frame that covers the entire frame. ]] local vide = require(script.Parent.Parent.Parent.Parent.vide) local create = vide.create local function container(props: vide.vFrame) return create "Frame" { Name = "Container", AutoLocalize = false, Size = UDim2.fromScale(1, 1...
96
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/gap.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local container = require(script.Parent.container) local read = vide.read type can<T> = T | () -> T type props = { gap: can<number>, direction: can<"x" | "y">?, } return function(props: props) local function direction() return read(props.direction...
150
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/list.luau
luau
.luau
--[[ Creates a container for a list of elements. ]] local vide = require(script.Parent.Parent.Parent.Parent.vide) local container = require(script.Parent.container) local create = vide.create local read = vide.read type can<T> = (() -> T) | T type layout = { justifycontent: can<Enum.UIFlexAlignment>?, alignite...
293
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/padding.luau
luau
.luau
--[[ Fast and easy to use padding utility to make controlling padding quick and simple. ]] local vide = require(script.Parent.Parent.Parent.Parent.vide) local create = vide.create type can<T> = T | () -> T type padding = { padding: can<UDim>?, x: can<UDim>?, y: can<UDim>?, left: can<UDim>?, right: can<UDim>?,...
222
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/portal.luau
luau
.luau
--[[ portal is used to render a component over other components. it will find the nearest layer collector to parent itself and it's descendants onto, and if inherit_layout is enabled, inherits the nearest guibase2d's size and position properties. ]] local vide = require(script.Parent.Parent.Parent.Parent.vide) local...
662
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/rounded_frame.luau
luau
.luau
--[[ rounded_frame is a special kind of frame with UICorner controls for every single corner. ]] local vide = require(script.Parent.Parent.Parent.Parent.vide) local container = require(script.Parent.container) local create = vide.create local read = vide.read type can<T> = T | () -> T type rounded_frame = { name:...
1,372
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/row.luau
luau
.luau
--[[ Creates a container for a list of elements. ]] local vide = require(script.Parent.Parent.Parent.Parent.vide) local container = require(script.Parent.container) local create = vide.create local read = vide.read type can<T> = (() -> T) | T type layout = { justifycontent: can<Enum.UIFlexAlignment>?, alignite...
303
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/shadow.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local create = vide.create type can<T> = T | () -> T type props = { zindex: can<number>?, transparency: can<number>? } return function(props: props) return create "UIStroke" { Thickness = 2, Color = Color3.new(0, 0, 0), Transparency = 0.8 } ...
97
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/components/util/virtualscroller.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.vide) local scroll_frame = require(script.Parent.Parent.display.scroll_frame) local container = require(script.Parent.container) local create = vide.create local source = vide.source local values = vide.values local changed = vide.changed local effect = vide.effe...
1,126
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/init.luau
luau
.luau
local accordion = require(script.components.display.accordion) local background = require(script.components.display.background) local checkbox = require(script.components.display.checkbox) local divider = require(script.components.display.divider) local pages = require(script.components.display.pages) local pane = requ...
412
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/libraries/apcaw3.luau
luau
.luau
local SA98G = { mainTRC = 2.4, mainTRCencode = 1 / 2.4, sRco = 0.2126729, sGco = 0.7151522, sBco = 0.0721750, normBG = 0.56, normTXT = 0.57, revTXT = 0.62, revBG = 0.65, blkThrs = 0.022, blkClmp = 1.414, scaleBoW = 1.14, scaleWoB = 1.14, loBoWoffset = 0.027, loWoBoffset = 0.027, deltaYmin = 0.0005, loC...
4,535
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/libraries/cascade.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.vide) local action = vide.action local cleanup = vide.cleanup --[[ Cascades are applied and passed through an instance. Use a context if you need to pass this through function scopes. This is primarily useful for passing down theme information. ]] local function cas...
277
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/libraries/context.luau
luau
.luau
--[[ Implements a form of dependency injection to save the need from passing data as props through intermediate components. ]] export type Context<T = nil> = { default_value: T, _values: {[thread]: T}, provide: <U>(Context<T>, callback: () -> U) -> (new: T) -> U, consume: (Context<T>) -> T } type ContextNoDefa...
346
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/libraries/delay.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.vide) local source = vide.source local effect = vide.effect local cleanup = vide.cleanup return function<T>(delay: number, input: () -> T): () -> T local output = source(input()) effect(function() local v = input(...
122
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/libraries/store.luau
luau
.luau
-------------------------------------------------------------------------------- -- videx/store.luau -------------------------------------------------------------------------------- local vide = require(script.Parent.Parent.Parent.vide) local source = vide.source local NULL = newproxy() local Store = {} --[=[ Creat...
659
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/util/anim.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.vide) local reduced_motion = require(script.Parent.reduced_motion) local source = vide.source local spring = vide.spring local untrack = vide.untrack type Animation = "move" | "" return function<T>(s: () -> T) local type = typeof(untrack(s)) local is_movement = fals...
153
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/util/consume.luau
luau
.luau
--[[ Consumes a property from a table and removes it ]] return function(t: {}, key: string) local v = t[key]; t[key] = nil return v end
41
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/util/contrast.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.vide) local apcaw3 = require(script.Parent.Parent.libraries.apcaw3) local oklch = require(script.Parent.oklch) local derive = vide.derive local read = vide.read local function min_contrast(options: { size: can<number>, weight: can<number | Font>?, body: can<boolean>...
1,716
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/util/oklch.luau
luau
.luau
local oklab = require(script.Parent.Parent.libraries.oklab) --[=[ Converts OkLCh into a Color3. lightness is a value between 0-1, determining how "light" a color is. chroma is a value between 0 to infinity, determining how colorful something is. current displays can only display a chroma up to around 0.34, and srgb...
193
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/util/reduced_motion.luau
luau
.luau
local context = require(script.Parent.Parent.libraries.context) return context(false)
15
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_pebble@0.1.2/pebble/src/util/theme.luau
luau
.luau
--[[ simple theme engine for computing colors ]] local vide = require(script.Parent.Parent.Parent.vide) local apcaw3 = require(script.Parent.Parent.libraries.apcaw3) local contrast = require(script.Parent.contrast) local oklch_to_color3 = require(script.Parent.oklch) local source = vide.source local function oklch(...
1,594
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/jabby.lua
luau
.lua
return require(script.Parent._Index["alicesaidhi_jabby@0.2.2"]["jabby"])
23
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/jecs.lua
luau
.lua
return require(script.Parent._Index["ukendio_jecs@0.9.0"]["jecs"])
22
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/ServerScriptService/main.server.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local start = require(ReplicatedStorage.std.start) start(script.Parent:WaitForChild("systems"):GetChildren())
37
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/ServerScriptService/systems/mob_avoid.luau
luau
.luau
--!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std local world = require(std.world) local cts = require(std.components) local scheduler = require(std.scheduler) local phases = require(std.phases) local Mob = cts.Mob local Transform = ct...
666
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/ServerScriptService/systems/mob_move.luau
luau
.luau
-- ServerScriptService/systems/mob_move.luau --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local std = ReplicatedStorage.std local world = require(std.world) local cts = require(std.components) local scheduler = require(std.sc...
940
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/ServerScriptService/systems/players.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std local ref = require(std.ref) local cts = require(std.components) local world = require(std.world) local Player = cts.Player local Character = cts.Character local conn = {} local function playersAdded(player: Player) lo...
207
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterGui/ScreenGui/MobCount/LocalScript.client.luau
luau
.luau
local label = script.Parent local replicated = game:GetService("ReplicatedStorage") local count = replicated:WaitForChild("Count") count.Changed:Connect(function(value) label.Text = "Mob Count :" .. value end)
48
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterPlayer/StarterPlayerScripts/Sky.client.luau
luau
.luau
local Lighting = game:GetService("Lighting") local RunService = game:GetService("RunService") local Sky = Lighting:WaitForChild("Sky") :: Sky local TOTAL_TIME = 600-- 5 minutes in seconds local ROTATION_SPEED = 360 / TOTAL_TIME -- 1.2 degrees per second RunService.RenderStepped:Connect(function(dt) local ori = Sky...
123
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterPlayer/StarterPlayerScripts/systems/MobDebug.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local NPC_HITBOXES = workspace:WaitForChild("NPC_Hitboxes") type Visual = { range: BasePart?, ray: BasePart?, gui: BillboardGui, label: TextLabel, } local VISUALS: {[BasePart]: Visual} = {} local function makeBillboard(hitbox: BasePart): Vis...
1,572
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterPlayer/StarterPlayerScripts/systems/move.luau
luau
.luau
--StarterPlayer/StarterPlayerScripts/systems/move.luau --!optimize 2 --!native --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std local world = require(std.world) local scheduler = require(std.scheduler) local cts = require(std.components) local Model = cts.Mode...
839
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/StarterPlayer/StarterPlayerScripts/systems/syncMobs.luau
luau
.luau
--StarterPlayer/StarterPlayerScripts/systems/syncMobs.luau May move to replicated later --!optimize 2 --!native --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std local ref = require(std.ref) local world = require(std.world) local cts = require(std.components) l...
505
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/jecs.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") return require(ReplicatedStorage.Packages.jecs)
24
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/bt.luau
luau
.luau
--!optimize 2 --!native -- original author @centau local FAILURE = -1 local RUNNING = 0 local SUCCESS = 1 local function SEQUENCE(nodes) return function(...) for _, node in nodes do local status = node(...) if status <= RUNNING then return status end end return SUCCESS end end local functio...
160
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/collect.luau
luau
.luau
--!nonstrict --[[ local signal = Signal.new() :: Signal.Signal<string, string> local events = collect(signal) local function system(world) for id, str1, str2 in events do -- end end ]] --[[ original author by @memorycode MIT License Copyright (c) 2024 Michael Permission is hereby granted, free of charge...
442
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/interval.luau
luau
.luau
local function interval(s) local pin local function throttle() if not pin then pin = os.clock() end local elapsed = os.clock() - pin > s if elapsed then pin = os.clock() end return elapsed end return throttle end return interval
68
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/mailbox.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local std = ReplicatedStorage.std -- Mailbox.lua (singleton) local world = require(std.world) local C = require(std.components) local M = { sys = nil, bufByComp = {} } -- one global mailbox local function ensureSYS(comp) if M.sys then return M.sy...
317
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/phases.luau
luau
.luau
local std = game:GetService("ReplicatedStorage").std local Players = game:GetService("Players") local RunService = game:GetService("RunService") local scheduler = require(std.scheduler) local PHASE = scheduler.PHASE -- ===== Phase Creation with Validation ===== local phases = {} local function createPhase(name: stri...
912
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/ref.luau
luau
.luau
local world = require(script.Parent.world) local jecs = require(game:GetService("ReplicatedStorage").ecs) local refs: {[any]: jecs.Entity} = {} local function fini(key): () -> () return function() refs[key] = nil end end local function noop() end local function ref(key): (jecs.Entity, () -> ()) if not key then ...
144
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/scheduler.luau
luau
.luau
--!native --!optimize 2 local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local jabby = require(ReplicatedStorage.Packages.jabby) local jecs = require(ReplicatedStorage.ecs) local pair = jecs.pair local Name = jecs.Name type World = jecs.World type Entity<T...
1,051
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/start.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local jabby = require(ReplicatedStorage.Packages.jabby) local std = ReplicatedStorage.std local scheduler = require(std.scheduler) local world = re...
234
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/src/std/world.luau
luau
.luau
local jecs = require(game:GetService("ReplicatedStorage").ecs) -- I like the idea of only having the world be a singleton. local world = jecs.World.new() :: jecs.World return world
44
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/App.luau
luau
.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Localization = require(Plugin.Util.Localization) local Tooltip = require(Plugin.Components.Tooltip) local TabSet = require(Plugin.Components.TabSet) local UpdateNotice = require(Plugin.Components.UpdateNotice) -- TODO: Put these ...
591
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/MaterialPanel/MaterialGridItem.luau
luau
.luau
local Plugin = script.Parent.Parent.Parent local React = require(Plugin.Packages.React) local Localization = require(Plugin.Util.Localization) local MaterialViewport = require(script.Parent.MaterialViewport) local Tooltip = require(Plugin.Components.Tooltip) local useTheme = require(Plugin.Contexts.StudioTheme).use...
805
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/MaterialPanel/MaterialViewport.luau
luau
.luau
-- This is based off of how Roblox does it on the Terrain Editor. -- It might be bad but it works. local InsertService = game:GetService('InsertService') local React = require(script.Parent.Parent.Parent.Packages.React) local DEFAULT_COLORS = { [Enum.Material.Asphalt] = Color3.fromRGB(80, 84, 84), [Enum.Material...
1,244
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/MaterialPanel/init.luau
luau
.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Constants = require(Plugin.Util.Constants) local Localization = require(Plugin.Util.Localization) local MaterialGridItem = require(script.MaterialGridItem) local ScrollingFrame = require(Plugin.Components.ScrollingFrame) local Sea...
805
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/Outline.luau
luau
.luau
local CoreGui = game:GetService('CoreGui') local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local ReactRoblox = require(Plugin.Packages.ReactRoblox) local Util = Plugin.Util local Constants = require(Util.Constants) local Settings = require(Util.Settings) local TerrainEnum = require(U...
973
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/PluginApp.luau
luau
.luau
local ChangeHistoryService = game:GetService('ChangeHistoryService') local Selection = game:GetService('Selection') local UserInputService = game:GetService('UserInputService') local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Util = Plugin.Util local Constants = require(Util.Con...
1,035
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/ScrollingFrame.luau
luau
.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local useTheme = require(Plugin.Contexts.StudioTheme).useTheme type Props = { AutomaticCanvasSize: Enum.AutomaticSize?, CanvasSize: UDim2?, Position: UDim2?, ScrollBarThickness: number?, ScrollingDirection: Enum.ScrollingDirec...
322
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/Search.luau
luau
.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local useTheme = require(Plugin.Contexts.StudioTheme).useTheme type Props = { Disabled: boolean?, PlaceholderText: string?, Position: UDim2?, Text: string?, OnTextChange: (string) -> ()?, } local function Search(props: Props...
1,261
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/SettingsPanel/SettingsToggleItem.luau
luau
.luau
local Plugin = script.Parent.Parent.Parent local React = require(Plugin.Packages.React) local Settings = require(Plugin.Util.Settings) local ToggleButton = require(Plugin.Components.ToggleButton) local useTheme = require(Plugin.Contexts.StudioTheme).useTheme type Props = { Title: string, SettingKey: string, ...
667
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/SettingsPanel/init.luau
luau
.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Util = Plugin.Util local createNextOrder = require(Util.createNextOrder) local Constants = require(Util.Constants) local Localization = require(Util.Localization) local useTheme = require(Plugin.Contexts.StudioTheme).useTheme loc...
628
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/StudioWidget.luau
luau
.luau
--[[ Props: InitialDockState InitialDockState boolean Enabled boolean OverridePreviousState Vector2 FloatingSize Vector2 MinimumSize ZIndexBehavior ZIndexBehavior function onClose ]] local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local ReactRoblox = req...
372
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/Tab.luau
luau
.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Tooltip = require(Plugin.Components.Tooltip) local useTheme = require(Plugin.Contexts.StudioTheme).useTheme type Props = { Disabled: boolean?, DisplayText: boolean?, Icon: string?, LayoutOrder: number?, Selected: boolea...
1,168
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/TabSet.luau
luau
.luau
local TAB_ICON_SIZE = 20 local TAB_INNER_PADDING = 6 local TAB_OUTER_PADDING = 2 local TextService = game:GetService('TextService') local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Tab = require(Plugin.Components.Tab) local createNextOrder = require(Plugin.Util.createNextOrder...
605
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/ToggleButton.luau
luau
.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local useTheme = require(Plugin.Contexts.StudioTheme).useTheme local IMAGE_BASE = 'rbxasset://textures/RoactStudioWidgets/toggle_%s_%s.png' type Props = { AnchorPoint: Vector2?, Disabled: boolean?, LayoutOrder: number?, Positio...
328
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Components/UpdateNotice.luau
luau
.luau
local MarketplaceService = game:GetService('MarketplaceService') local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Constants = require(Plugin.Util.Constants) local Localization = require(Plugin.Util.Localization) local useTheme = require(Plugin.Contexts.StudioTheme).useTheme lo...
624
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Contexts/StudioTheme.luau
luau
.luau
local StudioSettings = settings().Studio local React = require(script.Parent.Parent.Packages.React) local StudioThemeContext = React.createContext(StudioSettings.Theme) StudioThemeContext.displayName = 'StudioThemeContext' local function StudioThemeProvider(props) local theme, setTheme = React.useState(StudioSetti...
167
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Hooks/useEventConnection.luau
luau
.luau
local React = require(script.Parent.Parent.Packages.React) local function useEventConnection<T...>(event: RBXScriptSignal<T...>, callback: (T...) -> ()) React.useEffect(function() local connection = event:Connect(callback) return function() connection:Disconnect() end end, {}) end return useEve...
73
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Hooks/useStore.luau
luau
.luau
local React = require(script.Parent.Parent.Packages.React) local useEventConnection = require(script.Parent.useEventConnection) local Store = require(script.Parent.Parent.Util.Store) local function useStore(key: string) local value, setValue = React.useState(Store:Get(key)) useEventConnection(Store:GetChangedSign...
107
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/Constants.luau
luau
.luau
local Constants = {} Constants.RAYCAST_LENGTH = 15000 Constants.VOXEL_RESOLUTION = 4 ---------------------------------------- -- Meta settings ---------------------------------------- Constants.PLUGIN_BUTTON_ICON = 'rbxassetid://5768049797' Constants.OUTLINE_COLOR_ALLOW = Color3.fromRGB(56, 142, 60) Constants.OUTLIN...
361
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/GetAABBRegion.luau
luau
.luau
local RESOLUTION = require(script.Parent.Constants).VOXEL_RESOLUTION return function(cframe: CFrame, size: Vector3): (Region3, number) local inv = cframe:Inverse() local x = size * inv.RightVector local y = size * inv.UpVector local z = size * inv.LookVector local w = math.abs(x.X) + math.abs(x.Y) + math.ab...
225
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/Localization/init.luau
luau
.luau
local StudioService = game:GetService('StudioService') local Table = script.LocalizationTable local LocaleId = StudioService.StudioLocaleId local Translator local FallbackTranslator Translator = Table:GetTranslator(LocaleId) if LocaleId ~= 'en_US' then FallbackTranslator = Table:GetTranslator('en_US') end local fu...
170
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/Settings.luau
luau
.luau
--!nonstrict local plugin = plugin or script:FindFirstAncestorWhichIsA('Plugin') local DEFAULT_SETTINGS = { DeletePart = true, EnabledSelectionBox = true, IgnoreLockedParts = false, PreserveTerrain = true, IgnoreInvisibleParts = true } local Settings = {} Settings._values = table.clone(DEFAULT_SETTINGS) Set...
345
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/Store.luau
luau
.luau
--!nonstrict local BasicState = require(script.Parent.Parent.Packages.BasicState) local State = BasicState.new({ Material = Enum.Material.Grass, Panel = 'Materials', SearchTerm = '', }) State.ProtectType = true return State
55
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/TerrainConverter.luau
luau
.luau
--!native local Constants = require(script.Parent.Constants) local GetAABBRegion = require(script.Parent.GetAABBRegion) local TerrainEnum = require(script.Parent.TerrainEnum) local RESOLUTION = Constants.VOXEL_RESOLUTION local MAX_VOXEL_LIMIT_READWRITE = 4194304 local MAX_VOXEL_LIMIT_FILLAPIS = 67108864 local Terrain...
1,344
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/TerrainEnum.luau
luau
.luau
local TerrainEnum = {} TerrainEnum.Shape = { Ball = 'Ball', Block = 'Block', -- Roblox treats Cylinders differently for some reason. -- See: https://devforum.roblox.com/t/terrain-fillcylinder-rotating-incorrectly/336086 -- Cylinder = Part with a CylinderMesh -- CylinderRotate = Part.Shape == Enum.PartType...
149
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/TerrainUtil.luau
luau
.luau
local TerrainConverter = require(script.Parent.TerrainConverter) local TerrainEnum = require(script.Parent.TerrainEnum) local TerrainUtil = {} function TerrainUtil:IsConvertibleToTerrain(instance: Instance): boolean if not instance then return false end -- The Terrain class should not be converted to Terra...
979
mkargus/PartToTerrain
mkargus-PartToTerrain-f14dc1b/src/Util/createNextOrder.luau
luau
.luau
return function(): () -> number local layoutOrder = 0 return function() layoutOrder += 1 return layoutOrder end end
36
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/.env.example.luau
luau
.luau
return { ROBLOX_OC_API_KEY = "API_KEY_HERE", }
17
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/modules/core/src/__tests__/math.test.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local DevPackages = ReplicatedStorage.DevPackages local JestGlobals = require(DevPackages.JestGlobals) local describe = JestGlobals.describe local it = JestGlobals.it local expect = JestGlobals.expect describe("math", function() it("should add two nu...
89
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/modules/core/src/integrations/init.luau
luau
.luau
local Integrations = {} Integrations.InboundFilters = require(script.inboundfilter) return Integrations
22
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/modules/core/src/jest.config.luau
luau
.luau
return { displayName = "Core", }
9
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/modules/roblox/src/jest.config.luau
luau
.luau
return { displayName = "Roblox", }
10
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/modules/roblox/src/types.luau
luau
.luau
-- note: no upstream type Array<T> = { T } export type SourcemapEntry = { name: string, className: string, filePaths: Array<string>, children: Array<SourcemapEntry>?, } -- note: Moved here to avoid cyclic dependency between client.lua and stackparser.lua export type RobloxStackParserOptions = { -...
117
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/modules/types/src/jest.config.luau
luau
.luau
return { displayName = "Types", }
9
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/modules/types/src/promise.luau
luau
.luau
export type PromiseLike<T> = { andThen: ( self: PromiseLike<T>, resolve: ((T) -> ...(nil | T | PromiseLike<T>))?, reject: ((any) -> ...(nil | T | PromiseLike<T>))? ) -> PromiseLike<T>, } type PromiseStatus = "Started" | "Resolved" | "Rejected" | "Cancelled" export type Promise<T> = { ...
488
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/modules/utils/src/jest.config.luau
luau
.luau
return { displayName = "Utils", }
9
BrookenRecord/sentry-luau
BrookenRecord-sentry-luau-148b393/test-config.luau
luau
.luau
return { placeId = 98877362830092, universeId = 7864706368, testPlaceFile = "test-place.rbxl", rojoProjectFile = "test.project.json", }
47
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/QueryFilters.luau
luau
.luau
--[[ Filter methods for building database queries. @module Rest.QueryFilters @private ]] local QueryFilters = {} local Http = game:GetService("HttpService") --[[ Adds an equality filter (equals). @param column string -- Column name to filter @param value any -- Value to compare against @return table -- Return...
1,790
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/QueryMutations.luau
luau
.luau
--[[ Mutation methods for inserting, updating, and deleting data. @module Rest.QueryMutations @private ]] local QueryMutations = {} local Http = game:GetService("HttpService") -- Re-export types for internal use local Types = require(script.Parent.Types) export type InsertOptions = Types.InsertOptions export type...
742
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/QueryOperators.luau
luau
.luau
--[[ Filter operators and utilities for building query filters. @module Rest.QueryOperators @private ]] local QueryOperators = {} local Http = game:GetService("HttpService") -- Re-export types for internal use local Types = require(script.Parent.Types) export type OrFilterOptions = Types.OrFilterOptions --[[ Ad...
714
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/Types.luau
luau
.luau
local Types = {} --------------------------------------------------------------------- -- Base execution interface (available on final stage & also included -- in intermediate stages so execute() is available anywhere). --------------------------------------------------------------------- export type BaseExec = { -- ...
2,351
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/Utils.luau
luau
.luau
--[[ Utility functions for the Supabase REST client. @module Rest.Utils @private ]] local Utils = {} --[[ Attempts to load user-provided type definitions from a `Database.Types` ModuleScript. @param scriptRoot Instance? -- The script root to search from @return table? -- Loaded types module or nil if not found...
395
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/Rest/init.luau
luau
.luau
--[[ The main REST client class for interacting with Supabase PostgREST API. @module Rest ]] local Rest = {} Rest.__index = Rest -- Import dependencies local Utils = require(script.Utils) local Types = require(script.Types) local QueryBuilder = require(script.QueryBuilder) local RPCBuilder = require(script.RPCBuild...
535
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/UnitTests/RestTypesTest.luau
luau
.luau
--!strict -- ModuleScript: RestTypesTest.luau -- Provides: RestTypesTest.run() local RestTypesTest = {} --------------------------------------------------------------------- -- Utilities --------------------------------------------------------------------- local function hasKey(t: table, k: string) return t[k] ~= n...
1,638
chteau/Roblox-Supabase
chteau-Roblox-Supabase-8af6e67/src/Supabase/init.luau
luau
.luau
--[[ Main Supabase client module that provides unified access to all Supabase services. This module serves as the primary entry point for the Supabase client, providing: - Database queries via PostgREST (select, insert, update, delete, upsert) - PostgreSQL function calls (RPC) - Edge Functions invocation - Compr...
1,364
artworm0/roblox-plugin-color-picker
artworm0-roblox-plugin-color-picker-6f2cb4a/color_picker.luau
luau
.luau
type PluginColorPicker = { Prompt : (self : PluginColorPicker, startingColor : Color3?) -> Color3?, BindToChange : (self : PluginColorPicker, (Color3) -> nil) -> nil, Set : (self : PluginColorPicker, color : Color3) -> nil, Cancel : (self : PluginColorPicker, Color3?) -> nil, Destroy : (self : PluginColorPicker) -...
10,060
YetAnotherClown/luau-futures
YetAnotherClown-luau-futures-e6e8cf8/scripts/run-tests.server.luau
luau
.luau
_G.NOCOLOR = _G.NOCOLOR local ReplicatedStorage = game:GetService("ReplicatedStorage") local Packages = ReplicatedStorage.Packages local Jest = require("@DevPackages/Jest") local runCLIOptions = { verbose = true, ci = false, } local projects = { Packages.Project, } Jest.runCLI(script, runCLIOptions, projects):a...
86
YetAnotherClown/luau-futures
YetAnotherClown-luau-futures-e6e8cf8/src/Future.luau
luau
.luau
local Poll = require("./Poll") export type Poll<E, U...> = Poll.Poll<E, U...> local Result = require("./Result") export type Result<E, U...> = Result.Result<E, U...> --- @class Future --- --- A Future represents a read-only asynchronous value, one that may not --- have finished computation. --- --- Futures are lazy i...
2,290
YetAnotherClown/luau-futures
YetAnotherClown-luau-futures-e6e8cf8/src/Poll.luau
luau
.luau
local Result = require("./Result") type Result<E, U...> = Result.Result<E, U...> type PollImpl<E, U...> = { isReady: (self: Poll<E, U...>) -> boolean, isPending: (self: Poll<E, U...>) -> boolean, unwrap: (self: Poll<E, U...>) -> Result<E, U...>, } --- @class Poll --- --- A Poll represents the status of a [Result],...
892
YetAnotherClown/luau-futures
YetAnotherClown-luau-futures-e6e8cf8/src/Result.luau
luau
.luau
local utils = require("./utils") local prettyPrint = utils.prettyPrint type ResultType = "Ok" | "Err" type ResultImpl<E, U...> = { isOk: (self: Result<E, U...>) -> boolean, isErr: (self: Result<E, U...>) -> boolean, unwrapOk: (self: Result<E, U...>) -> U..., unwrapErr: (self: Result<E, U...>) -> E, } --- @class ...
668
YetAnotherClown/luau-futures
YetAnotherClown-luau-futures-e6e8cf8/src/__tests__/after.test.luau
luau
.luau
local JestGlobals = require("@DevPackages/JestGlobals") local describe = JestGlobals.describe local test = JestGlobals.test local expect = JestGlobals.expect local jest = JestGlobals.jest local Futures = require("../init") local Future = Futures.Future describe("after", function() test("success", function() local...
261
YetAnotherClown/luau-futures
YetAnotherClown-luau-futures-e6e8cf8/src/__tests__/andThen.test.luau
luau
.luau
local JestGlobals = require("@DevPackages/JestGlobals") local test = JestGlobals.test local expect = JestGlobals.expect local Futures = require("../init") local Future = Futures.Future test("andThen", function() local myFuture = Future.new(function() return "a", "b", "c" end) local nextFuture = myFuture:andThe...
142
YetAnotherClown/luau-futures
YetAnotherClown-luau-futures-e6e8cf8/src/__tests__/await.test.luau
luau
.luau
local JestGlobals = require("@DevPackages/JestGlobals") local describe = JestGlobals.describe local test = JestGlobals.test local expect = JestGlobals.expect local Futures = require("../init") local Future = Futures.Future describe("await", function() test("immediate", function() local myFuture = Future.new(funct...
211
YetAnotherClown/luau-futures
YetAnotherClown-luau-futures-e6e8cf8/src/__tests__/chaining.test.luau
luau
.luau
local JestGlobals = require("@DevPackages/JestGlobals") local test = JestGlobals.test local expect = JestGlobals.expect local Futures = require("../init") local Future = Futures.Future test("chaining", function() expect.assertions(6) local myFuture = Future.new(function() return 1, 2, 3 end) :andThen(functio...
345