rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
153 stars 47 forks source link

roSGNode.update signature issues #1172

Closed TwitchBronBron closed 2 months ago

TwitchBronBron commented 2 months ago

I think we're missing an overloaded signature for the roSGNode.update function. This is valid syntax:

image

obj = CreateObject("roSGNode", "Group")
obj.update([{
    subtype: "Rectangle",
    width: "300",
    height: "400",
    translation: "[300,300]"
}, {
    subtype: "Rectangle",
    width: "300",
    height: "400",
    translation: "[300,300]"
}, {
    subtype: "Rectangle",
    width: "300",
    height: "400",
    translation: "[300,300]"
}, {
    subtype: "Rectangle",
    width: "300",
    height: "400",
    translation: "[300,300]"
}, {
    subtype: "Rectangle",
    width: "300",
    height: "400",
    translation: "[300,300]"
}, {
    subtype: "Rectangle",
    width: "300",
    height: "400",
    translation: "[300,300]"
}, {
    subtype: "Rectangle",
    width: "300",
    height: "400",
    translation: "[300,300]"
}, {
    subtype: "Rectangle",
    width: "300",
    height: "400",
    translation: "[300,300]"
}], true)