Jil
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Node
  • Transform
  • Clickable
  • TransformTween
    • JilButton

Index

Constructors

constructor

  • new JilButton(id: string, params: any, parent: Node, projector: Projector | undefined): JilButton

Properties

anchor

anchor: Vector2Extend = new Vector2Extend()

enable

enable: boolean = true

Optional id

id: string

opacity

opacity: number = 1

pivot

pivot: Vector2Extend = new Vector2Extend()

position

position: Vector2Extend = new Vector2Extend()

positionPx

positionPx: Vector2 = new Vector2()

rotation

rotation: number = 0

scale

scale: Vector2 = new Vector2()

size

size: Vector2Extend = new Vector2Extend()

sizePx

sizePx: Vector2 = new Vector2()

text

text: any

this

this: any

Methods

addChild

  • addChild(element: Node): void

click

  • click(): void

destroy

  • destroy(): void

hide

  • hide(duration?: number, autostart?: boolean, autokill?: boolean): ITween
  • Parameters

    • Default value duration: number = 150
    • Default value autostart: boolean = true
    • Default value autokill: boolean = true

    Returns ITween

move

  • move(x?: number, y?: number, duration?: number, autostart?: boolean, autokill?: boolean): ITween
  • Parameters

    • Default value x: number = 0
    • Default value y: number = 0
    • Default value duration: number = 250
    • Default value autostart: boolean = true
    • Default value autokill: boolean = true

    Returns ITween

moveX

  • moveX(x?: number, duration?: number, autostart?: boolean, autokill?: boolean): ITween
  • Parameters

    • Default value x: number = 0
    • Default value duration: number = 250
    • Default value autostart: boolean = true
    • Default value autokill: boolean = false

    Returns ITween

moveY

  • moveY(y?: number, duration?: number, autostart?: boolean, autokill?: boolean): ITween
  • Parameters

    • Default value y: number = 0
    • Default value duration: number = 250
    • Default value autostart: boolean = true
    • Default value autokill: boolean = false

    Returns ITween

onClick

  • onClick(cb: function): void

onDestroy

  • onDestroy(cb: function): void

onLoad

  • onLoad(cb: function): void

refresh

  • refresh(): void

removeChild

  • removeChild(element: Node): void

rotate

  • rotate(duration?: number, autostart?: boolean, autokill?: boolean): ITween
  • Parameters

    • Default value duration: number = 150
    • Default value autostart: boolean = true
    • Default value autokill: boolean = true

    Returns ITween

show

  • show(duration?: number, autostart?: boolean, autokill?: boolean): ITween
  • Parameters

    • Default value duration: number = 150
    • Default value autostart: boolean = true
    • Default value autokill: boolean = true

    Returns ITween

toString

  • toString(): string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc