API Docs for:
Show:

Component_PanelBehavior Class

Module: gs

A panel-component gives a game-object the same capabilities like a visual object but has no graphical representation. So a panel has a position and a size.

It can be used to make invisible hotspot-areas or modal-blocking areas for example.

Methods

dispose

()

Disposes the component.

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.

setup

()

Initializes the panel component.

setupEventHandlers

()

Adds event-handlers for mouse/touch events