melonJS
    Preparing search index...

    Type Alias UISpriteElementSettings

    UISpriteElementSettings: { enabled?: boolean; image: any; [key: string]: any } & UIJuiceSettings

    Settings for a UISpriteElement: the Sprite settings for its image, plus the bounce shared by every UI element.

    Type Declaration

    • [key: string]: any
    • Optionalenabled?: boolean

      Whether the element starts turned on.

      true
      
    • image: any

      The image: a loader key, an image, or a TextureAtlas (with region). Every other Sprite setting is accepted too: region, framewidth, frameheight, anchorPoint, tint...