repo stringclasses 254
values | file_path stringlengths 29 241 | code stringlengths 100 233k | tokens int64 14 69.4k |
|---|---|---|---|
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/PackageLinks/default/Fusion.luau | local Fusion = require(script.Parent.Parent.Parent.Parent["elttob_fusion@0.3.0"]["fusion"])
type Fusion = typeof(Fusion)
export type Animatable = Fusion.Animatable
export type UsedAs<T> = Fusion.UsedAs<T>
export type Child = Fusion.Child
export type Computed<T> = Fusion.Computed<T>
export type Contextual<T> = Fusion.C... | 232 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Accordion.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local CoreComponents = Components.Core
local Squircle = require(CoreComponents.Squircle)
local TextLabel = require(CoreComponents.TextLabel)
local Arrow = require(CoreComp... | 1,569 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Background.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 125 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Button.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 1,178 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Checkbox.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local CoreComponents = Components.Core
local Squircle = require(CoreComponents.Squircle)
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Co... | 787 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Container.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local CoreComponents = Components.Core
local Squircle = require(CoreComponents.Squircle)
local TextLabel = require(CoreComponents.TextLabel)
local Arrow = require(CoreComp... | 2,291 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/Arrow.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 629 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/CodeLabel.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent
local TextLabel = require(CoreComponents.TextLabel)
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
local Packages =... | 224 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/FocusVisual.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
local GuiService = game:GetService("GuiService")
-------------------------------------------------------------------------------------------------------
--> Modules -------------------------------------... | 535 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/Squircle.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 278 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Core/TextLabel.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
local ComputeTransforms = require(Modules.ComputeTransforms)
local TableUtils = require(Modules.TableUtils)... | 594 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/EmbeddedContainer.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent.Core
local Squircle = require(CoreComponents.Squircle)
local Modules = script.Parent.Parent.Modules
local Component = require( Modules.Component)
local CombineProps =... | 678 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/ImageBackground.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Component)
local CombineProps = require(Modules.CombineProps)
local TableUtils = require(Modules.TableUtils)
local Packages ... | 483 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Map.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local Container = require(Components.Container)
local TextInput = require(Components.TextInput)
local CoreComponents = Components.Core
local TextLabel = require(CoreCompo... | 2,823 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Navigation.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Components = script.Parent
local CoreComponents = Components.Core
local Squircle = require(CoreComponents.Squircle)
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Co... | 2,072 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Padding/PaddingLarge.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
-------------------------------------------------------------------------------------------------------
r... | 97 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Padding/PaddingSmall.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Parent.Modules
local Component = require(Modules.Component)
-------------------------------------------------------------------------------------------------------
r... | 97 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Progress.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local CoreComponents = script.Parent.Core
local Squircle = require(CoreComponents.Squircle)
local TextLabel = require(CoreComponents.TextLabel)
local Modules = script.Parent.Parent.Modules
local Componen... | 1,306 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Scrollable.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Component)
local CombineProps = require(Modules.CombineProps)
local ForceToState = require(Modules.ForceToState)
local TableU... | 1,101 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Slider.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 1,652 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Switch.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent.Modules
local Component = require(Modules.Component)
local ComputeTransforms = require(Modules.ComputeTransforms)
local ForceToState = require(Modules.ForceToState)
lo... | 1,265 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Tabs.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 1,585 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/TextInput.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
local GuiService = game:GetService("GuiService")
local UserInputService = game:GetService("UserInputService")
----------------------------------------------------------------------------------------------... | 3,244 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Components/Widget.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
local StarterGui = game:GetService("StarterGui")
-------------------------------------------------------------------------------------------------------
--> Modules -------------------------------------... | 741 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/LICENSE.luau | --[[
MIT License
Copyright (c) 2024 Cameron Campbell
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | 222 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/CombineProps.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Packages = script.Parent.Parent.Packages
local Fusion = require(Packages.Fusion)
-------------------------------------------------------------------------------------------------------
--> Variabl... | 231 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/Component/Component.Types.luau | --> Modules -------------------------------------------------------------------------------------------
local Modules = script.Parent.Parent
local RootEventHandlersUtils = require(Modules.RootEventHandlersUtils)
local ThemeHandler = require(Modules.ThemeHandler)
local Packages = script.Parent.Parent.Parent.Packages
lo... | 130 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/Component/init.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local ComponentTypes = require(script["Component.Types"])
local Modules = script.Parent
local CombineProps = require(Modules.CombineProps)
local Packages = script.Parent.Parent.Packages
local Fusion = r... | 159 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ComputeMath.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 735 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ComputeTransforms.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 573 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ForceToState.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Packages = script.Parent.Parent.Packages
local Fusion = require(Packages.Fusion)
-------------------------------------------------------------------------------------------------------
return func... | 94 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/RootEventHandlersUtils.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 877 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/TableUtils.luau | return {
CountKeys = function(tble: { [any]: any }): number
local length = 0
for _ in tble do length += 1 end
return length
end,
HasItems = function(tble: { [any]: any }): boolean
for _ in tble do return true end
return false
end,
Take = function<K, V>(tble: { [K]: V }, keyOrIndex: K, default: V?)
lo... | 247 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ThemeHandler/DefaultThemes.luau | --> Modules -------------------------------------------------------------------------------------------
local Types = require(script.Parent["ThemeHandler.Types"])
-------------------------------------------------------------------------------------------------------
--> Types -----------------------------------------... | 209 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ThemeHandler/ThemeHandler.Types.luau | export type ThemeConfig = {
Background: {
Primary: Color3,
Secondary: Color3,
Tertiary: Color3,
Stroke: Color3
},
Text: {
Title: Color3,
Body: Color3
},
Accent: {
Primary: Color3,
Secondary: Color3,
Destructive: Color3
}
}
export type ThemeFlatConfig = {
["Background... | 255 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ThemeHandler/init.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Types = require(script["ThemeHandler.Types"])
local DefaultThemes = require(script.DefaultThemes)
local Packages = script.Parent.Parent.Packages
local Fusion = require(Packages.Fusion)
------------... | 871 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/ThemeHandlerOld.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 980 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/Modules/TrackProperty.luau | --!strict
--> Modules -------------------------------------------------------------------------------------------
local Packages = script.Parent.Parent.Packages
local Fusion = require(Packages.Fusion)
-------------------------------------------------------------------------------------------------------
--> Variabl... | 357 |
cameronpcampbell/Ignite | cameronpcampbell-Ignite-61cf3cc/src/init.luau | --!strict
--> Services ------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--> Modules --------------------------------------------------------------------------------------... | 365 |
creepersaur/quark | creepersaur-quark-11c17e0/handler/events.luau | export type ALL_EVENTS =
"WriteActivityHistoryEventFromStudio"
| "AnimationPlayed"
| "Stopped"
| "DidLoop"
| "Ended"
| "KeyframeReached"
| "UserGuiRenderingChanged"
| "TopbarTransparencyChangedSignal"
| "CoreGuiChangedSignal"
| "OnClientEvent"
| "OnServerEvent"
| "Event"
| "ActionActivatedSignal"
| "FindV... | 799 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Button_ToolTip.story/ToolTip.luau | -- elements created by functions can take parameters
-- Visible is a state that that tells the tooltip to show
return function(Scope, tool_text: string?, Hovering)
local New = Scope.New
local Spring = Scope.Animations.Spring
local text = tool_text or "ToolTip"
local Visible = Scope.State(function(use)
if use(Hov... | 377 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Button_ToolTip.story/init.luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Button = require(script.Button)
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
-- The Story
return function(Parent)
local ButtonData: { [string]: string } = {
["Continue"] = "Continue the game",
["New Game"] = "Start... | 418 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Computed.story.luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local State = Quark.State
local Hook = Quark.Hook
return function(parent)
local Counter = State(0)
-- Tip text
New "TextLabel" {
Text = "Click the buttons. These update autom... | 426 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Entries.story.luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local Entries = Quark.Entries
local Hook = Quark.Hook
return function(parent: Instance)
local E = Entries(10, function(Scope, i: number)
return Scope.New "TextLabel" {
Positi... | 246 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Notepad.story/NewNote.luau | return function(Scope)
local New = Scope.New
local Main = New "Frame" {
Size = UDim2.new(1, 0, 0, 30),
BackgroundTransparency = 1
}
local Button = New "TextButton" {
Text = "New Note",
BackgroundTransparency = 0.9,
TextColor3 = Color3.new(1,1,1),
Size = UDim... | 124 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Notepad.story/Note.luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Quark = require(ReplicatedStorage.Shared.Quark)
return function(Scope: Quark.Scope, text: string?)
local New = Scope.New
local Spring = Scope.Animations.Spring
local Hook = Scope.Hook
local Main = New "Frame" {
Size = UDim2.new(1, -10, 0, 50),... | 567 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Notepad.story/NoteHolder.luau | local Note = require(script.Parent.Note)
return function(Scope)
local New = Scope.New
local Main = New "Frame" {
Size = UDim2.fromScale(1, 1),
BackgroundColor3 = Color3.new(),
BackgroundTransparency = 0.85,
BorderSizePixel = 0,
children = {
New "UIListLayout" {... | 173 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Notepad.story/init.luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local NewNote = require(script.NewNote)
local NoteHolder = require(script.NoteHolder)
-- Slightly more advanced, I suggest you look into `Button_ToolTip.story` first.
local contr... | 488 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/PropertyState.story.luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local Hook = Quark.Hook
return function(parent: Instance)
-- This state controls text.
-- Text will auto-update when set to this state.
local Hovering = Quark.State "Hover over ... | 426 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/Spring.story.luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local Spring = Quark.Animations.Spring
local New = Quark.New
local State = Quark.State
local Hook = Quark.Hook
-- Spring settings can be States
local SpringSettings = {
Elasticity = State(0.1),
Stiffn... | 541 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/_.story.luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
return Quark.CreateStory(function()
local baseSCOPE = Quark.Scope()
local ScopeA = baseSCOPE.Scope()
local ScopeB = baseSCOPE.Scope()
print(Quark._CreatedScopes)
return New... | 189 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/style.story.luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
Quark.StyleSheet "Hello" {
TextLabel = {
BackgroundColor3 = Color3.new(0.2, 0.5, 1),
Text = "Instance: TextLabel",
},
[Quark.Class "BIG"] = {
TextSize = 30,
BackgroundCo... | 500 |
creepersaur/quark | creepersaur-quark-11c17e0/src/examples/Stories/tween.story.luau | local ReplicatedStorage = game:GetService "ReplicatedStorage"
local TweenService = game:GetService "TweenService"
local Quark = require(ReplicatedStorage.Shared.Quark)
local New = Quark.New
local Hook = Quark.Hook
return function(parent)
local START = UDim2.fromOffset(0, 50)
local TARGET = UDim2.new(0.15, 0, 0, 50)... | 483 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Animations/Loop.luau | local RunService = game:GetService("RunService")
local Types = require(script.Parent.Parent.Types)
return function()
local Reactive = require(script.Parent.Parent.Reactive)()
local LoopModule = {
Created = {},
}
local Loop = {}
Loop.__index = Loop
function LoopModule.new(): Types.Loop
local self = setmet... | 460 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Animations/Spring.luau | local RunService = game:GetService("RunService")
local Types = require(script.Parent.Parent.Types)
local ValueMath = require(script.Parent.ValueMath)
return function()
local Reactive = require(script.Parent.Parent.Reactive)()
local SpringModule = {
Created = {},
}
local Spring = {}
Spring.__index = Spring
... | 950 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Animations/Tween.luau | local RunService = game:GetService("RunService")
local Types = require(script.Parent.Parent.Types)
local ValueMath = require(script.Parent.ValueMath)
return function()
local Reactive = require(script.Parent.Parent.Reactive)()
local TweenModule = {
Created = {},
}
local Tween = {}
Tween.__index = Tween
func... | 1,987 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Animations/ValueMath.luau | local function lerp(start, finish, alpha: number, clamp: boolean?)
-- Clamp alpha between 0 and 1
if clamp then
alpha = math.clamp(alpha, 0, 1)
end
-- Handle different data types
local startType = typeof(start)
local finishType = typeof(finish)
-- Check if types match
if startType ~= finishType then
error... | 1,687 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Animations/init.luau | return function()
local Animations = {
_Created = {},
}
local ValueMath = require(script.ValueMath)
Animations.ValueMath = ValueMath
local Spring = require(script.Spring)()
Spring.Created = Animations._Created
Animations.Spring = Spring.new
local Tween = require(script.Tween)()
Tween.Created = Animations.... | 112 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Components/Cleanup.luau | return function()
local Created = {}
local Scopes = {}
local CleanupQueued = {
PostCleanup = {},
PreCleanup = {},
}
-- Cleans up the current Quark scope
local function Cleanup()
for _, v in CleanupQueued.PreCleanup do
task.spawn(v)
end
for _, list in Created do
for _, v in list do
if typeof(... | 407 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Components/CreateStory.luau | return function()
local Types = require(script.Parent.Parent.Types)
local module = {
Quark = nil,
}
-- takes in a function which returns an Instance (or state)
-- returns a function that returns a Cleanup function
function module.CreateStory(
StoryFunc: (Target: Instance) -> Instance | Types.New<any> | { Ins... | 222 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Components/New.luau | return function()
local all_events = require(script.Parent.Parent.Misc.all_events)
local custom_properties = require(script.Parent.Parent.Misc.custom_properties)
local State = require(script.Parent.Parent.Reactive.State)()
local Types = require(script.Parent.Parent.Types)
local all_instances = require(script.Paren... | 1,733 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Components/Scope.luau | local Scope = {}
function Scope.new(created)
local base = require(script.Parent.Parent.QuarkBase)()
base.Scope = function()
return Scope.new(base)
end
table.insert(created, base)
return base
end
return Scope | 48 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Misc/custom_properties.luau | export type CUSTOM_PROPERTIES = {
children: { any } | any,
class: string,
style: { any },
}
export type StyleProperties = {
[string]: {
corner: UDim | number?,
corner_radius: UDim | number?,
aspect_ratio: number?,
aspect: number?,
stroke: {
Thickness: number?,
Color: Color3?,
ApplyStrokeMode: E... | 200 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Misc/default_properties.luau | return {
["TextLabel"] = {
Size = UDim2.fromOffset(200, 50),
BackgroundColor3 = Color3.new(1, 1, 1),
BorderSizePixel = 0,
},
["TextBox"] = {
Size = UDim2.fromOffset(200, 50),
BackgroundColor3 = Color3.new(1, 1, 1),
BorderSizePixel = 0,
},
["TextButton"] = {
Size = UDim2.fromOffset(200, 50),
Backgro... | 441 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/QuarkBase.luau | function new()
local Quark = {
_CreatedScopes = {},
Scope = function(): Scope
return nil::any
end
}
--[[ REACTIVE ]]
local Reactive = require(script.Parent.Reactive)()
Reactive.Quark = Quark
Quark.State = Reactive.State
Quark.Signal = Reactive.Signal
Quark.Entries = Reactive.Entries
--[[ NEW ]]
lo... | 405 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Reactive/Entries.luau | local quicklist = require(script.Parent.Parent.quicklist)
local Types = require(script.Parent.Parent.Types)
return function()
local Entries: any = {
Created = {},
}
function Entries.new(n, func)
local Quark = Entries.Reactive.Quark
local Children = quicklist()
local entry = {
Scope = Quark.Scope(),
C... | 725 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Reactive/Signal.luau | local Types = require(script.Parent.Parent.Types)
return function()
local module = {
Created = {},
}
local Signal = {}
Signal.__index = Signal
function Signal:Disconnect()
if self.state_object[1] then
for _, state in self.state_object do
if state.connections[self.id] then
state.connections[self.... | 262 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Reactive/State.luau | local Types = require(script.Parent.Parent.Types)
return function()
local Signal = require(script.Parent.Signal)()
local module = {
Created = {},
}
local function HandleComputedState(default, self)
if type(default) == "function" then
coroutine.wrap(function()
self.value = default(function(dependency: T... | 490 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Reactive/init.luau | return function()
local State = require(script.State)()
local Signal = require(script.Signal)()
local Entries = require(script.Entries)()
local Reactive = {
Created = {},
}
State.Created = Reactive.Created
Signal.Created = Reactive.Created
Entries.Created = Reactive.Created
Entries.Reactive = Reactive
Rea... | 97 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Styles/StyleSheet.luau | local all_properties = require(script.Parent.Parent.Misc.all_properties)
local custom_properties = require(script.Parent.Parent.Misc.custom_properties)
local Types = require(script.Parent.Parent.Types)
return function()
local module = {
Created = {},
_class_id = "__class__",
}
function module.Class(name: strin... | 1,121 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Styles/init.luau | return function()
local StyleSheet = require(script.StyleSheet)()
local Styles = {
Created = {},
}
Styles.StyleSheet = StyleSheet
Styles.Created = StyleSheet.Created
return Styles
end
| 41 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/Types.luau | local all_properties = require(script.Parent.Misc.all_properties)
local all_events = require(script.Parent.Misc.all_events)
local all_instances = require(script.Parent.Misc.all_instances)
local custom_properties = require(script.Parent.Misc.custom_properties)
local quicklist = require(script.Parent.quicklist)
type Stat... | 1,855 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/init.luau | local QuarkBase = require(script.QuarkBase)
local Quark = QuarkBase()
local Scope = require(script.Components.Scope)
Quark.Scope = function()
return Scope.new(Quark._CreatedScopes)
end
return (Quark :: any) :: QuarkBase.Quark | 59 |
creepersaur/quark | creepersaur-quark-11c17e0/src/shared/Quark/quicklist.luau | ql = {}
export type QuickList<T> = {
t: { [number]: T },
copy: () -> QuickList<T>,
deep_copy: () -> QuickList<T>,
insert: (pos: number?, value: T) -> QuickList<T>,
append: (...T) -> QuickList<T>,
append_table: (_table: { [T]: T }) -> QuickList<T>,
join: (sep: string?) -> string,
split: (index: number?) -> Quic... | 4,313 |
Pyseph/ObjectCache | Pyseph-ObjectCache-5775fc7/src/init.luau | --!strict
--!native
local FAR_AWAY_CFRAME = CFrame.new(2^24, 2^24, 2^24)
local EXPAND_BY_AMOUNT = 50
local MovingParts = table.create(10_000)
local MovingCFrames = table.create(10_000)
local ScheduledUpdate = false
local function UpdateMovement()
while true do
workspace:BulkMoveTo(MovingParts, MovingCFrames, Enum.... | 1,384 |
TheNexusAvenger/Nexus-VR-Core | TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/BaseScreenGui.luau | --Base ScreenGui instance.
--!strict
local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance"))
local BaseScreenGui = {}
BaseScreenGui.ClassName = "BaseScreenGui"
BaseScreenGui.__index = BaseScreenGui
export type BaseScreenGui<T> = {
Container: T,
RotationOffse... | 781 |
TheNexusAvenger/Nexus-VR-Core | TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui.luau | --Contains user interface components.
--!strict
local UserInputService = game:GetService("UserInputService")
local BaseScreenGui = require(script.Parent:WaitForChild("BaseScreenGui"))
local ScreenGui3D = require(script.Parent:WaitForChild("ScreenGui3D"))
local ScreenGui2D = require(script.Parent:WaitForChild("ScreenG... | 139 |
TheNexusAvenger/Nexus-VR-Core | TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui2D.luau | --Implementation of a ScreenGui for 2D players.
--!strict
local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance"))
local BaseScreenGui = require(script.Parent:WaitForChild("BaseScreenGui"))
local ScreenGui2D = {}
ScreenGui2D.ClassName = "ScreenGui2D"
ScreenGui2D.__ind... | 303 |
TheNexusAvenger/Nexus-VR-Core | TheNexusAvenger-Nexus-VR-Core-c547d32/src/Container/ScreenGui3D.luau | --Contains user interface components for a 3D user interface.
--!strict
local Workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local NexusInstance = require(script.Parent.Parent:WaitForChild("Packages"):WaitForChild("NexusInstance"))
local BaseScreenGui = require(script.Parent... | 1,125 |
TheNexusAvenger/Nexus-VR-Core | TheNexusAvenger-Nexus-VR-Core-c547d32/src/Utility/PartUtility.luau | --Utility for parts.
local PartUtility = {}
--[[
Helper function for ray casting.
--]]
function PartUtility.RaycastToFront(AimingCFrame: CFrame, Size: Vector3, FrontCFrame: CFrame): (number, number, number)
FrontCFrame = FrontCFrame * CFrame.new(0, 0, -Size.Z / 2)
--Convert the aiming CFrame to a local CFr... | 1,396 |
TheNexusAvenger/Nexus-VR-Core | TheNexusAvenger-Nexus-VR-Core-c547d32/src/init.luau | --Main module for Nexus VR Core.
--!strict
local BaseScreenGui = require(script:WaitForChild("Container"):WaitForChild("BaseScreenGui"))
local ScreenGui = require(script:WaitForChild("Container"):WaitForChild("ScreenGui"))
local ScreenGui2D = require(script:WaitForChild("Container"):WaitForChild("ScreenGui2D"))
local ... | 379 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/Bootloader/src/init.luau | local STAGES = {
"Created",
"Initialized",
"Started",
"Destroyed",
}
local function NewBootloader(ModuleScripts: { ModuleScript })
local Bootloader = {
Stage = STAGES[1],
Systems = {},
}
function Bootloader:Destroy()
assert(Bootloader.Stage == STAGES[3], `Must be at stage {STAGES[3]}.`)
Bootloader.Stag... | 308 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/CoreThemer/src/init.luau | local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local TextChatService = game:GetService("TextChatService")
local MouseLockController = Players.LocalPlayer.PlayerScripts
:WaitForChild("PlayerModule")
:WaitForChild("CameraModule")
:WaitForChild("MouseLockController")
local... | 1,352 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/EnumSerDes/src/init.luau | export type SerEnumItem = {
EnumType: string,
Value: number,
}
local TableUtil = require(script.Parent.TableUtil)
local EnumSerDes = {}
function EnumSerDes.DeserializeTree(Tree)
local NewTree = TableUtil.Copy(Tree, true)
for Key, Value in pairs(Tree) do
if typeof(Value) == "table" then
if (typeof(Value.Enu... | 393 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/Footstepper/src/DefaultSounds.luau | return {
Brick = {
SoundId = "rbxassetid://16829037315",
Volume = 0.4,
},
Climb = {
SoundId = "rbxassetid://145180175",
Volume = 0.3,
},
Cobblestone = {
SoundId = "rbxassetid://16829037315",
Volume = 0.4,
},
Concrete = {
SoundId = "rbxassetid://16829037315",
Volume = 0.4,
},
CorrodedMetal = {
... | 1,147 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/Footstepper/src/init.luau | local Players = game:GetService("Players")
local DefaultSounds = require(script.DefaultSounds)
local BLACKLISTEED_MATERIALS = { Enum.Material.Air, Enum.Material.Water }
local Footstepper = {
BaseVolume = 5,
}
function Footstepper:UpdateSounds(Sounds: { Sound }, SoundProperties: { [string]: any })
for _, Sound in ... | 846 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/HumanoidDescriber/src/init.luau | local MarketplaceService = game:GetService("MarketplaceService")
local Signal = require(script.Parent.Signal)
local AvatarAssetTypes = require(script.AvatarAssetTypes)
local AssetAccessoryTypes = require(script.AssetAccessoryTypes)
local Future = require(script.Parent.Future)
local TableUtil = require(script.Parent.Ta... | 4,461 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/Instantiate/src/init.luau | local function Instantiate(ClassOrInstance: string | Instance)
local Object: Instance
if typeof(ClassOrInstance) == "string" then
Object = Instance.new(ClassOrInstance)
elseif typeof(ClassOrInstance) == "Instance" then
Object = ClassOrInstance
end
return function(Properties: { [string]: any | (typeof(Object)... | 169 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/Leaderboard/src/init.luau | local Players = game:GetService("Players")
local Instantiate = require(script.Parent.Instantiate)
local TYPE_CLASSES = {
int = "IntValue",
number = "NumberValue",
string = "StringValue",
boolean = "BoolValue",
Instance = "ObjectValue",
BrickColor = "BrickColorValue",
Color3 = "Color3Value",
Vector3 = "Vector3... | 440 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/SessionStore/src/init.luau | local Players = game:GetService("Players")
local Signal = require(script.Parent.Signal)
export type SessionData = { any }
export type MetaData = {
CreationTime: number,
}
export type SessionProfile = {
Data: SessionData,
MetaData: MetaData,
UpdateData: (SessionProfile, SessionData) -> SessionData,
DataUpdated: S... | 387 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/Stator/src/DeepEquals.luau | local function DeepEquals(TableA: { [any]: any }, TableB: { [any]: any })
for Key, Value in pairs(TableA) do
if typeof(Value) == "table" then
if not DeepEquals(TableB[Key], Value) then
return false
end
elseif Value ~= TableB[Key] then
return false
end
end
return true
end
return DeepEquals
| 94 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/Stator/src/init.luau | local TableUtil = require(script.Parent.TableUtil)
local DeepEquals = require(script.DeepEquals)
local function CopyIfTable(Value)
if typeof(Value) == "table" then
return TableUtil.Copy(Value, true)
else
return Value
end
end
local function Equals(A, B)
if (typeof(A) == "table") and (typeof(B) == "table") then... | 486 |
loneka/moonlets | loneka-moonlets-a2f46c2/modules/Wrapper/src/init.luau | local CollectionService = game:GetService("CollectionService")
local Signal = require(script.Parent.Signal)
local function NewWrapper<Value, Destroy>(Construct: (Instance) -> (Value, Destroy))
assert(Construct ~= nil, "Construct argument not provided")
export type Wrap = {
Value: Value,
Destroy: () -> (),
}
... | 666 |
loneka/moonlets | loneka-moonlets-a2f46c2/scripts/pesdeToWally.luau | local fs = require("@lune/fs")
local serde = require("@lune/serde")
local function convertDependencies(pesdeDependencies)
local wallyDependencies = {}
for alias, dependency in pairs(pesdeDependencies) do
if next(dependency) ~= nil then
assert(dependency.name == nil, `Package relies on Pesde package.`)
if d... | 395 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Connections/OnAttached.luau | -- Author: iGottic
local OnAttached = {}
-- Types
export type OnAttached = (Object : any, Callback : (AttachedInstance : Instance) -> nil) -> RBXScriptConnection
function OnAttached:__call(Object : any, Callback : (AttachedInstance : Instance) -> nil)
return (Object.AttachedToInstance :: RBXScriptSignal):Connect... | 172 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Connections/OnAttributeChanged.luau | -- Author: iGottic
local OnAttributeChanged = {}
-- Types
export type OnAttributeChanged = (AttributeName : string) -> (...any) -> RBXScriptConnection
function OnAttributeChanged:__call(AttributeName : string)
local ActiveConnection : RBXScriptConnection = nil
local EventBinding = setmetatable({
Des... | 264 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Connections/OnChanged.luau | -- Author: iGottic
local OnChanged = {}
-- Types
export type OnChanged = (Object : any, Callback : (PropertyChanged : string, NewValue : any) -> nil) -> RBXScriptConnection
function OnChanged:__call(Object : any, Callback : (PropertyChanged : string, NewValue : any) -> nil)
-- Fortunately, states also have a Cha... | 210 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Connections/OnEvent.luau | -- Author: iGottic
local OnEvent = {}
-- Types
export type OnEvent = (EventName : string) -> (...any) -> RBXScriptConnection
function OnEvent:__call(EventName : string)
local ActiveConnection : RBXScriptConnection = nil
local EventBinding = setmetatable({
Destroy = function()
if ActiveCo... | 282 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Attribute.luau | -- Author: iGottic
local Attribute = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
-- Variable
local ClassSymbol = Symbol.new("Attribute")
-- Types Extended
export type Attribute = (AttributeName : string) -> (Object : I... | 340 |
MiaGobble/Seam | MiaGobble-Seam-e0e3683/src/Constructors/Declarations/Children.luau | -- Author: iGottic
local Children = {}
-- Imports
local Modules = script.Parent.Parent.Parent.Modules
local Types = require(Modules.Types)
local Symbol = require(Modules.Symbol)
-- Variables
local ClassSymbol = Symbol.new("Children")
-- Types Extended
export type Children = (Object : Instance, Children : {Types.Chi... | 644 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.