repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
AnotherSubatomo/RbxShader
AnotherSubatomo-RbxShader-6af4d49/src/utils/Common.luau
luau
.luau
-- [=[ Common types found across the scripts. ]=] --!native export type ShaderBuffer = ( fragColor : Vector3 , fragCoords : Vector2 , iTime : number , iTimeDelta : number , iResolution : Vector2 , iMouse : SharedTable , iDate : {number} ) -> (number, number, number, number) -- a few buffer name examples expor...
209
Shiawaseu/RBLX-Whitelist
Shiawaseu-RBLX-Whitelist-da315fe/.vscode/luraph.d.luau
luau
.luau
-- Thanks Stefan type GenericFunction<T, U...> = (U...) -> T; declare function LPH_ENCFUNC<T, U...>(toEncrypt: GenericFunction<T, U...>, encKey: string, decKey: string): GenericFunction<T, U...> declare function LPH_ENCSTR(toEncrypt: string): string declare function LPH_ENCNUM(toEncrypt: number): number declare funct...
195
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/lune/wally-install.luau
luau
.luau
--!strict local fs = require("@lune/fs") local run = require("@utils/run") run("wally", { "install" }) for _, folderName in { "Packages", "DevPackages", "ServerPackages" } do if not fs.isDir(folderName) then fs.writeDir(folderName) end end run("rojo", { "sourcemap", "develop.project.json", "-o", "sourcemap.json"...
158
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Assets.luau
luau
.luau
-- This file is automatically @generated by Asphalt. -- It is not intended for manual editing. local Assets = { ArrowsSpriteSheet = "rbxassetid://116456051784448", SliderArrow = "rbxassetid://103002431457407", scroll = { ["scroll-bottom"] = "rbxassetid://109542199923668", ["scroll-middle"] = "rbxassetid://123756...
122
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/ColorPicker.story.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local ReactRoblox = require(pkgs.ReactRoblox) local React = require(pkgs.React) local ColorPicker = require(script....
374
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/ColorSwatches.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, Colors: { Color3 }, OnActivated: (Color3) -> ()?, Disabled: boolean?, } lo...
627
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/DefaultColors.luau
luau
.luau
return { Color3.fromHex("#000000"), Color3.fromHex("#910000"), Color3.fromHex("#005100"), Color3.fromHex("#A46513"), Color3.fromHex("#00A600"), Color3.fromHex("#A8B100"), Color3.fromHex("#00FF00"), Color3.fromHex("#B7FF00"), Color3.fromHex("#000084"), Color3.fromHex("#A2007C"), Color3.fromHex("#005D84"), Co...
433
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/HSVPicker/HueSaturationPicker.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useMouseDrag = require(uiRoot.Hooks.useMouseDrag) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, ...
1,206
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/HSVPicker/ValuePicker.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useMouseDrag = require(uiRoot.Hooks.useMouseDrag) local Assets = require(uiRoot.Assets) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2...
674
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/HSVPicker/init.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local HueSaturationPicker = require(script.HueSaturationPicker) local ValuePicker = require(script.ValuePicker) export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, HSV: { number }, Set...
363
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/TextInputs/HexInput.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local InputBox = require(uiRoot.Components.Properties.Foundational.InputBox) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2?, Position: UDi...
958
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/TextInputs/NumberInput.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Constants = require(uiRoot.Components.Properties.Foundational.Constants) local NumberBox = require(uiRoot.Components.Properties.Foundational.NumberBox) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = ...
633
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/TextInputs/init.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local NumberInput = require(script.NumberInput) local HexInput = require(script.HexInput) local HIGHLIGHT_ON_FOCUS = true export type Props = { AnchorPoint: Vector2?, Position: UDim2?, Size: UDim2?, HSV: { num...
1,374
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/ColorPicker/init.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Observables = require(uiRoot.Observables) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) local DefaultColors = require(script.DefaultColors) local ColorSwatches = require(script....
2,161
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/Constants.luau
luau
.luau
return { LineHeight = 22, }
10
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/InputBox.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Constants = require(script.Parent.Constants) local Assets = require(uiRoot.Assets) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type HighlightMode = "Editing" | "Textbox...
2,289
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/NumberBox.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local TextSanitizers = require(uiRoot.Helpers.TextSanitizers) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local InputBox = require(script.Parent.InputBox) export type Props = { BackgroundTransparency: number?, BackgroundColor3: Color3...
942
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/PropertyGroup.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Observables = require(uiRoot.Observables) local Assets = require(uiRoot.Assets) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) export type Props = { AnchorPoint: Vector2?, Posi...
1,047
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/PropertyLine.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Constants = require(script.Parent.Constants) local Observables = require(uiRoot.Observables) local Assets = require(uiRoot.Assets) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) l...
2,148
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Foundational/StringBox.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local InputBox = require(script.Parent.InputBox) export type Props = { BackgroundTransparency: number?, BackgroundColor3: Color3?, BorderSizePixel: number?, AnchorPoint: Vector2?, Positio...
500
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Inputs.story.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local StudioProperties = require(uiRoot.Parent) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local ReactRoblox = require(pkgs.ReactRoblox) local React = require(...
889
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/BooleanProperty.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) local foundationalRoot = script.Parent.Parent.Foundational local PropertyLine = require(foundationalRoot.PropertyLine) export type Props = { AnchorPoint: Vect...
378
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/DropdownProperty.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Observables = require(uiRoot.Observables) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) local foundationalRoot = script.Parent.Parent.Foundational local PropertyLine = require(f...
600
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/InstanceProperty.luau
luau
.luau
local SelectionService = game:GetService("Selection") :: Selection local uiRoot = script:FindFirstAncestor("UserInterface") local usePlugin = require(uiRoot.Hooks.usePlugin) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local Lucide = require(pkgs.Lucide) local React = requ...
1,618
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/NumberProperty.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local React = require(pkgs.React) local foundationalRoot = script.Parent.Parent.Foundational local PropertyLine = require(foundationalRoot.PropertyLine) local NumberBox = ...
690
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Primitives/StringProperty.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local foundationalRoot = script.Parent.Parent.Foundational local PropertyLine = require(foundationalRoot.PropertyLine) local StringBox = require(foundationalRoot.StringBox) export type Props = { AnchorPoint: Vector...
506
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Properties.story.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local VerticalScroll = require(uiRoot.Components.VerticalScroll) local CreateStory = require(uiRoot.Stories.CreateStory) local StudioProperties = require(uiRoot.Parent) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) loc...
1,886
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/CFrameProperty.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local Vector3Prope...
976
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/Color3Property.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useColorPickerDock = require(uiRoot.Hooks.useColorPickerDock) local ColorPicker = require(uiRoot.Components.ColorPicker) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local ReactRoblox = require(pkgs.ReactRoblox)...
1,586
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/UDim2Property.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local UDimProperty...
923
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/UDimProperty.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local NumberProper...
803
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/Vector2Property.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local NumberProper...
808
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/Properties/Roblox/Vector3Property.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local useComponents = require(uiRoot.Hooks.useComponents) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local primitivesRoot = script.Parent.Parent.Primitives local StringProperty = require(primitivesRoot.StringProperty) local NumberProper...
921
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Components/VerticalScroll/VerticalScroll.story.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local CreateStory = require(uiRoot.Stories.CreateStory) local pkgs = uiRoot.Parent.Parent local StudioComponents = require(pkgs.StudioComponents) local ReactRoblox = require(pkgs.ReactRoblox) local React = require(pkgs.React) local VerticalScroll = require(scri...
490
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Contexts/PluginContext.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) return React.createContext(nil :: Plugin?)
33
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Helpers/TextSanitizers.luau
luau
.luau
local TextSanitizers = {} function TextSanitizers.numeric(text: string, allowNegative: boolean, allowDecimal: boolean) local negative = false if allowNegative and string.sub(text, 1, 1) == "-" then negative = true text = string.sub(text, 2) end text = string.gsub(text, "[^%.%d]", "") local firstDecimal = str...
175
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/useColorPickerDock.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local usePlugin = require(uiRoot.Hooks.usePlugin) local Observables = require(uiRoot.Observables) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local Trove = require(pkgs.Trove) local DOCK_ID = "egomoose_react_studio_properties_color_picke...
520
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/useColorPickerOpen.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local Observables = require(uiRoot.Observables) local function useColorPickerOpen() local colorPickerOpen = Observables.colorPickerOpen:use() return colorPickerOpen end return useColorPickerOpen
58
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/useComponents.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.React) local function useComponents<T>(value: T, toArray: (T) -> { number }, fromArray: ({ number }) -> T) local valueRef = React.useRef(value) local components, setComponents = React.useState(toArray(value)) local func...
217
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/usePlugin.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local PluginContext = require(uiRoot.Contexts.PluginContext) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) local function usePlugin() local contextPlugin = React.useContext(PluginContext) return contextPlugin end return usePlugin
69
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Hooks/useRefProperty.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local React = require(pkgs.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(default)...
152
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Observables/ObservableValue.luau
luau
.luau
local pkgs = script:FindFirstAncestor("UserInterface").Parent.Parent local Signal = require(pkgs.Signal) local React = require(pkgs.React) local ObservableValueStatic = {} local ObservableValueClass = {} ObservableValueClass.__index = ObservableValueClass ObservableValueClass.ClassName = "ObservableValue" export typ...
472
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Observables/init.luau
luau
.luau
local ObservableValue = require(script.ObservableValue) return { hoveringDisabled = ObservableValue.new(false), colorPickerOpen = ObservableValue.new(false), colorPickerDock = ObservableValue.new(nil :: DockWidgetPluginGui?), customColors = ObservableValue.new(table.create(16, Color3.new(1, 1, 1))), }
70
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Stories/CreateStory.luau
luau
.luau
--!nocheck --!nolint local uiRoot = script:FindFirstAncestor("UserInterface") local PluginContext = require(uiRoot.Contexts.PluginContext) local pkgs = uiRoot.Parent.Parent local React = require(pkgs.React) -- selene: allow(undefined_variable) local plugin: Plugin = PluginManager():CreatePlugin() local function cre...
154
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/UserInterface/Stories/Stories.storybook.luau
luau
.luau
local uiRoot = script:FindFirstAncestor("UserInterface") local pkgs = uiRoot.Parent.Parent local ReactRoblox = require(pkgs.ReactRoblox) local React = require(pkgs.React) return { name = "StudioProperties", storyRoots = { uiRoot.Components.Properties, uiRoot.Components.ColorPicker, uiRoot.Components.VerticalSc...
102
EgoMoose/rbx-react-studio-properties
EgoMoose-rbx-react-studio-properties-40d7857/src/init.luau
luau
.luau
local uiRoot = script.UserInterface local Properties = uiRoot.Components.Properties return { PluginContext = require(uiRoot.Contexts.PluginContext), VerticalScroll = require(uiRoot.Components.VerticalScroll), ColorPicker = require(uiRoot.Components.ColorPicker), useColorPickerOpen = require(uiRoot.Hooks.useColor...
267
Sleitnick/Knit
Sleitnick-Knit-bb1ecf3/publish.luau
luau
.luau
-- Remodel Publish script local KNIT_ASSET_ID = "5530714855" print("Loading Knit") local place = remodel.readPlaceFile("Knit.rbxl") local Packages = place.ReplicatedStorage.Packages Packages.Knit.Packages:Destroy() print("Writing Knit module to model file...") remodel.writeModelFile("Knit.rbxm", Packages) print("Kni...
122
Sleitnick/Knit
Sleitnick-Knit-bb1ecf3/src/init.luau
luau
.luau
local RunService = game:GetService("RunService") if RunService:IsServer() then return require(script.KnitServer) else local KnitServer = script:FindFirstChild("KnitServer") if KnitServer and RunService:IsRunning() then KnitServer:Destroy() end return require(script.KnitClient) end
73
SirMallard/Iris
SirMallard-Iris-d40343b/lib/API.lua
luau
.lua
local Types = require(script.Parent.Types) return function(Iris: Types.Iris) -- basic wrapper for nearly every widget, saves space. local function wrapper(name) return function(arguments, states) return Iris.Internal._Insert(name, arguments, states) end end --[[ ...
15,272
SirMallard/Iris
SirMallard-Iris-d40343b/lib/Internal.lua
luau
.lua
local Types = require(script.Parent.Types) return function(Iris: Types.Iris): Types.Internal --[=[ @class Internal An internal class within Iris containing all the backend data and functions for Iris to operate. It is recommended that you don't generally interact with Internal unless ...
7,080
SirMallard/Iris
SirMallard-Iris-d40343b/lib/PubTypes.lua
luau
.lua
local Types = require(script.Parent.Types) export type ID = Types.ID export type State<T> = Types.State<T> export type Widget = Types.Widget export type Root = Types.Root export type Window = Types.Window export type Tooltip = Types.Tooltip export type MenuBar = Types.MenuBar export type Menu = Types.Menu ...
322
SirMallard/Iris
SirMallard-Iris-d40343b/lib/Types.lua
luau
.lua
local WidgetTypes = require(script.Parent.WidgetTypes) export type ID = WidgetTypes.ID export type State<T> = WidgetTypes.State<T> export type Hovered = WidgetTypes.Hovered export type Clicked = WidgetTypes.Clicked export type RightClicked = WidgetTypes.RightClicked export type DoubleClicked = WidgetTypes.Dou...
5,429
SirMallard/Iris
SirMallard-Iris-d40343b/lib/WidgetTypes.lua
luau
.lua
--[=[ @within Iris @type ID string ]=] export type ID = string --[=[ @within State @type State<T> { ID: ID, value: T, get: (self) -> T, set: (self, newValue: T) -> T, onChange: (self, callback: (newValue: T) -> ()) -> (), ConnectedWidgets: { [ID]: Widget }, ConnectedFunctions: { (newValue: T) -...
2,630
SirMallard/Iris
SirMallard-Iris-d40343b/lib/config.lua
luau
.lua
local TemplateConfig = { colorDark = { -- Dear, ImGui default dark TextColor = Color3.fromRGB(255, 255, 255), TextTransparency = 0, TextDisabledColor = Color3.fromRGB(128, 128, 128), TextDisabledTransparency = 0, -- Dear ImGui uses 110, 110, 125 -- The Roblox...
3,445
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Button.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) local abstractButton = { hasState = false, hasChildren = false, Args = { ["Text"] = 1, ["Size"] = 2, }, Events = { ...
707
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Checkbox.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) --stylua: ignore Iris.WidgetConstructor("Checkbox", { hasState = true, hasChildren = false, Args = { ["Text"] = 1, }, Events = { ...
994
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Combo.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) --stylua: ignore Iris.WidgetConstructor("Selectable", { hasState = true, hasChildren = false, Args = { ["Text"] = 1, ["Index"] = 2, ...
4,577
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Format.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) --stylua: ignore Iris.WidgetConstructor("Separator", { hasState = false, hasChildren = false, Args = {}, Events = {}, Generate = function(thisWi...
1,200
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Image.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) local abstractImage = { hasState = false, hasChildren = false, Args = { ["Image"] = 1, ["Size"] = 2, ["Rect"] = 3, ...
1,249
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Input.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) type InputDataTypes = "Num" | "Vector2" | "Vector3" | "UDim" | "UDim2" | "Color3" | "Color4" | "Rect" | "Enum" | "" | string type InputType = "Input" | "Drag" | "Slider" return function(Iris: Types.Internal, widgets: Types.WidgetUtility) local numberChanged ...
12,590
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Menu.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) local AnyMenuOpen = false local ActiveMenu: Types.Menu? = nil local MenuStack: { Types.Menu } = {} local function EmptyMenuStack(menuIndex: number?) for index = #MenuSt...
4,927
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Plot.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) -- stylua: ignore Iris.WidgetConstructor("ProgressBar", { hasState = true, hasChildren = false, Args = { ["Text"] = 1, ["Format"] = 2, ...
5,541
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/RadioButton.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) --stylua: ignore Iris.WidgetConstructor("RadioButton", { hasState = true, hasChildren = false, Args = { ["Text"] = 1, ["Index"] = 2, ...
1,087
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Root.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) local NumNonWindowChildren: number = 0 --stylua: ignore Iris.WidgetConstructor("Root", { hasState = false, hasChildren = true, Args = {}, Events =...
1,437
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Tab.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) local function openTab(TabBar: Types.TabBar, Index: number) if TabBar.state.index.value > 0 then return end TabBar.state.index:set(Index) end ...
2,889
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Table.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) -- Tables need an overhaul. --[[ Iris.Table( { NumColumns, Header, RowBackground, OuterBorders, InnerBorders } ) Config = { CellPadding: Vector2, CellSize: UDim2, } Iris.NextColumn() Iris.NextRow() Iris.SetColumnIn...
5,534
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Text.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) --stylua: ignore Iris.WidgetConstructor("Text", { hasState = false, hasChildren = false, Args = { ["Text"] = 1, ["Wrapped"] = 2, ...
1,082
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Tree.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) local abstractTree = { hasState = true, hasChildren = true, Events = { ["collapsed"] = { ["Init"] = function(_thisWidget: Types.Collapsin...
2,614
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/Window.lua
luau
.lua
local Types = require(script.Parent.Parent.Types) return function(Iris: Types.Internal, widgets: Types.WidgetUtility) local function relocateTooltips() if Iris._rootInstance == nil then return end local PopupScreenGui = Iris._rootInstance:FindFirstChild("PopupScreenGui") ...
10,433
SirMallard/Iris
SirMallard-Iris-d40343b/lib/widgets/init.lua
luau
.lua
local Types = require(script.Parent.Types) local widgets = {} :: Types.WidgetUtility return function(Iris: Types.Internal) widgets.GuiService = game:GetService("GuiService") widgets.RunService = game:GetService("RunService") widgets.UserInputService = game:GetService("UserInputService") widget...
4,284
SirMallard/Iris
SirMallard-Iris-d40343b/src/client/helloIris.client.lua
luau
.lua
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Iris = require(ReplicatedStorage.Iris).Init() Iris:Connect(Iris.ShowDemoWindow)
36
SirMallard/Iris
SirMallard-Iris-d40343b/src/libraries/UserInputService/Signal.lua
luau
.lua
-------------------------------------------------------------------------------- -- Batched Yield-Safe Signal Implementation -- -- This is a Signal class which has effectively identical behavior to a -- -- normal RBXScriptSignal, with the only difference being a couple extra ...
1,419
SirMallard/Iris
SirMallard-Iris-d40343b/src/libraries/UserInputService/init.lua
luau
.lua
local Signal = require(script.Signal) local UserInputService: UserInputService = game:GetService("UserInputService") local Input = {} Input.X = 0 Input.Y = 0 Input.KeyDown = {} Input._connections = {} -- This frame will act as our UserInputService detector. Most events should go through it. -- it's not ...
480
SirMallard/Iris
SirMallard-Iris-d40343b/src/plugins/examplePlugin.client.lua
luau
.lua
local Iris = require(script.Parent.Iris) local Input = require(script.Parent.UserInputService) -- Create the plugin toolbar, button and dockwidget for Iris to work in. local widgetInfo = DockWidgetPluginGuiInfo.new(Enum.InitialDockState.Float, false, false, 200, 300) local Toolbar = plugin:CreateToolbar("Iris")...
493
SirMallard/Iris
SirMallard-Iris-d40343b/stories/exampleStory.story.lua
luau
.lua
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Types = require(ReplicatedStorage.Iris.PubTypes) return function(parent: GuiObject) local Iris: Types.Iris = require(ReplicatedStorage.Iris) local Input = require(script.Parent.UserInputService) Input.SinkFrame.Parent = parent ...
239
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/announce.luau
luau
.luau
return { Name = "announce", Aliases = { "m" }, Description = "Makes a server-wide announcement.", Group = "DefaultAdmin", Args = { { Type = "string", Name = "Text", Description = "The announcement text.", }, }, }
64
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/ban.luau
luau
.luau
return { Name = "ban", Description = "Bans a player or set of players.", Group = "DefaultAdmin", Args = { { Type = "playerIds", Name = "Players", Description = "The players to ban (max 50).", }, { Type = "duration", Name = "Duration", Description = "How long the ban lasts (negative values in...
279
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/banServer.luau
luau
.luau
const Players = game:GetService("Players") return function( _, playerIds: { number }, duration: number, displayReason: string, privateReason: string?, excludeAltAccounts: boolean, applyToUniverse: boolean, applyDeviceBlock: boolean ): string if #playerIds > 50 then return "Too many players specified. BanAsy...
313
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/gotoPlace.luau
luau
.luau
return { Name = "goto-place", Description = "Teleport to a Roblox place.", Group = "DefaultAdmin", AutoExec = { 'alias "follow-player|Join a player in another server." goto-place $1{players|Players|The players to teleport.} ${{get-player-place-instance $2{playerId|Target|The player you want to follow.}}}', 'ali...
234
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/gotoPlaceServer.luau
luau
.luau
const TeleportService = game:GetService("TeleportService") return function(context: any, players: { Player }, placeId: number, jobId: string?): string if placeId <= 0 then return "Invalid place ID" elseif jobId == "-" then return "Invalid job ID" end context:Reply("Commencing teleport...") const success, er...
163
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/kick.luau
luau
.luau
return { Name = "kick", Aliases = { "boot" }, Description = "Kicks a player or set of players.", Group = "DefaultAdmin", Args = { { Type = "players", Name = "Players", Description = "The players to kick.", }, { Type = "string", Name = "Reason", Description = "Kick message shown to the playe...
105
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/kill.luau
luau
.luau
return { Name = "kill", Aliases = { "slay" }, Description = "Kills a player or set of players.", Group = "DefaultAdmin", Args = { { Type = "players", Name = "victims", Description = "The players to kill.", }, }, }
71
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/killServer.luau
luau
.luau
return function(_, players: { Player }): string for _, player in ipairs(players) do const character = player.Character const humanoid = character and character:FindFirstChildWhichIsA("Humanoid") if not humanoid then continue end humanoid.Health = 0 end return `Killed {#players} players.` end
79
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/teleport.luau
luau
.luau
return { Name = "teleport", Aliases = { "tp" }, Description = "Teleports a player or set of players to one target.", Group = "DefaultAdmin", AutoExec = { 'alias "bring|Brings a player or set of players to you." teleport $1{players|players|The players to bring.} ${me}', 'alias "to|Teleports you to another playe...
189
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/teleportServer.luau
luau
.luau
return function(_, fromPlayers: { Player }, destination: Player | Vector3): string local cFrame if typeof(destination) == "Instance" then if destination.Character and destination.Character:FindFirstChild("HumanoidRootPart") then cFrame = destination.Character:GetPivot() else return "Target player has no cha...
225
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/unban.luau
luau
.luau
return { Name = "unban", Description = "Unbans a player or set of players.", Group = "DefaultAdmin", Args = { { Type = "playerIds", Name = "Players", Description = "The players to unban (max 50).", }, { Type = "boolean", Name = "Apply to universe", Description = "Remove the ban across all pl...
108
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Admin/unbanServer.luau
luau
.luau
const Players = game:GetService("Players") return function(_, playerIds: { number }, applyToUniverse: boolean): string if #playerIds > 50 then return "Too many players specified. UnbanAsync limits batches to a maximum of 50 players." end const success, errorMessage = pcall(Players.UnbanAsync, Players, { UserId...
123
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Debug/fetch.luau
luau
.luau
return { Name = "fetch", Description = "Fetch a value from the Internet.", Group = "DefaultDebug", Args = { { Type = "url", Name = "URL", Description = "The URL to fetch.", }, }, }
58
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Debug/getPlayerPlaceInstance.luau
luau
.luau
return { Name = "get-player-place-instance", Description = "Returns the target player's Place ID and the JobId separated by a space. Returns 0 if the player is offline or something else goes wrong.", Group = "DefaultDebug", Args = { { Type = "playerId", Name = "Player", Description = "Get the place insta...
169
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Debug/getPlayerPlaceInstanceServer.luau
luau
.luau
const TeleportService = game:GetService("TeleportService") return function(_, playerId: number, format: string): string format = format or "PlaceIdJobId" const success, _, errorText, placeId, jobId = pcall(TeleportService.GetPlayerPlaceInstanceAsync, TeleportService, playerId) if not success or not placeId or n...
204
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Debug/position.luau
luau
.luau
const Players = game:GetService("Players") return { Name = "position", Aliases = { "pos" }, Description = "Returns the Vector3 position of you or another player.", Group = "DefaultDebug", Args = { { Type = "player", Name = "Player", Description = "The player to report the position of. Omit for your own...
164
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Debug/uptime.luau
luau
.luau
return { Name = "uptime", Description = "Returns the amount of time the server has been running.", Group = "DefaultDebug", Args = {}, }
33
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Debug/uptimeServer.luau
luau
.luau
const startTime = os.time() return function(): string const uptime = os.time() - startTime const days = uptime // 86400 const hours = uptime // 3600 % 24 const minutes = uptime // 60 % 60 const seconds = uptime % 60 return `{days}d {hours}h {minutes}m {seconds}s` end
79
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Debug/version.luau
luau
.luau
const VERSION = "v1.13.0-rc.2" return { Name = "version", Description = "Shows the current version of Cmdr.", Group = "DefaultDebug", Args = {}, ClientRun = function(): string return `Cmdr Version {VERSION}` end, }
64
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Utility/alias.luau
luau
.luau
return { Name = "alias", Description = "Creates a new, single command out of a command and given arguments.", Group = "DefaultUtil", Args = { { Type = "string", Name = "Alias name", Description = "The key or input type you'd like to bind the command to.", }, { Type = "string", Name = "Command s...
179
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Utility/bind.luau
luau
.luau
const Players = game:GetService("Players") const TextChatService = game:GetService("TextChatService") const UserInputService = game:GetService("UserInputService") local hasHelperRan = false const function runBindHelper(Cmdr) Players.PlayerRemoving:Connect(function(Player) const binds = Cmdr.Registry:GetStore("CMDR...
699
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Utility/clear.luau
luau
.luau
return { Name = "clear", Description = "Clear all lines above the entry line of the Cmdr window.", Group = "DefaultUtil", Args = {}, ClientRun = function(context: any): string const entryFrame = context.Cmdr.Gui:WaitForChild("Frame", 2) if not entryFrame then return "Failed to clear: Frame not found." end...
132
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Utility/convertTimestamp.luau
luau
.luau
return { Name = "convertTimestamp", Aliases = { "date" }, Description = "Convert a timestamp to a human-readable format.", Group = "DefaultUtil", Args = { { Type = "number", Name = "timestamp", Description = "A numerical representation of a specific moment in time.", Optional = true, }, }, Client...
120
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Utility/echo.luau
luau
.luau
return { Name = "echo", Aliases = { "=" }, Description = "Echoes your text back to you.", Group = "DefaultUtil", Args = { { Type = "string", Name = "Text", Description = "The text to echo.", }, }, ClientRun = function(_, text: string): string return text end, }
82
evaera/Cmdr
evaera-Cmdr-f565794/Cmdr/BuiltInCommands/Utility/edit.luau
luau
.luau
const Players = game:GetService("Players") const TEXT_BOX_PROPERTIES = { AnchorPoint = Vector2.new(0.5, 0.5), BackgroundColor3 = Color3.fromRGB(17, 17, 17), BackgroundTransparency = 0.05, BorderColor3 = Color3.fromRGB(17, 17, 17), BorderSizePixel = 20, ClearTextOnFocus = false, MultiLine = true, Position = UDi...
540