Options
All
  • Public
  • Public/Protected
  • All
Menu

A generic helper for drawing a standard Control Icon

Hierarchy

  • any
    • ControlIcon

Index

Constructors

  • new ControlIcon(__namedParameters?: { texture: any; size: number; borderColor: number; tint: any }, ...args: any[]): ControlIcon
  • Parameters

    • __namedParameters: { texture: any; size: number; borderColor: number; tint: any } = {}
      • texture: any
      • size: number
      • borderColor: number
      • tint: any
    • Rest ...args: any[]

    Returns ControlIcon

Properties

iconSrc: any
size: number
rect: number[]
borderColor: number
tintColor: number

The color of the icon tint, if any

eventMode: string
interactiveChildren: boolean
hitArea: Rectangle
cursor: string
bg: any
icon: any
border: any
texture: any
visible: any

Methods

  • Initial drawing of the ControlIcon

    Returns Promise<ControlIcon>

  • refresh(__namedParameters?: { visible: any; iconColor: any; borderColor: any; borderVisible: any }): ControlIcon
  • Incremental refresh for ControlIcon appearance.

    Parameters

    • __namedParameters: { visible: any; iconColor: any; borderColor: any; borderVisible: any } = {}
      • visible: any
      • iconColor: any
      • borderColor: any
      • borderVisible: any

    Returns ControlIcon