mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
thing
This commit is contained in:
parent
a5d6ae91ac
commit
a0083e1862
8 changed files with 106 additions and 9 deletions
4
.pesde/roblox_sync_config_generator.luau
Normal file
4
.pesde/roblox_sync_config_generator.luau
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
local process = require("@lune/process")
|
||||||
|
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME
|
||||||
|
|
||||||
|
require(home_dir .. "/.pesde/scripts/lune/rojo/roblox_sync_config_generator.luau")
|
||||||
4
.pesde/sourcemap_generator.luau
Normal file
4
.pesde/sourcemap_generator.luau
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
local process = require("@lune/process")
|
||||||
|
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME
|
||||||
|
|
||||||
|
require(home_dir .. "/.pesde/scripts/lune/rojo/sourcemap_generator.luau")
|
||||||
16
pesde.toml
Normal file
16
pesde.toml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
name = "alicesaidhi/vide"
|
||||||
|
version = "0.3.1-lite.646"
|
||||||
|
description = "vide with types"
|
||||||
|
authors = ["centau"]
|
||||||
|
repository = "https://github.com/centau/vide"
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
|
[target]
|
||||||
|
environment = "roblox"
|
||||||
|
|
||||||
|
[scripts]
|
||||||
|
roblox_sync_config_generator = ".pesde/roblox_sync_config_generator.luau"
|
||||||
|
sourcemap_generator = ".pesde/sourcemap_generator.luau"
|
||||||
|
|
||||||
|
[indices]
|
||||||
|
default = "https://github.com/daimond113/pesde-index"
|
||||||
|
|
@ -71,7 +71,7 @@ lines_before = [
|
||||||
"type p<T> ="+space+"T?|()->T",
|
"type p<T> ="+space+"T?|()->T",
|
||||||
"type e<T=()->()> ="+space+"T?",
|
"type e<T=()->()> ="+space+"T?",
|
||||||
"type a={priority:"+space+"number,"+space+"callback:"+space+"(Instance)"+space+"->"+space+"()}",
|
"type a={priority:"+space+"number,"+space+"callback:"+space+"(Instance)"+space+"->"+space+"()}",
|
||||||
"type recursive<T>=T|{recursive<T>}"
|
"type recursive<T> =T|{recursive<T>}"
|
||||||
"type c<T> =a|T|Recursive<Instance>|()->Recursive<Instance>",
|
"type c<T> =a|T|Recursive<Instance>|()->Recursive<Instance>",
|
||||||
"type ContentId = string", # temporary
|
"type ContentId = string", # temporary
|
||||||
"type Dictionary = {[string]: any}",
|
"type Dictionary = {[string]: any}",
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ local function create(class_or_instance: string|Instance): (Props) -> Instance
|
||||||
end
|
end
|
||||||
|
|
||||||
type Props = { [any]: any }
|
type Props = { [any]: any }
|
||||||
return (create :: any) ::
|
return (create :: any) ::
|
||||||
( (class: "CanvasGroup") -> (r.vCanvasGroup) -> CanvasGroup )
|
( (class: "CanvasGroup") -> (r.vCanvasGroup) -> CanvasGroup )
|
||||||
& ( (class: "Frame") -> (r.vFrame) -> Frame )
|
& ( (class: "Frame") -> (r.vFrame) -> Frame )
|
||||||
& ( (class: "ImageButton") -> (r.vImageButton) -> ImageButton )
|
& ( (class: "ImageButton") -> (r.vImageButton) -> ImageButton )
|
||||||
|
|
@ -102,3 +102,4 @@ return (create :: any) ::
|
||||||
& ( (class: "Part") -> (r.vPart) -> Part )
|
& ( (class: "Part") -> (r.vPart) -> Part )
|
||||||
& ( (class: "Model") -> (r.vModel) -> Model )
|
& ( (class: "Model") -> (r.vModel) -> Model )
|
||||||
& ( (class: "MeshPart") -> (r.vMeshPart) -> MeshPart )
|
& ( (class: "MeshPart") -> (r.vMeshPart) -> MeshPart )
|
||||||
|
& ( (class: "Highlight") -> (r.vHighlight) -> Highlight )
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ local action = require(script.action)()
|
||||||
local changed = require(script.changed)
|
local changed = require(script.changed)
|
||||||
local throw = require(script.throw)
|
local throw = require(script.throw)
|
||||||
local flags = require(script.flags)
|
local flags = require(script.flags)
|
||||||
|
local roblox_types = require(script.roblox_types)
|
||||||
|
|
||||||
export type Source<T> = source.Source<T>
|
export type Source<T> = source.Source<T>
|
||||||
export type source<T> = Source<T>
|
export type source<T> = Source<T>
|
||||||
|
|
@ -118,7 +119,7 @@ setmetatable(vide :: any, {
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
return vide
|
-- TYPES HERE
|
||||||
export type vCanvasGroup = roblox_types.vCanvasGroup
|
export type vCanvasGroup = roblox_types.vCanvasGroup
|
||||||
export type vFrame = roblox_types.vFrame
|
export type vFrame = roblox_types.vFrame
|
||||||
export type vImageButton = roblox_types.vImageButton
|
export type vImageButton = roblox_types.vImageButton
|
||||||
|
|
@ -166,3 +167,53 @@ export type vCamera = roblox_types.vCamera
|
||||||
export type vPart = roblox_types.vPart
|
export type vPart = roblox_types.vPart
|
||||||
export type vModel = roblox_types.vModel
|
export type vModel = roblox_types.vModel
|
||||||
export type vMeshPart = roblox_types.vMeshPart
|
export type vMeshPart = roblox_types.vMeshPart
|
||||||
|
export type vHighlight = roblox_types.vHighlight
|
||||||
|
export type vFrame = roblox_types.vFrame
|
||||||
|
export type vImageButton = roblox_types.vImageButton
|
||||||
|
export type vTextButton = roblox_types.vTextButton
|
||||||
|
export type vImageLabel = roblox_types.vImageLabel
|
||||||
|
export type vTextLabel = roblox_types.vTextLabel
|
||||||
|
export type vScrollingFrame = roblox_types.vScrollingFrame
|
||||||
|
export type vTextBox = roblox_types.vTextBox
|
||||||
|
export type vVideoFrame = roblox_types.vVideoFrame
|
||||||
|
export type vViewportFrame = roblox_types.vViewportFrame
|
||||||
|
export type vBillboardGui = roblox_types.vBillboardGui
|
||||||
|
export type vScreenGui = roblox_types.vScreenGui
|
||||||
|
export type vAdGui = roblox_types.vAdGui
|
||||||
|
export type vSurfaceGui = roblox_types.vSurfaceGui
|
||||||
|
export type vSelectionBox = roblox_types.vSelectionBox
|
||||||
|
export type vBoxHandleAdornment = roblox_types.vBoxHandleAdornment
|
||||||
|
export type vConeHandleAdornment = roblox_types.vConeHandleAdornment
|
||||||
|
export type vCylinderHandleAdornment = roblox_types.vCylinderHandleAdornment
|
||||||
|
export type vImageHandleAdornment = roblox_types.vImageHandleAdornment
|
||||||
|
export type vLineHandleAdornment = roblox_types.vLineHandleAdornment
|
||||||
|
export type vSphereHandleAdornment = roblox_types.vSphereHandleAdornment
|
||||||
|
export type vWireframeHandleAdornment = roblox_types.vWireframeHandleAdornment
|
||||||
|
export type vParabolaAdornment = roblox_types.vParabolaAdornment
|
||||||
|
export type vSelectionSphere = roblox_types.vSelectionSphere
|
||||||
|
export type vArcHandles = roblox_types.vArcHandles
|
||||||
|
export type vHandles = roblox_types.vHandles
|
||||||
|
export type vSurfaceSelection = roblox_types.vSurfaceSelection
|
||||||
|
export type vPath2D = roblox_types.vPath2D
|
||||||
|
export type vUIAspectRatioConstraint = roblox_types.vUIAspectRatioConstraint
|
||||||
|
export type vUISizeConstraint = roblox_types.vUISizeConstraint
|
||||||
|
export type vUITextSizeConstraint = roblox_types.vUITextSizeConstraint
|
||||||
|
export type vUICorner = roblox_types.vUICorner
|
||||||
|
export type vUIDragDetector = roblox_types.vUIDragDetector
|
||||||
|
export type vUIFlexItem = roblox_types.vUIFlexItem
|
||||||
|
export type vUIGradient = roblox_types.vUIGradient
|
||||||
|
export type vUIListLayout = roblox_types.vUIListLayout
|
||||||
|
export type vUIGridLayout = roblox_types.vUIGridLayout
|
||||||
|
export type vUIPageLayout = roblox_types.vUIPageLayout
|
||||||
|
export type vUITableLayout = roblox_types.vUITableLayout
|
||||||
|
export type vUIPadding = roblox_types.vUIPadding
|
||||||
|
export type vUIScale = roblox_types.vUIScale
|
||||||
|
export type vUIStroke = roblox_types.vUIStroke
|
||||||
|
export type vWorldModel = roblox_types.vWorldModel
|
||||||
|
export type vCamera = roblox_types.vCamera
|
||||||
|
export type vPart = roblox_types.vPart
|
||||||
|
export type vModel = roblox_types.vModel
|
||||||
|
export type vMeshPart = roblox_types.vMeshPart
|
||||||
|
export type vHighlight = roblox_types.vHighlight
|
||||||
|
|
||||||
|
return vide
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
type p<T> = T?|()->T -- property
|
type p<T> = T?|()->T
|
||||||
type e<T=()->()> = T? -- event
|
type e<T=()->()> = T?
|
||||||
type a={priority: number, callback: (Instance) -> ()}
|
type a={priority: number, callback: (Instance) -> ()}
|
||||||
type Recursive<T> = T | {Recursive<T>}
|
type recursive<T> =T|{recursive<T>}type c<T> =a|T|Recursive<Instance>|()->Recursive<Instance>
|
||||||
type c<T> =a|T|Recursive<Instance>|()->Recursive<Instance>
|
type ContentId = string
|
||||||
type Dictionary = {[string]: any}
|
type Dictionary = {[string]: any}
|
||||||
type Array = {any}
|
type Array = {any}
|
||||||
|
|
||||||
export type vCanvasGroup = {
|
export type vCanvasGroup = {
|
||||||
GroupColor3: p<Color3>,
|
GroupColor3: p<Color3>,
|
||||||
GroupTransparency: p<number>,
|
GroupTransparency: p<number>,
|
||||||
|
|
@ -1761,5 +1760,27 @@ export type vMeshPart = {
|
||||||
Destroying: e<() -> ()>,
|
Destroying: e<() -> ()>,
|
||||||
[number]: c<vMeshPart>
|
[number]: c<vMeshPart>
|
||||||
|
|
||||||
|
}
|
||||||
|
export type vHighlight = {
|
||||||
|
Adornee: p<Instance?>,
|
||||||
|
DepthMode: p<Enum.HighlightDepthMode>,
|
||||||
|
Enabled: p<boolean>,
|
||||||
|
FillColor: p<Color3>,
|
||||||
|
FillTransparency: p<number>,
|
||||||
|
OutlineColor: p<Color3>,
|
||||||
|
OutlineTransparency: p<number>,
|
||||||
|
Archivable: p<boolean>,
|
||||||
|
Name: p<string | number>,
|
||||||
|
Parent: p<Instance?>,
|
||||||
|
AncestryChanged: e<(child:Instance?,parent:Instance?) -> ()>,
|
||||||
|
AttributeChanged: e<(attribute:string | number) -> ()>,
|
||||||
|
Changed: e<(property:string | number) -> ()>,
|
||||||
|
ChildAdded: e<(child:Instance?) -> ()>,
|
||||||
|
ChildRemoved: e<(child:Instance?) -> ()>,
|
||||||
|
DescendantAdded: e<(descendant:Instance?) -> ()>,
|
||||||
|
DescendantRemoving: e<(descendant:Instance?) -> ()>,
|
||||||
|
Destroying: e<() -> ()>,
|
||||||
|
[number]: c<vHighlight>
|
||||||
|
|
||||||
}
|
}
|
||||||
return{}
|
return{}
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "alicesaidhi/vide"
|
name = "alicesaidhi/vide"
|
||||||
description = "Fork of vide, comes with Roblox Instance Types"
|
description = "Fork of vide, comes with Roblox Instance Types"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
version = "0.3.1-lite.646"
|
version = "0.3.1-lite.649"
|
||||||
registry = "https://github.com/UpliftGames/wally-index"
|
registry = "https://github.com/UpliftGames/wally-index"
|
||||||
realm = "shared"
|
realm = "shared"
|
||||||
include = ["default.project.json", "LICENSE", "src"]
|
include = ["default.project.json", "LICENSE", "src"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue