repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Helpers/Toolbar/init.luau
luau
.luau
local Button = require(script.Button) local MENU_BUTTON_ID = "egomoose_photobooth_compact_button" local MENU_BUTTON_TOOLTIP = "Open the Photobooth menu" local MENU_BUTTON_TEXT = "Photobooth" local MENU_BUTTON_ICON = "logo" local MENU_ID = "egomoose_photobooth_compact_menu" local MENU_TITLE = "Photobooth" local Toolb...
591
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Animation/useShake.luau
luau
.luau
local RunService = game:GetService("RunService") :: RunService local pluginRoot = script:FindFirstAncestor("PluginRoot") local Trove = require(pluginRoot.Packages.Trove) local React = require(pluginRoot.Packages.React) local useConstant = require(script.Parent.Parent.Generic.useConstant) local TAU = math.pi * 2 loc...
330
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Generic/useConstant.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useConstant<T>(create: () -> T): T local ref = React.useRef(nil :: any) if not ref.current then ref.current = { value = create() } end return ref.current.value end return useConstant
77
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Generic/useRefProperty.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useRefProperty<T>(ref: { current: Instance? }, property: string, default: T) local value, setValue = React.useState(default) React.useEffect(function() if not ref.current then setValue(defa...
151
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Generic/useSelection.luau
luau
.luau
local SelectionService = game:GetService("Selection") :: Selection local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useSelection() local selection, setSelection = React.useState(SelectionService:Get()) React.useEffect(function() setSelectio...
117
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Generic/useUpdate.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useUpdate() local state, setState = React.useState({}) return React.useCallback(function() setState({}) end, { state }) end return useUpdate
57
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Photobooth/useEditableImageInfos.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local CLASS_TO_CONTENT_PROPERTY: { [string]: string } = { -- ["Decal"] = "TextureContent", ["MeshPart"] = "TextureContent", -- ["ImageLabel"] = "ImageContent", -- ["ImageButton"] = "ImageContent", } export t...
506
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Photobooth/useLatestVersion.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") :: MarketplaceService local pluginRoot = script:FindFirstAncestor("PluginRoot") local Semver = require(pluginRoot.Packages.Semver) local Signal = require(pluginRoot.Packages.Signal) local React = require(pluginRoot.Packages.React) local finished = Signa...
229
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Plugin/useDockButton.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local Toolbar = require(uiRoot.Helpers.Toolbar) local function useDockButton(dock: DockWidgetPluginGui, button: Toolbar.Button) local isEnabled, setIsEna...
206
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Plugin/useHasCreateAssetPermission.luau
luau
.luau
local AssetService = game:GetService("AssetService") :: AssetService local pluginRoot = script:FindFirstAncestor("PluginRoot") local Signal = require(pluginRoot.Packages.Signal) local React = require(pluginRoot.Packages.React) local success = false local finished = Signal.new() task.spawn(function() local model = In...
242
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Plugin/useIsLocalPlugin.luau
luau
.luau
local usePlugin = require(script.Parent.usePlugin) local function useIsLocalPlugin() local plugin = usePlugin() local pluginName = plugin and plugin.Name if pluginName then return not not ( pluginName:find(".rbxm$") or pluginName:find(".rbxmx$") or pluginName:find(".lua$") or pluginName:find(".luau$"...
98
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Plugin/useIsStory.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local IsStoryContext = require(uiRoot.Stories.CreateStory.IsStoryContext) local function useIsStory() return React.useContext(IsStoryContext) end return...
75
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/Plugin/usePlugin.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local function usePlugin() return StudioComponents.usePlugin() :: Plugin? end return usePlugin
47
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Hooks/init.luau
luau
.luau
-- Generic local useUpdate = require(script.Generic.useUpdate) local useConstant = require(script.Generic.useConstant) local useMouseDrag = require(script.Generic.useMouseDrag) local useSelection = require(script.Generic.useSelection) local useRefProperty = require(script.Generic.useRefProperty) local useBindingState =...
322
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Stories/CreateStory/IsStoryContext.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) return React.createContext(false)
30
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Stories/CreateStory/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) local Studio = settings().Studio local themes = Studio:GetAvailableThemes() loc...
470
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Stories/CreateStory/useStoryPlugin.luau
luau
.luau
--!nolint DeprecatedApi local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function createPlugin() -- selene: allow(undefined_variable) return PluginManager():CreatePlugin() :: Plugin end local function useStoryPlugin() local pluginRef = React.useRef(c...
111
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Stories/Debug/LoadAssets.story.luau
luau
.luau
local CollectionService = game:GetService("CollectionService") :: CollectionService local pluginRoot = script:FindFirstAncestor("PluginRoot") local StudioComponents = require(pluginRoot.Packages.StudioComponents) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface")...
343
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/Stories/Stories.storybook.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) local uiRoot = script:FindFirstAncestor("UserInterface") local storyRoots = {} for _, moduleScript in uiRoot.Apps:QueryDescendants("ModuleScript") do ...
159
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Main/UserInterface/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local Constants = require(pluginRoot.Constants) local Toolbar = require(script.Helpers.Toolbar) local UserInterface = {} local function tryMountApps(plugin: Plugin, toolbar: Toolbar.Toolbar, appNames: { string }) for _, appName in appNames do local appModu...
183
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Utilities/Camera.luau
luau
.luau
local Camera = {} type Distortion = { anchor: Vector2, position: Vector2, size: Vector2, zoom: number, nearZ: number?, rotation: number, } function Camera.distort(camera: Camera, distortion: Distortion) local viewportSize = camera.ViewportSize local aspectRatio = viewportSize.X / viewportSize.Y local hFacto...
725
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Utilities/Cancellation/CancelToken.luau
luau
.luau
local CancelTokenStatic = {} local CancelTokenClass = {} CancelTokenClass.__index = CancelTokenClass CancelTokenClass.ClassName = "CancelToken" export type CancelToken = typeof(setmetatable({} :: {}, CancelTokenClass)) type Private = { _isCancelled: () -> boolean, _cancelCallbacks: { [() -> ()]: boolean }, } loca...
299
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Utilities/Cancellation/init.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local Future = require(pluginRoot.Packages.Future) local CancelToken = require(script.CancelToken) local CancellationStatic = {} local CancellationClass = {} CancellationClass.__index = CancellationClass CancellationClass.ClassName = "Cancellation" export ty...
359
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Utilities/PriorityStepper.luau
luau
.luau
local RunService = game:GetService("RunService") local HttpService = game:GetService("HttpService") local pluginRoot = script:FindFirstAncestor("PluginRoot") local Signal = require(pluginRoot.Packages.Signal) local PriorityStepperStatic = {} local PriorityStepperClass = {} PriorityStepperClass.__index = PriorityStep...
586
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Utilities/RectSlicer.luau
luau
.luau
local RectSlicer = {} function RectSlicer.chunks(rect: Rect, xSlices: number, ySlices: number) local width = rect.Max.X - rect.Min.X local height = rect.Max.Y - rect.Min.Y local x0 = rect.Min.X local y0 = rect.Min.Y xSlices = math.max(1, math.min(xSlices, width)) ySlices = math.max(1, math.min(ySlices, height))...
334
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Utilities/StudioMode.luau
luau
.luau
local Players = game:GetService("Players") :: Players local RunService = game:GetService("RunService") :: RunService local StudioMode = {} function StudioMode.isTeamCreate() return not not ( RunService:IsStudio() and RunService:IsEdit() and Players.LocalPlayer and not Players.LocalPlayer:FindFirstChildWhichI...
86
photobooth-rbx/photobooth-plugin
photobooth-rbx-photobooth-plugin-3982c97/src/Utilities/Timeout.luau
luau
.luau
local RunService = game:GetService("RunService") :: RunService local Timeout = {} local function getStudioTimeoutLength(default: number) local duration = default if RunService:IsStudio() then pcall(function() local timeoutLength = settings().Studio.ScriptTimeoutLength - 0.1 if timeoutLength > 0 and timeoutL...
264
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/AccountAge.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if a player's account age meets the specified minimum and maximum days. @function AccountAge @within QueryAuth @param minimum number -- Minimum account age in days. @param maximum number? -- ...
153
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Badge.luau
luau
.luau
local BadgeService = game:GetService("BadgeService") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if the player owns the badge with the given badge ID. @function Badge @within QueryAuth @param badgeId number -- The badge ID to check agai...
131
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/FriendsWith.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[[ Checks to see if the player is friends with another player. @function FriendsWith @within QueryAuth @param otherPlayerId number -- The UserId of the other player to check friendship with. @return Aut...
120
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Gamepass.luau
luau
.luau
local MarketplaceService = game:GetService("MarketplaceService") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if the player owns the gamepass with the given asset ID. @function Gamepass @within QueryAuth @param gamepass number -- The gam...
139
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/GlobalThrottle.luau
luau
.luau
--[=[ A global time-based rate limiter, only returning true if you call it less than `times` amount of times within the `timeFrame` amount of time. @function GlobalThrottle @within QueryAuth @param timeFrame number -- The amount of time (seconds by default) between resetting the amount of calls that can happen. @p...
292
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Group.luau
luau
.luau
local GroupService = game:GetService("GroupService") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if the player is in the specified group with an optional rank range. @function Group @within QueryAuth @param group_id number -- The Roblox...
352
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Once.luau
luau
.luau
--[=[ Checks to see if the player has not met this condition before. @function Once @within QueryAuth @return AuthCondition -- A lambda that returns true if the player did not get checked by the condition before. ]=] return function() local used = {} return function(player: Player) if used[player] ...
95
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Policy.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) local PolicyService = game:GetService("PolicyService") type AuthCondition = QueryAuthTypes.AuthCondition type Policy = QueryAuthTypes.Policy --[=[ Checks if PolicyService allows the specified policy for the player. @function Policy @within QueryAuth @para...
156
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Premium.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks to see if the player has premium. @function Premium @within QueryAuth @return AuthCondition -- A lambda that returns true if the player has premium. ]=] return function(): AuthCondition retur...
94
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/ServerTime.luau
luau
.luau
local Workspace = game:GetService("Workspace") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks to see if the server's time is greater or equal to the provided time. @function ServerTime @within QueryAuth @param time number -- The time to ch...
135
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Studio.luau
luau
.luau
local RunService = game:GetService("RunService") local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks to see if the game is running in studio. @function Studio @within QueryAuth @return AuthCondition -- A lambda that returns true if game is runn...
102
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Team.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if a player's team name is in the provided list of team names. @function Team @within QueryAuth @param values {string}? -- List of team names to check against. If nil, any team will pass. @re...
137
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/Throttle.luau
luau
.luau
--[=[ A player time-based rate limiter, only returning true if you call it less than `times` amount of times within the `timeFrame` amount of time for a given player. @function Throttle @within QueryAuth @param timeFrame number -- The amount of time (seconds by default) between resetting the amount of calls that ca...
370
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/DefaultAuthConditions/UserId.luau
luau
.luau
local QueryAuthTypes = require(script.Parent.Parent.Types) type AuthCondition = QueryAuthTypes.AuthCondition --[=[ Checks if a player's UserId is in the provided list of UserIds. @function UserId @within QueryAuth @param values {number}? -- List of UserIds to check against. If nil, no UserId will pass. @return A...
127
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/lib/Types.luau
luau
.luau
--[=[ @class Types ]=] --[=[ @type AuthCondition (player: Player) -> boolean @within Types ]=] export type AuthCondition = (player: Player) -> boolean --[=[ A string which represents policies returned by [PolicyService.GetPolicyInfoForPlayerAsync](https://create.roblox.com/docs/reference/engine/classes/PolicyServ...
257
PossiblePanda/QueryAuth
PossiblePanda-QueryAuth-d5bcf8a/src/init.client.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local QueryAuth = require(ReplicatedStorage.QueryAuth) local plr = game.Players.LocalPlayer local test = QueryAuth.any({ QueryAuth.UserId(plr.UserId), }) if test(plr) == true then print("🟢 Expected test...
466
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/CPTest/CPTest.server.luau
luau
.luau
--!strict -- Plugin that exposes the ColorPane API script for testing local ColorPane = script.Parent.ColorPane require(ColorPane)(plugin, "CPTester") local APIScript = ColorPane.API APIScript.Parent = game:GetService("Workspace") APIScript.Archivable = false plugin.Unloading:Connect(function() APIScript:Destroy...
80
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/API.luau
luau
.luau
--!strict --[[ The ColorPane API. Please refer to the documentation for the available API members. ]] local root = script.Parent local Common = root.Common local CommonModules = Common.Modules local CommonEnums = require(CommonModules.Enums) local Constants = require(CommonModules.Constants) local Pl...
4,616
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ButtonBar.luau
luau
.luau
-- A container for multiple buttons, where one button is selected at a time local Common = script.Parent.Parent.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes local Cryo = require(CommonIncludes.Cryo) local Roact = require(CommonIncludes....
1,446
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorBrewerPalettes.luau
luau
.luau
-- Palette page for ColorBrewer palettes local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color)...
1,388
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorEditor.luau
luau
.luau
-- The entire color editor interface local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color).Co...
4,010
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorGrids.luau
luau
.luau
-- A grid of colors local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes local Roact = require(CommonIncludes.RoactRodux.Roact) local CommonComponents = Common.Components local Button = req...
1,739
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorInfo.luau
luau
.luau
-- A page containing information in different formats about a color local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Color = re...
3,043
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorSorter.luau
luau
.luau
-- A page for sorting colors based on their ΔE* to another color local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Color = requi...
1,478
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorToolPages.luau
luau
.luau
--[[ A Pages container for the Color Information, Color Sorter, Color Variations, and Gradient Pickers pages ]] local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local R...
505
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorVariations.luau
luau
.luau
-- A page showing variations of a color local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color)....
1,301
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ColorWheel.luau
luau
.luau
--[[ A color picker containing a hue ring and saturation-value plane with color harmony guides ]] local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes local Color = require(CommonInc...
4,335
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/ExportPalette.luau
luau
.luau
-- A page for exporting a palette local HttpService = game:GetService("HttpService") local Selection = game:GetService("Selection") local ServerStorage = game:GetService("ServerStorage") --- local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(Commo...
2,054
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/FirstTimeSetup.luau
luau
.luau
-- An informational page shown when launching ColorPane for the first time local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Roa...
706
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GradientEditor.luau
luau
.luau
-- The entire gradient editor interface local TextService = game:GetService("TextService") --- local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local CommonEnums = require(CommonModules.Enums) local Constants = require(CommonModules.Constants) local Style = require(C...
8,641
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GradientInfo.luau
luau
.luau
-- A page showing the editing metadata for a gradient local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Constants = require(CommonModules.Constants) local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonInclud...
3,275
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GradientPalette.luau
luau
.luau
-- A page showing a palette of gradients local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Gradient = require(CommonIncludes.Col...
3,860
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GradientPickers.luau
luau
.luau
-- A page for picking colors from gradients local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes local Gradient = require(CommonIncludes.Color).Gradient local Roact = require(CommonIncludes....
1,812
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/GreyscaleSliderPage.luau
luau
.luau
-- RGB slider page for monochrome colors local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color)...
991
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/NamePalette.luau
luau
.luau
-- Palette naming dialog page local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Roact = require(CommonIncludes.RoactRodux.Roact)...
1,561
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/Pages.luau
luau
.luau
--[[ A container for multiple pages which can be selected with a dropdown, and also contains a button for showing page options ]] local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes...
515
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/Palette.luau
luau
.luau
-- A color palette local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color).Color local Roact = r...
2,131
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/PaletteColorGrid.luau
luau
.luau
-- A color palette where the colors are shown in a grid local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Roact = require(Common...
1,219
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/PaletteColorList.luau
luau
.luau
-- A color palette where the colors are shown in a list local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes local Roact = require(CommonIncludes.RoactRodux.Roact) local CommonComponents = ...
2,095
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/PalettePages.luau
luau
.luau
-- A Pages container for all the built-in and user palettes local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local CommonEnums = require(CommonModules.Enums) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Cryo = requir...
2,221
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/RemovePalette.luau
luau
.luau
-- A dialog for removing a palette local TextService = game:GetService("TextService") --- local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonIncludes = Common.I...
1,252
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/Selection.luau
luau
.luau
-- A selection button and list local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes local Roact = require(CommonIncludes.RoactRodux.Roact) local CommonComponents = Common.Components local B...
2,540
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/SimpleList.luau
luau
.luau
-- A simple list of elements local Common = script.Parent.Parent.Common local CommonIncludes = Common.Includes local Roact = require(CommonIncludes.RoactRodux.Roact) local CommonComponents = Common.Components local ConnectTheme = require(CommonComponents.ConnectTheme) local StandardComponents = CommonComponents.Sta...
1,077
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/Slider.luau
luau
.luau
-- A customisable numeric slider local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes local Roact = require(CommonIncludes.RoactRodux.Roact) local CommonComponents = Common.Components local...
2,025
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/SliderPage.luau
luau
.luau
-- A generic color slider page local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color).Color local Roact = require(CommonIncludes.RoactRodux.Roact) ...
1,756
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/SliderPages.luau
luau
.luau
-- A Pages container for various color sliders in various color spaces local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Translator = require(CommonModules.Translator) local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color).Color local ...
2,586
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Components/TemperatureSliderPage.luau
luau
.luau
-- A color slider page for black-body color temperatures local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Constants = require(CommonModules.Constants) local Style = require(CommonModules.Style) local Translator = require(CommonModules.Translator) local CommonInc...
1,989
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/APITypeValidators.luau
luau
.luau
--!strict -- Run-time validators for API call parameters local root = script.Parent.Parent local CommonIncludes = root.Common.Includes local ColorLib = require(CommonIncludes.Color) local t = require(CommonIncludes.t) local Color = ColorLib.Color local Gradient = ColorLib.Gradient --- local APITypeValidators = {} ...
489
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/BuiltInGradients.luau
luau
.luau
-- A list of built-in gradients local root = script.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color).Color local CommonModules = Common.Modules local Constants = require(CommonModules.Constants) local Translator = require(CommonModules.Transl...
551
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/BuiltInPalettes/BrickColors.luau
luau
.luau
-- A palette of the available brick colors local brickColorsPalette = { name = "BrickColors", colors = {} } for i = 1, 1032 do local brickColor = BrickColor.new(i) -- BrickColors that don't exist default to #194 if ((brickColor.Number ~= 194) or (i == 194)) then local color = brickColor.C...
139
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/BuiltInPalettes/ColorBrewer/init.luau
luau
.luau
-- A list of the ColorBrewer palettes and their colors return { Accent = { type = "Qualitative", colorSets = { [3] = { {127, 201, 127}, {190, 174, 212}, {253, 192, 134}, }, [4] = { {127, 201, 127}, {190, 174, 212}, {253, 192, 134}, {255, 255, 153}, }, [5] = { {12...
19,117
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/BuiltInPalettes/WebColors.luau
luau
.luau
--[[ A palette of the web colors Named colors from CSS Color Module Level 4 https://www.w3.org/TR/2020/WD-css-color-4-20201112/#named-colors --]] return { name = "Web Colors", colors = { { keywords = {"aliceblue"}, name = "Alice Blue", color = {240,...
4,384
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/EditorInputSignals.luau
luau
.luau
--!strict -- Provides a common set of signals for editor mouse input local root = script.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local Signal = require(CommonIncludes.Signal) --- local colorEditorInputBeganSignal: Signal.Signal<InputObject>, fireColorEditorInputBegan: Sig...
299
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/Enums.luau
luau
.luau
--!strict -- Provides enum types return { StoreActionType = { SetTheme = "SetTheme", UpstreamAvailabilityChanged = "UpstreamAvailabilityChanged", UpdateSessionData = "UpdateSessionData", UpdateUserData = "UpdateUserData", ColorEditor_SetColor = "ColorEditor_SetColor", ...
576
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/ManagedUserData.luau
luau
.luau
--!strict local root = script.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local Signal = require(CommonIncludes.Signal) local CommonModules = Common.Modules local ColorPaneUserDataDefaultValues = require(CommonModules.ColorPaneUserDataDefaultValues) local ColorPaneUserDataFactory ...
820
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/ProjectId.luau
luau
.luau
--!strict -- Provides the project ID local HttpService: HttpService = game:GetService("HttpService") --- local id: string? = nil --[[ Provides the project ID. If called with an ID, it will be stored for future use. If an ID has already been stored, the function will throw an error. If called w...
232
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/RepeatingCallback.luau
luau
.luau
--!strict -- Wrapper for making a callback repeat multiple times local HttpService: HttpService = game:GetService("HttpService") local RunService: RunService = game:GetService("RunService") --- local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local PluginProvider = r...
704
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/Store.luau
luau
.luau
--!strict local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local CommonEnums = require(CommonModules.Enums) local PluginProvider = require(CommonModules.PluginProvider) local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color).Color local Rodu...
1,141
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/StoreReducers/ColorEditorReducers.luau
luau
.luau
--!strict local root = script.Parent.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local Cryo = require(CommonIncludes.Cryo) local Modules = root.Modules local Enums = require(Modules.Enums) local Types = require(Modules.Types) local Util = require(Modules.Util) --- type table = T...
2,653
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/StoreReducers/GradientEditorReducers.luau
luau
.luau
--!strict local root = script.Parent.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local Cryo = require(CommonIncludes.Cryo) local Modules = root.Modules local Enums = require(Modules.Enums) local Types = require(Modules.Types) local Util = require(Modules.Util) --- type table = T...
3,031
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/StoreReducers/init.luau
luau
.luau
--!strict local root = script.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local Cryo = require(CommonIncludes.Cryo) local Modules = root.Modules local Enums = require(Modules.Enums) local Types = require(Modules.Types) local Util = require(Modules.Util) local ColorEditorReducers ...
617
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/Types.luau
luau
.luau
--!strict -- Common Luau types used in ColorPane local root = script.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local Color = require(CommonIncludes.Color) --- export type table = {[any]: any} export type Color = Color.Color export type Gradient = Color.Gradient export type Colo...
335
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/UpstreamUserData.luau
luau
.luau
--!strict local StudioService: StudioService = game:GetService("StudioService") --- local root = script.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local Signal = require(CommonIncludes.Signal) local CommonModules = Common.Modules local CommonConstants = require(CommonModules.Co...
1,202
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/Util.luau
luau
.luau
--!strict local root = script.Parent.Parent local Common = root.Common local CommonIncludes = Common.Includes local ColorLib = require(CommonIncludes.Color) local CommonModules = Common.Modules local CommonUtil = require(CommonModules.Util) local ColorPaneUserDataValidators = require(CommonModules.ColorPaneUserDataV...
1,668
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/Modules/WidgetInfo.luau
luau
.luau
--!strict -- Holds information for the common plugin widgets local root = script.Parent.Parent local Common = root.Common local CommonModules = Common.Modules local Style = require(CommonModules.Style) local Modules = script.Parent local ProjectId = require(Modules.ProjectId) --- local PROJECT_ID: string = Project...
570
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/ColorPane/init.luau
luau
.luau
--!strict --[[ v0.5.0 ColorPane is a suite of color tools for Roblox Studio projects. Learn more here: https://devforum.roblox.com/t/1106112 Please refer to the documentation for integrating these tools. ]] local PluginProvider = require(script.Common.Modules.PluginProvider) local ProjectId = require...
243
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/Common/Components/Button.luau
luau
.luau
-- A button that can display multiple types of content local root = script.Parent.Parent local Modules = root.Modules local Style = require(Modules.Style) local Includes = root.Includes local Cryo = require(Includes.Cryo) local Roact = require(Includes.RoactRodux.Roact) local Components = root.Components local Conn...
1,157
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/Common/Components/Checkbox.luau
luau
.luau
-- A checkbox local root = script.Parent.Parent local Modules = root.Modules local Style = require(Modules.Style) local Includes = root.Includes local Roact = require(Includes.RoactRodux.Roact) local Components = root.Components local ConnectTheme = require(Components.ConnectTheme) local StandardComponents = Compo...
1,032
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/Common/Components/ConnectTheme.luau
luau
.luau
-- Allows components to use theme coloring -- This is a (higher-order) component, so it should stay in the Components folder local RoactRodux = require(script.Parent.Parent.Includes.RoactRodux.RoactRodux) --- return RoactRodux.connect(function(state) return { theme = state.theme, } end)
73
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/Common/Components/ExportText.luau
luau
.luau
-- Component that presents text to be copied local TextService = game:GetService("TextService") --- local root = script.Parent.Parent local Modules = root.Modules local Style = require(Modules.Style) local Includes = root.Includes local Roact = require(Includes.RoactRodux.Roact) local Components = root.Components...
1,189
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/Common/Components/Prompt.luau
luau
.luau
-- A prompt to take (or avoid) an action local root = script.Parent.Parent local Modules = root.Modules local Style = require(Modules.Style) local Includes = root.Includes local Roact = require(Includes.RoactRodux.Roact) local Components = root.Components local Button = require(Components.Button) local ConnectTheme...
804
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/Common/Components/RadioButtonGroup.luau
luau
.luau
-- An group of radio buttons, where only one radio button can be selected at a time local root = script.Parent.Parent local Components = root.Components local ConnectTheme = require(Components.ConnectTheme) local Includes = root.Includes local Roact = require(Includes.RoactRodux.Roact) local Modules = root.Modules ...
961
Blupo/ColorPane
Blupo-ColorPane-e0e4760/projects/Common/Components/StandardComponents/ScrollingFrame.luau
luau
.luau
-- Standard ScrollingFrame component with theme coloring local root = script.Parent.Parent.Parent local Modules = root.Modules local Style = require(Modules.Style) local Includes = root.Includes local Roact = require(Includes.RoactRodux.Roact) local Components = root.Components local ConnectTheme = require(Componen...
477