Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ export type source<T> = vide.source<T>
export type Source<T> = vide.Source<T>
export type context<T> = vide.context<T>
export type Context<T> = vide.Context<T>
export type Instances = vide.Instances
export type Properties<T> = vide.Properties<T>

return vide
16 changes: 14 additions & 2 deletions src/create.luau
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ local function create(class_or_instance: string|Instance, properties: { [unknown
else constructor
end

type Instances = {
export type Instances = {
Folder: Folder,
BillboardGui: BillboardGui,
CanvasGroup: CanvasGroup,
Expand All @@ -70,11 +70,23 @@ type Instances = {
UIGradient: UIGradient,
UIGridLayout: UIGridLayout,
UIListLayout: UIListLayout,
UISizeConstraint: UISizeConstraint,
UITextSizeConstraint: UITextSizeConstraint,
UIScale: UIScale,
UIPadding: UIPadding,
UIStroke: UIStroke,
UIFlexItem: UIFlexItem,
UIPageLayout: UIPageLayout,
UITableLayout: UITableLayout,
VideoFrame: VideoFrame,
ViewportFrame: ViewportFrame,
ProximityPrompt: ProximityPrompt,
UIDragDetector: UIDragDetector,
Camera: Camera,
WorldModel: WorldModel,
}

type function Properties(instance: type?)
export type function Properties(instance: type?)
local properties = types.newtable()

while instance do
Expand Down
4 changes: 3 additions & 1 deletion src/init.luau
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
assert(game, "when using vide outside of Roblox, require lib.luau instead")

local vide = require(script.lib)
local vide = require("@self/lib")

export type source<T> = vide.source<T>
export type Source<T> = vide.Source<T>
export type context<T> = vide.context<T>
export type Context<T> = vide.Context<T>
export type Instances = vide.Instances
export type Properties<T> = vide.Properties<T>

return vide
2 changes: 2 additions & 0 deletions src/lib.luau
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export type Source<T> = source.Source<T>
export type source<T> = Source<T>
export type Context<T> = context.Context<T>
export type context<T> = Context<T>
export type Instances = create.Instances
export type Properties<T> = create.Properties<T>

local function step(dt: number)
if game then debug.profilebegin("VIDE STEP") end
Expand Down
Loading