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 |
|---|---|---|---|---|---|
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/Iris.luau | luau | .luau | local Iris = require("@pkgs/Iris")
local typeforge = require("@include/typeforge")
local types = require("@include/types")
type Cleanup = () -> ()
type WidgetCall<Class> = types.WidgetCall<Class>
export type Config = typeof(Iris._config)
export type PartialConfig = typeforge.Partial<Config>
export type State<T> = typ... | 808 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/constants.luau | luau | .luau | return table.freeze({
userIds = table.freeze({
znotfireman = 10014656431,
syylvi = 3814464357,
}),
})
| 37 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/Extension.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local Command = require("@src/core/commands/Command")
local CommandRuntime = require("@src/core/commands/CommandRuntime")
local assets = require("@include/assets")
local atoms = require("@src/utils/atoms")
local createCommand = require("@src/core/constructors/createCommand")
local t... | 829 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/Log.luau | luau | .luau | local LocalizationService = game:GetService("LocalizationService")
local Charm = require("@pkgs/Charm")
local repr = require("@include/repr")
export type LogEvent = {
timestamp: DateTime,
from: Log,
level: number,
args: { [number]: any, n: number },
}
local LOG_LEVELS = {
ERROR = 1,
WARN = 2,
INFO = 3,
DEBUG... | 696 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/Command.luau | luau | .luau | local CommandRuntime = require("./CommandRuntime")
local assets = require("@include/assets")
local types = require("@src/types")
export type CommandRunner =
| ((r: CommandRuntime.CommandRuntime) -> ())
| ((r: CommandRuntime.CommandRuntime) -> types.CommandOutput)
| ((r: CommandRuntime.CommandRuntime) -> types.Comma... | 307 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/CommandRuntime.luau | luau | .luau | local ChangeHistoryService = game:GetService("ChangeHistoryService")
local RunService = game:GetService("RunService")
local Selection = game:GetService("Selection")
local Gizmos = require("@src/core/Gizmos")
local Iris = require("@src/Iris")
local Log = require("@src/core/Log")
local Trove = require("@pkgs/Trove")
loc... | 994 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/CommandStore.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local Command = require("./Command")
local CommandRuntime = require("./CommandRuntime")
local types = require("@src/types")
local CommandStore = {}
CommandStore.runtimes = Charm.atom({} :: { [Command.Command]: CommandRuntime.CommandRuntime })
CommandStore.uiOutputs = Charm.atom({} ... | 179 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/isOutputsUi.luau | luau | .luau | local types = require("@src/types")
local function isOutputsUi(output: types.CommandOutput?)
return output ~= nil and (output.renderViewport or output.renderWindow) ~= nil
end
return isOutputsUi
| 43 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/commands/runCommand.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local CommandStore = require("@src/core/commands/CommandStore")
local atoms = require("@src/utils/atoms")
local constructors = require("@src/core/constructors")
local isOutputsUi = require("@src/core/commands/isOutputsUi")
local pluginTrove = require("@src/pluginTro... | 345 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/createCommand.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local types = require("@src/types")
local function createCommand(interface: types.CommandInterface, runner: Command.CommandRunner): Command.Command
return setmetatable({
_extension = nil,
_runner = runner,
interface = table.freeze(table.clone(interface)),
}... | 79 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/createCommandRuntime.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local CommandRuntime = require("@src/core/commands/CommandRuntime")
local Log = require("@src/core/Log")
local Trove = require("@pkgs/Trove")
local function createCommandRuntime(trove: Trove.Trove, command: Command.Command): CommandRuntime.CommandRuntime
return se... | 120 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/createCoreExtension.luau | luau | .luau | local Extension = require("@src/core/Extension")
local createExtension = require("./createExtension")
local plugin = require("@src/plugin")
local types = require("@src/types")
local function createCoreExtension(interface: types.ExtensionInterface): Extension.Extension
return createExtension(plugin, interface)
end
re... | 63 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/createExtension.luau | luau | .luau | local Extension = require("@src/core/Extension")
local atoms = require("@src/utils/atoms")
local types = require("@src/types")
local function createExtension(plugin: Plugin, interface: types.ExtensionInterface): Extension.Extension
types.ExtensionInterface:assert(interface)
if Extension._extensionsById()[interface.i... | 161 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/constructors/init.luau | luau | .luau | -- Constructors are separate from the classes as to disallow the end-user from
-- constructing their own instances.
return table.freeze({
createCommand = require("@self/createCommand"),
createCommandRuntime = require("@self/createCommandRuntime"),
createCoreExtension = require("@self/createCoreExtension"),
createE... | 67 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/core/hooks/useKeys.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
local KEY_CODES = Enum.KeyCode:GetEnumItems()
local function getKeysDown()
local result = {}
for _, keyCode in KEY_CODES do
result[keyCode] = UserInputService:IsKeyDown(keyCode)
end
return result
end
local store = {}
store.KEY_CODES = KEY_CODES
store... | 251 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/init.server.luau | luau | .luau | local plugin = require("@self/plugin")
if not plugin then
error("Rocket must be run as a plugin!")
end
local CoreGui = game:GetService("CoreGui")
local LogService = game:GetService("LogService")
local Charm = require("@pkgs/Charm")
local Command = require("@src/core/commands/Command")
local CommandRuntime = require(... | 1,621 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/launcher/LauncherStore.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local Command = require("@src/core/commands/Command")
local Extension = require("@src/core/Extension")
local fzy = require("@include/fzy")
local LauncherStore = {}
LauncherStore.isVisible = Charm.atom(false)
LauncherStore.isFocused = Charm.atom(false)
LauncherStore.selectedIndex = ... | 441 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/launcher/LauncherWindow.luau | luau | .luau | local Workspace = game:GetService("Workspace")
local Command = require("@src/core/commands/Command")
local Iris = require("@src/Iris")
local LauncherStore = require("./LauncherStore")
local runCommand = require("@src/core/commands/runCommand")
local useKeys = require("@src/core/hooks/useKeys")
local widgets = require(... | 581 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/plugin.luau | luau | .luau | local plugin: Plugin = plugin or script:FindFirstAncestorWhichIsA("Plugin") :: Plugin
return plugin
| 25 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/pluginTrove.luau | luau | .luau | local Trove = require("@pkgs/Trove")
local plugin = require("@src/plugin")
local pluginTrove = Trove.new()
pluginTrove:Add(plugin.Unloading:Connect(pluginTrove:WrapClean()))
return pluginTrove
| 49 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/CommandListing.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local Iris = require("@src/Iris")
local SettingsStore = require("@src/settings/SettingsStore")
local widgets = require("@src/widgets")
local function CommandListing(command: Command.Command)
local group = widgets.ButtonGroup({ size = UDim2.fromScale(1, 0) })
if g... | 139 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/ExtensionList.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local CommandListing = require("./CommandListing")
local Extension = require("@src/core/Extension")
local ExtensionListing = require("./ExtensionListing")
local Iris = require("@src/Iris")
local SettingsStore = require("@src/settings/SettingsStore")
local theme = re... | 498 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/ExtensionListToolbar.luau | luau | .luau | local Iris = require("@src/Iris")
local SettingsStore = require("@src/settings/SettingsStore")
local Theme = require("@src/theme")
local widgets = require("@src/widgets")
local function ExtensionListToolbar()
local config = Theme.config()
Theme.push({
CellPadding = config.CellPadding,
WindowPadding = config.Wind... | 244 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/ExtensionListing.luau | luau | .luau | local Extension = require("@src/core/Extension")
local Iris = require("@src/Iris")
local SettingsStore = require("@src/settings/SettingsStore")
local assets = require("@include/assets")
local widgets = require("@src/widgets")
local function ExtensionListing(
extension: Extension.Extension,
extensionsCollapsed: { [Ex... | 276 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/Info.luau | luau | .luau | local Command = require("@src/core/commands/Command")
local Iris = require("@src/Iris")
local SettingsStore = require("@src/settings/SettingsStore")
local ids = require("@src/utils/ids")
local types = require("@src/types")
local widgets = require("@src/widgets")
local function Info()
local selected = SettingsStore.ex... | 558 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsPages/extensions/init.luau | luau | .luau | local ExtensionList = require("@self/ExtensionList")
local ExtensionListToolbar = require("@self/ExtensionListToolbar")
local Info = require("@self/Info")
local Iris = require("@src/Iris")
local assets = require("@include/assets")
local types = require("../types")
local widgets = require("@src/widgets")
local extensio... | 222 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsPages/init.luau | luau | .luau | local types = require("./types")
local SettingPages: { types.SettingsPage } = {
require("@self/extensions"),
require("@self/about"),
}
return SettingPages
| 33 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsSidebar.luau | luau | .luau | local Iris = require("@src/Iris")
local SettingsPages = require("./SettingsPages")
local SettingsStore = require("./SettingsStore")
local widgets = require("@src/widgets")
local function SettingsSidebar()
for _, page in SettingsPages do
if widgets.ButtonGroup({ size = UDim2.fromScale(1, 0) }).clicked() then
Sett... | 124 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsStore.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local Command = require("@src/core/commands/Command")
local Extension = require("@src/core/Extension")
local atoms = require("@src/utils/atoms")
local types = require("./types")
local SettingsStore = {
isVisible = Charm.atom(false),
currentPage = Charm.atom(nil :: types.SettingsP... | 199 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/SettingsWindow.luau | luau | .luau | local Workspace = game:GetService("Workspace")
local Iris = require("@pkgs/Iris")
local SettingsPages = require("./SettingsPages")
local SettingsSidebar = require("./SettingsSidebar")
local SettingsStore = require("./SettingsStore")
local SIDEBAR_WIDTH = 256
local WINDOW_ARGS = {
"Rocket Settings",
[Iris.Args.Windo... | 351 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/settings/types.luau | luau | .luau | export type SettingsPage = {
id: string,
title: string,
tabIcon: string,
extensionIcon: string,
render: () -> (),
}
return nil
| 34 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/theme/init.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local Iris = require("@pkgs/Iris")
local Trove = require("@pkgs/Trove")
local types = require("@self/types")
export type Config = types.Config
export type PartialConfig = types.PartialConfig
export type Theme = types.Theme
export type StudioTheme = types.StudioTheme
local theme = ... | 458 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/theme/presets/base.luau | luau | .luau | local types = require("../types")
local base: types.PartialConfig = {
TextTransparency = 0,
TextDisabledTransparency = 0,
BorderTransparency = 0.5,
BorderActiveTransparency = 0.3,
WindowBgTransparency = 0.06,
PopupBgTransparency = 0.06,
ScrollbarGrabTransparency = 0,
TitleBgTransparency = 0,
TitleBgActive... | 840 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/theme/presets/button/highlighted.luau | luau | .luau | local types = require("../../types")
local buttonHighlighted: types.PartialConfig = {
ButtonTransparency = 0.75,
ButtonHoveredTransparency = 0.75,
ButtonActiveTransparency = 0.825,
}
return buttonHighlighted
| 52 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/theme/presets/button/selected.luau | luau | .luau | local types = require("../../types")
local buttonSelected: types.PartialConfig = {
ButtonTransparency = 0.5,
ButtonHoveredTransparency = 0.5,
ButtonActiveTransparency = 0.75,
}
return buttonSelected
| 52 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/theme/presets/button/unhighlighted.luau | luau | .luau | local types = require("../../types")
local buttonUnhighlighted: types.PartialConfig = {
ButtonTransparency = 1,
ButtonHoveredTransparency = 0.75,
ButtonActiveTransparency = 0.825,
}
return buttonUnhighlighted
| 54 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/theme/themes/iris.luau | luau | .luau | local types = require("../types")
local iris = {} :: types.Theme
iris.name = "Iris"
iris.colors = {
TextColor = Color3.fromRGB(255, 255, 255),
TextDisabledColor = Color3.fromRGB(128, 128, 128),
BorderColor = Color3.fromRGB(110, 110, 125),
BorderActiveColor = Color3.fromRGB(160, 160, 175),
WindowBgColor = Color... | 837 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/theme/types.luau | luau | .luau | -- selene: allow(unused_variable)
local Iris = require("@pkgs/Iris")
local typeforge = require("@include/typeforge")
export type Config = typeof(Iris._config)
export type PartialConfig = typeforge.Partial<Config>
export type Theme = {
name: string,
colors: PartialConfig,
}
export type StudioTheme = {
dark: Theme,... | 86 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/types.luau | luau | .luau | local Boba = require("@include/boba")
local Iris = require("@src/Iris")
local AuthorUser = Boba.Struct {
type = Boba.Literal("user").inner :: "user",
id = Boba.Number.inner,
}:Nickname("AuthorUser")
local AuthorCustom = Boba.Struct {
type = Boba.Literal("custom").inner :: "custom",
image = Boba.String.inner,
nam... | 757 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/utils/arrays.luau | luau | .luau | local function map<I, O>(array: { I }, mapper: (I) -> O): { O }
local result = {}
for i, value in array do
result[i] = mapper(value)
end
return result
end
local function filter<T>(array: { T }, predicate: (T) -> boolean): { T }
local result = {}
for _, value in array do
if predicate(value) then
table.inse... | 261 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/utils/atoms.luau | luau | .luau | local Charm = require("@pkgs/Charm")
local pluginTrove = require("@src/pluginTrove")
local function set<K, V>(atom: Charm.Atom<{ [K]: V }>, key: K, value: V)
local new = table.clone(atom())
new[key] = value
atom(new)
end
local function push<T>(atom: Charm.Atom<{ T }>, value: T)
local new = table.clone(atom())
ta... | 271 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/utils/errors.luau | luau | .luau | local Boba = require("@include/boba")
local Error = Boba.Struct {
raw = Boba.String.inner,
message = Boba.String.inner,
trace = Boba.String.inner,
}
export type Error = typeof(Error.inner)
local function parseError(err: string): Error
return {
raw = err,
message = err:gsub("^.+:%d+:%s*", ""),
trace = debug... | 110 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/utils/ids.luau | luau | .luau | local Players = game:GetService("Players")
local THUMBNAIL_NAMES: { [EnumItem]: string } = {
[Enum.ThumbnailType.HeadShot] = "AvatarHeadShot",
[Enum.ThumbnailType.AvatarThumbnail] = "Avatar",
[Enum.ThumbnailType.AvatarBust] = "AvatarBust",
[Enum.ThumbnailSize.Size48x48] = "48",
[Enum.ThumbnailSize.Size60x60] = "6... | 360 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/utils/noop.luau | luau | .luau | -- selene: allow(unused_variable)
local function noop(...: any) end
return noop
| 21 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/init.luau | luau | .luau | local ButtonGroup = require("@self/interactions/ButtonGroup")
local InstantInputText = require("@self/interactions/InstantInputText")
local Frame = require("@self/layouts/Frame")
local List = require("@self/layouts/List")
local ScrollingFrame = require("@self/layouts/ScrollingFrame")
local AspectRatio = require("@sel... | 299 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/interactions/ButtonGroup.luau | luau | .luau | local Iris = require("@src/Iris")
local Internal = Iris.Internal
local widgets = Internal._utility
export type ButtonGroupProps = {
size: UDim2,
}
Internal.WidgetConstructor(
"ButtonGroup",
{
hasState = false,
hasChildren = true,
Args = {
size = 1,
},
Events = {
clicked = widgets.EVENTS.click(funct... | 603 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/interactions/InstantInputText.luau | luau | .luau | local Iris = require("@src/Iris")
export type InstantInputTextProps = {
label: string?,
hint: string?,
captureFocus: boolean?,
width: UDim?,
}
local function InstantInputText(
props: InstantInputTextProps,
initialState: { text: any }?
): (string, typeof(Iris.InputText(nil :: any)), TextBox)
local hasStyles = p... | 190 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/layouts/Frame.luau | luau | .luau | -- https://discord.com/channels/385151591524597761/1097898141396766771/1455680322279571516
local Iris = require("@src/Iris")
local Internal = Iris.Internal
local widgets = Internal._utility
export type FrameProps = {
size: UDim2,
automaticSize: Enum.AutomaticSize,
verticalAlignment: Enum.VerticalAlignment?,
horiz... | 478 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/layouts/List.luau | luau | .luau | -- TODO: virtual lists
-- TODO: pagination
-- FIXME: this leaks
local ButtonGroup = require("../interactions/ButtonGroup")
local Flex = require("../styles/Flex")
local Iris = require("@src/Iris")
local Padding = require("../styles/Padding")
local ScrollingFrame = require("./ScrollingFrame")
local fzy = require("@inclu... | 1,474 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/layouts/ScrollingFrame.luau | luau | .luau | -- https://discord.com/channels/385151591524597761/1097898141396766771/1455680322279571516
local Iris = require("@src/Iris")
local Internal = Iris.Internal
local widgets = Internal._utility
export type ScrollingFrameProps = {
size: UDim2,
automaticSize: Enum.AutomaticSize,
verticalAlignment: Enum.VerticalAlignment... | 705 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/styles/AspectRatio.luau | luau | .luau | local Iris = require("@src/Iris")
local function AspectRatio(ratio: number?, type: Enum.AspectType?)
local instance = Instance.new("UIAspectRatioConstraint")
instance.Name = "AspectRatio"
instance.AspectRatio = ratio or 1
instance.AspectType = type or Enum.AspectType.FitWithinMaxSize
Iris.Append(instance)
end
re... | 79 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/styles/Flex.luau | luau | .luau | local Iris = require("@src/Iris")
local function Flex(mode: Enum.UIFlexMode?)
local instance = Instance.new("UIFlexItem")
instance.Name = "Flex"
instance.FlexMode = mode or Enum.UIFlexMode.None
Iris.Append(instance)
end
return Flex
| 58 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/styles/FlexSpacer.luau | luau | .luau | local Flex = require("./Flex")
local Iris = require("@src/Iris")
local function FlexSpacer(mode: Enum.UIFlexMode?)
Iris.Group()
Flex(mode)
Iris.End()
end
return FlexSpacer
| 45 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/styles/Padding.luau | luau | .luau | local Iris = require("@src/Iris")
export type PaddingProps = {
x: UDim?,
y: UDim?,
top: UDim?,
bottom: UDim?,
left: UDim?,
right: UDim?,
all: UDim?,
}
local ZERO_UDIM = UDim.new()
local function Padding(props: PaddingProps)
local instance = Instance.new("UIPadding")
instance.Name = "Padding"
instance.Padd... | 162 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/styles/Spacer.luau | luau | .luau | local Iris = require("@src/Iris")
local function Spacer(spacing: Vector2 | number | nil)
Iris.Image({
"rbxassetid://-1",
UDim2.fromOffset(
(if typeof(spacing) == "Vector2" then spacing.X else spacing) or 8,
(if typeof(spacing) == "Vector2" then spacing.Y else spacing) or 8
),
})
end
return Spacer
| 99 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/typography/Header.luau | luau | .luau | local Iris = require("@src/Iris")
export type HeaderProps = {
text: string,
level: number?,
}
local function Header(props: HeaderProps)
local minSize = Iris._config.TextSize
local decrementSize = ((props.level or 1) - 1) * 2
local maxSize = minSize * 3
Iris.PushConfig({
TextSize = math.max(maxSize - decremen... | 126 |
welcomestohell/rocket | welcomestohell-rocket-8775da5/src/widgets/typography/Subtext.luau | luau | .luau | local Iris = require("@src/Iris")
local function Subtext(props: { string })
Iris.PushConfig({ TextTransparency = 0.5 })
Iris.Text({ table.concat(props, " ") })
Iris.PopConfig()
end
return Subtext
| 54 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/.lune/build.luau | luau | .luau | local process = require("@lune/process")
local fs = require("@lune/fs")
local task = require("@lune/task")
local logger = require("./lib/logger").new(4)
local executeCommand = require("./lib/executeCommand")
local didError = false
local function execCommandWrapper(...)
local data = executeCommand(...)
if data.std... | 430 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/.lune/dev.luau | luau | .luau | local process = require("@lune/process")
local fs = require("@lune/fs")
local task = require("@lune/task")
local logger = require("./lib/logger").new(4)
local fileWatcher = require("./lib/fileWatcher")
local executeCommand = require("./lib/executeCommand")
local function recursiveCopy(src, dest)
local files = fs.rea... | 562 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/.lune/install-packages.luau | luau | .luau | local fs = require("@lune/fs")
local logger = require("./lib/logger").new(4)
local executeCommand = require("./lib/executeCommand")
if fs.isDir("packages") then
fs.removeDir("packages")
end
local status = executeCommand("wally", {
"install",
}, {
stdio = "inherit"
}, true)
if not status.ok then
logger... | 281 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/.lune/lib/executeCommand.luau | luau | .luau | local process = require("@lune/process")
local logger = require("./logger").new(4)
return function(command, args, options, ignoreErrors)
local data = process.spawn(command, args, options or {
stdio = "default",
})
if data.stderr ~= "" and (not ignoreErrors or data.code ~= 0) then
logger:error(`Error occurred ... | 100 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/.lune/lib/fileWatcher.luau | luau | .luau | local fs = require("@lune/fs")
local date = require("@lune/datetime")
local task = require("@lune/task")
type fileMap = {
path: string,
children: { fileMap | string },
}
return function(directory: string, callback: (files: { string }) -> any, onDelete: (files: { string }) -> any)
local lastModified: number = nil :... | 609 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/.lune/lib/logger.luau | luau | .luau | local logger = {}
local terminal = require("./terminal")
local chalk = require("./chalk")
local dateTime = require("@lune/datetime")
local function padToTwo(number: number): string
return number < 10 and `0{number}` or tostring(number)
end
local function generateTimestamp(): string
local time = dateTime.now():toLo... | 494 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/app/init.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local Selection = game:GetService("Selection")
local fusion = require("@packages/fusion")
local Spring = fusion.Spring
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local New = fusion.New
local Out = fusion.Out
local Ref = fusion.Ref
local Clean = ... | 4,500 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/app/newInstanceModal.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local New = fusion.New
local Clean = fusion.cleanup
local Computed = fusion.Computed
local ForPairs = fusion.ForPairs
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local text = fusionComponents.base... | 1,433 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/app/settings/init.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local New = fusion.New
local Clean = fusion.cleanup
local Computed = fusion.Computed
local ForPairs = fusion.ForPairs
local Observer = fusion.Observer
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
l... | 1,887 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/app/settings/settings.luau | luau | .luau | local fusion = require("@packages/fusion")
local Cleanup = fusion.Cleanup
local Computed = fusion.Computed
local Observer = fusion.Observer
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local checkbox = fusionComponents.common.checkbox
local input = fusionComponents.common.... | 1,271 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/app/settings/settingsListOption.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local New = fusion.New
local theme = require("@src/theme")
local fusionComponents = require("@packages/fusionComponents")
local text = fusionComponents.base.text
type props = {
Title: string,
Description: string?,
Content: fusion.CanBeSta... | 709 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/appTopbar.luau | luau | .luau | local Selection = game:GetService("Selection")
local fusion = require("@packages/fusion")
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local Hydrate = fusion.Hydrate
local New = fusion.New
local Clean = fusion.cleanup
local Computed = fusion.Computed
local ForPairs = fusion.ForPairs
local Observer ... | 1,278 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/appTopbarItem.luau | luau | .luau | local fusion = require("@packages/fusion")
local Spring = fusion.Spring
local Tween = fusion.Tween
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local New = fusion.New
local Event = fusion.OnEvent
local Computed = fusion.Computed
local Value = fusion.Value
local fusionComponents = require("@package... | 1,667 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/instanceTreeRoot.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local Hydrate = fusion.Hydrate
local New = fusion.New
local Clean = fusion.cleanup
local Computed = fusion.Computed
local Value = fusion.Value
local fusionUtils = require("@packages/fusionUtils")
local propertyP... | 2,592 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/listOption.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local New = fusion.New
local theme = require("@src/theme")
local fusionComponents = require("@packages/fusionComponents")
local text = fusionComponents.base.text
type props = {
Size: fusion.CanBeState<UDim2>,
Position: fusion.CanBeState<UD... | 422 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/modalOptionWrapper.luau | luau | .luau | local fusion = require("@packages/fusion")
local New = fusion.New
local theme = require("@src/theme")
local fusionComponents = require("@packages/fusionComponents")
local text = fusionComponents.base.text
type props = {
OptionName: string,
Content: fusion.CanBeState<{ GuiObject }>,
}
local function modalOptionWra... | 403 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/checkbox.luau | luau | .luau | local fusion = require("@packages/fusion")
local fusionComponents = require("@packages/fusionComponents")
local checkbox = fusionComponents.common.checkbox
type props = {
Value: fusion.Value<boolean>,
LayoutOrder: number,
}
local function checkboxPropertyField(props: props)
return checkbox({
Color = "blue",
A... | 160 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/colorSequence/editor.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local fusion = require("@packages/fusion")
local Spring = fusion.Spring
local Tween = fusion.Tween
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local New = fusion.New
local Event = fusion.OnEvent
local Ref = fusion.Ref
local Clean = fusion.cleanup... | 4,772 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/colorSequence/init.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local fusion = require("@packages/fusion")
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local New = fusion.New
local Clean = fusion.cleanup
local Computed = fusion.Computed
local Value = fusion.Value
local fusionComponents = require("@packages/fus... | 632 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/dropdown.luau | luau | .luau | local fusion = require("@packages/fusion")
local Cleanup = fusion.Cleanup
local Computed = fusion.Computed
local Observer = fusion.Observer
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local selectMenu = fusionComponents.common.selectMenu
local tailwind = require("@packag... | 702 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/enumDropdown.luau | luau | .luau | local fusion = require("@packages/fusion")
local Cleanup = fusion.Cleanup
local Computed = fusion.Computed
local Observer = fusion.Observer
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local selectMenu = fusionComponents.common.selectMenu
local tailwind = require("@packag... | 467 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/input.luau | luau | .luau | local fusion = require("@packages/fusion")
local Cleanup = fusion.Cleanup
local Computed = fusion.Computed
local Observer = fusion.Observer
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local input = fusionComponents.common.input
local tailwind = require("@packages/tailwin... | 329 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/easingModes/back.luau | luau | .luau | return {
In = function(a, b, t)
local s = 1.70158
return a + (b - a) * t * t * ((s + 1) * t - s)
end,
Out = function(a, b, t)
local s = 1.70158
t = t - 1
return a + (b - a) * (t * t * ((s + 1) * t + s) + 1)
end,
InOut = function(a, b, t)
local s = 1.70158 * 1.525
t = t * 2
if t < 1 then
return a... | 232 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/easingModes/bezier.luau | luau | .luau | local function getCubicBezier(t: number, p0: Vector2, p1: Vector2, p2: Vector2, p3: Vector2): Vector2
return (1 - t) ^ 3 * p0 + 3 * (1 - t) ^ 2 * t * p1 + 3 * (1 - t) * t ^ 2 * p2 + t ^ 3 * p3
end
local function fixedBezier(n, t, p0, p1, p2, p3)
local length, ranges, sums = 0, {}, {}
for i = 0, n - 1 do
local st... | 414 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/easingModes/cubic.luau | luau | .luau | return {
In = function(a, b, t)
return a + (b - a) * t * t * t
end,
Out = function(a, b, t)
return a + (b - a) * ((t - 1) * (t - 1) * (t - 1) + 1)
end,
InOut = function(a, b, t)
if t < 0.5 then
return a + (b - a) * 4 * t * t * t
else
return a + (b - a) * ((t - 1) * (2 * t - 2) * (2 * t - 2) + 1)
en... | 161 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/easingModes/expo.luau | luau | .luau | return {
In = function(a, b, t)
return a + (b - a) * 2 ^ (10 * (t - 1))
end,
Out = function(a, b, t)
return a + (b - a) * (1 - 2 ^ (-10 * t))
end,
InOut = function(a, b, t)
if t < 0.5 then
return a + (b - a) * 0.5 * 2 ^ (20 * t - 10)
else
return a + (b - a) * (1 - 0.5 * 2 ^ (-20 * t + 10))
end
end... | 152 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/easingModes/init.luau | luau | .luau | return {
back = require(script.back),
bezier = require(script.bezier),
cubic = require(script.cubic),
expo = require(script.expo),
linear = require(script.linear),
quad = require(script.quad),
sine = require(script.sine),
}
| 56 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/easingModes/linear.luau | luau | .luau | return {
In = function(a, b, t)
return a + (b - a) * t
end,
Out = function(a, b, t)
return a + (b - a) * t
end,
InOut = function(a, b, t)
return a + (b - a) * t
end,
}
| 74 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/easingModes/quad.luau | luau | .luau | return {
In = function(a, b, t)
return a + (b - a) * t * t
end,
Out = function(a, b, t)
return a + (b - a) * t * (2 - t)
end,
InOut = function(a, b, t)
if t < 0.5 then
return a + (b - a) * 2 * t * t
else
return a + (b - a) * (1 - 2 * (1 - t) * (1 - t))
end
end,
}
| 129 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/easingModes/sine.luau | luau | .luau | return {
In = function(a, b, t)
return a + (b - a) * (1 - math.cos(t * math.pi / 2))
end,
Out = function(a, b, t)
return a + (b - a) * math.sin(t * math.pi / 2)
end,
InOut = function(a, b, t)
return a + (b - a) * (1 - math.cos(t * math.pi)) / 2
end,
}
| 105 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/graph/init.luau | luau | .luau | local fusion = require("@packages/fusion")
local Computed = fusion.Computed
local fusionUtils = require("@packages/fusionUtils")
local use = fusionUtils.use
local viewport2D = require("@components/viewport2D")
local cube = script.assets.Cube
local node = script.assets.Node
local cap = script.assets.Cap
type graphK... | 2,310 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/grid.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local New = fusion.New
local Computed = fusion.Computed
local fusionUtils = require("@packages/fusionUtils")
local use = fusionUtils.use
type props = {
color: fusion.CanBeState<Color3>,
spacingX: fusion.CanBeState<number>,
spacingY: fusio... | 354 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/handle.luau | luau | .luau | local fusion = require("@packages/fusion")
local viewport2D = require("@components/viewport2D")
type props = {
HandlePosition: Vector2,
PointPosition: Vector2,
Color: Color3,
}
-- This component only *renders* the bezier handles. The actual handle functionality is in editor.lua
local function bezierHandle(props: ... | 401 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/numberSequence/init.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local fusion = require("@packages/fusion")
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local New = fusion.New
local Clean = fusion.cleanup
local Computed = fusion.Computed
local Observer = fusion.Observer
local Value = fusion.Value
local fusionCo... | 1,196 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/object.luau | luau | .luau | local fusion = require("@packages/fusion")
local Cleanup = fusion.Cleanup
local New = fusion.New
local Computed = fusion.Computed
local Observer = fusion.Observer
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local button = fusionComponents.common.button
local imageLabel = ... | 1,043 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/range.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local New = fusion.New
local Computed = fusion.Computed
local Observer = fusion.Observer
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local range = fusionComponents.c... | 1,044 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/slider.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local New = fusion.New
local Computed = fusion.Computed
local Observer = fusion.Observer
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local slider = fusionComponents.... | 950 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/editor.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local fusion = require("@packages/fusion")
local Spring = fusion.Spring
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local New = fusion.New
local Out = fusion.Out
local Clean = fusion.cleanup
local Computed = fusion.Computed
local Observer = fusio... | 8,420 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/getImageResolution.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local cachedImages = {}
-- Function to get the width and height from a PNG buffer
local function getPngDimensions(pngBuffer)
local header = pngBuffer:sub(1, 8)
if header == "\137PNG\r\n\26\n" then
local width = pngBuffer:byte(17) * 256 ^ 3
+ pngBuffer:byte(18)... | 406 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/init.luau | luau | .luau | local HttpService = game:GetService("HttpService")
local fusion = require("@packages/fusion")
local Children = fusion.Children
local Cleanup = fusion.Cleanup
local Computed = fusion.Computed
local DoNothing = fusion.doNothing
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
l... | 913 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/modals/confirmDelete.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local New = fusion.New
local fusionComponents = require("@packages/fusionComponents")
local text = fusionComponents.base.text
local button = fusionComponents.common.button
local theme = require("@src/theme")
local function concatMultilineStr... | 860 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/modals/copyContent.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local New = fusion.New
local Cleanup = fusion.Cleanup
local fusionComponents = require("@packages/fusionComponents")
local text = fusionComponents.base.text
local input = fusionComponents.common.input
local button = fusionComponents.common.but... | 844 |
VirtualButFake/vfx-editor | VirtualButFake-vfx-editor-faa908b/src/components/propertyFields/texturePicker/modals/createFolder.luau | luau | .luau | local fusion = require("@packages/fusion")
local Children = fusion.Children
local New = fusion.New
local Computed = fusion.Computed
local Value = fusion.Value
local fusionComponents = require("@packages/fusionComponents")
local text = fusionComponents.base.text
local button = fusionComponents.common.button
local the... | 716 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.