Use type functions for vide.create

This commit is contained in:
centauri 2025-11-26 12:35:34 +00:00
parent c16022586e
commit d7d2f5167e
2 changed files with 87 additions and 73 deletions

View file

@ -46,7 +46,7 @@ end
local vide = require "../src/"
local count = vide.source(0)
create("TextButton") {
create("TextButton") { -- todo: why is `:: "TextButton"` not necessary?
BackgroundTransparency = 1,
AnchorPoint = "bad value", -- should error
InvalidProperty = true, -- should error