Skip to content

Define visible for the Stage class #211

@adroitwhiz

Description

@adroitwhiz

There are a couple places in the codebase where we have an object that is a Sprite or a Stage, and we need to check if it's visible. Because visible is only defined for Sprite, this is awkward and requires us to do "visible" in target ? target.visible : true.

Instead, we could define a visible getter for Stage that always returns true, and just omit the setter. If JS allows it, we may be able to just define the getter on SpriteBase and only define the setter on Sprite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions