API Docs for:
Show:

Object_ImageMap Class

Module: gs

An image-map object to display an image-map on screen.

Methods

onDataBundleRestore.

(
  • Object
  • gs.ObjectCodecContext
)

Called if this object instance is restored from a data-bundle. It can be used re-assign event-handler, anonymous functions, etc.

Parameters:

  • Object Object

    data - The data-bundle

  • gs.ObjectCodecContext Object

    context - The codec-context.

Properties

animator

vn.Component_Animator

The object's animator-component to execute different kind of animations like move, rotate, etc. on it.

animator

vn.Component_Animator

Provided by the ui module.

The object's animator-component to execute different kind of animations like move, rotate, etc. on it.

color

gs.Color

Provided by the ui module.

The color of the object used for the visual presentation.

color

gs.Color

The color of the object used for the visual presentation.

domain

String

The domain the object belongs to.

events

gs.Component_EventEmitter

An event-emitter to emit events.

hotspots

gs.ImageMapHotspot

The hotspot data of the image-map. Each entry is a single hotspot on the image-map.

hotspots

gs.ImageMapHotspot

Provided by the ui module.

The hotspot data of the image-map. Each entry is a single hotspot on the image-map.

images

String

The names of the images used for the different states of the image-map.

  • 0 = Ground Image
  • 1 = Hovered
  • 2 = Unselected
  • 3 = Selected
  • 4 = Selected Hovered

images

String

Provided by the ui module.

The names of the images used for the different states of the image-map.

  • 0 = Ground Image
  • 1 = Hovered
  • 2 = Unselected
  • 3 = Selected
  • 4 = Selected Hovered

tone

gs.Tone

The color tone of the object used for the visual presentation.

tone

gs.Tone

Provided by the ui module.

The color tone of the object used for the visual presentation.

visual

gs.Component_ImageMap

Provided by the ui module.

The object's visual-component to display the game object on screen.

visual

gs.Component_ImageMap

The object's visual-component to display the game object on screen.