mirror of
https://github.com/centau/vide.git
synced 2026-10-21 20:01:37 +00:00
Merge branch 'main' into main
This commit is contained in:
commit
4d6ca7f875
5 changed files with 25 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
local typeof = game and typeof or require "../test/mock".typeof :: never
|
local typeof = Instance and typeof or require "../test/mock".typeof :: never
|
||||||
|
|
||||||
local flags = require "./flags"
|
local flags = require "./flags"
|
||||||
local implicit_effect = require "./implicit_effect"
|
local implicit_effect = require "./implicit_effect"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
local typeof = game and typeof or require "../test/mock".typeof :: never
|
local typeof = Instance and typeof or require "../test/mock".typeof :: never
|
||||||
|
|
||||||
local graph = require "./graph"
|
local graph = require "./graph"
|
||||||
local get_scope = graph.get_scope
|
local get_scope = graph.get_scope
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
local typeof = game and typeof or require "../test/mock".typeof :: never
|
local typeof = Instance and typeof or require "../test/mock".typeof :: never
|
||||||
local Instance = game and Instance or require "../test/mock".Instance :: never
|
local Instance = Instance or require "../test/mock".Instance :: never
|
||||||
|
|
||||||
local defaults = require "./defaults"
|
local defaults = require "./defaults"
|
||||||
local apply = require "./apply"
|
local apply = require "./apply"
|
||||||
|
|
@ -59,7 +59,7 @@ export type Instances = {
|
||||||
|
|
||||||
-- layer collectors
|
-- layer collectors
|
||||||
ScreenGui: ScreenGui,
|
ScreenGui: ScreenGui,
|
||||||
SufaceGui: SurfaceGui,
|
SurfaceGui: SurfaceGui,
|
||||||
BillboardGui: BillboardGui,
|
BillboardGui: BillboardGui,
|
||||||
|
|
||||||
-- ui objects
|
-- ui objects
|
||||||
|
|
@ -104,6 +104,18 @@ export type Instances = {
|
||||||
StyleDerive: StyleDerive,
|
StyleDerive: StyleDerive,
|
||||||
StyleLink: StyleLink,
|
StyleLink: StyleLink,
|
||||||
StyleQuery: StyleQuery,
|
StyleQuery: StyleQuery,
|
||||||
|
-- interaction
|
||||||
|
ProximityPrompt: ProximityPrompt,
|
||||||
|
|
||||||
|
-- value objs
|
||||||
|
BoolValue: BoolValue,
|
||||||
|
IntValue: IntValue,
|
||||||
|
NumberValue: NumberValue,
|
||||||
|
StringValue: StringValue,
|
||||||
|
ObjectValue: ObjectValue,
|
||||||
|
Color3Value: Color3Value,
|
||||||
|
Vector3Value: Vector3Value,
|
||||||
|
CFrameValue: CFrameValue,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type function Properties(instance: type?)
|
export type function Properties(instance: type?)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
local Enum = game and Enum or require "../test/mock".Enum :: never
|
local Enum = Enum or require "../test/mock".Enum :: never
|
||||||
local Color3 = game and Color3 or require "../test/mock".Color3 :: never
|
local Color3 = Color3 or require "../test/mock".Color3 :: never
|
||||||
|
|
||||||
return {
|
return {
|
||||||
Part = {
|
Part = {
|
||||||
|
|
|
||||||
12
src/lib.luau
12
src/lib.luau
|
|
@ -31,17 +31,17 @@ export type Instances = create.Instances
|
||||||
export type Properties<T> = create.Properties<T>
|
export type Properties<T> = create.Properties<T>
|
||||||
|
|
||||||
local function step(dt: number)
|
local function step(dt: number)
|
||||||
if game then debug.profilebegin("VIDE STEP") end
|
if debug.profilebegin then debug.profilebegin("VIDE STEP") end
|
||||||
|
|
||||||
if game then debug.profilebegin("VIDE SPRING") end
|
if debug.profilebegin then debug.profilebegin("VIDE SPRING") end
|
||||||
update_springs(dt)
|
update_springs(dt)
|
||||||
if game then debug.profileend() end
|
if debug.profileend then debug.profileend() end
|
||||||
|
|
||||||
if game then debug.profilebegin("VIDE SCHEDULER") end
|
if debug.profilebegin then debug.profilebegin("VIDE SCHEDULER") end
|
||||||
update_timeouts(dt)
|
update_timeouts(dt)
|
||||||
if game then debug.profileend() end
|
if debug.profileend then debug.profileend() end
|
||||||
|
|
||||||
if game then debug.profileend() end
|
if debug.profileend then debug.profileend() end
|
||||||
end
|
end
|
||||||
|
|
||||||
local stepped = game and game:GetService("RunService").Heartbeat:Connect(function(dt: number)
|
local stepped = game and game:GetService("RunService").Heartbeat:Connect(function(dt: number)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue