Class: Scenes

markus.elements.Scenes

Scenes Manager for MarkusJS. Children of this element are separate scenes that can be switched.

new markus.elements.Scenes ()

Example
scenes(scene = A)
  block(id=A)
    text | SCENE A
  block(id=B)
    text | SCENE B

mark.get('scenes').scene = 'B';

Extends

  • PIXI.Container

Mixes In

Members

this.childList Array.<Element>

Childs list

this.element string readonly

Element name

this.id string readonly

Element id

this.mark markus.View

Root view class

this.parentElement Element

Parent node

this.presets markus.View

Presets list

this.props Array.<function()> readonly

Element properties from markus markup

scene string

Editable prop. Current scene id

scenes Array.<Preset>

Scenes presets

this.tags Array.<string>

Element tags

this.ticks Array.<function()>

Аrray of functions called every tick

Methods

addTag (props)

Add tag to tags list and app mixin props

Name Type Description
props string

tagName

addTick (cb)

Add function to ticks array

Name Type Description
cb funciton

Every tick is called

removeTag (props)

Remove tag from tags list and reuse mixins props

Name Type Description
props string

tagName

setProps (props)

Set props to element

Name Type Description
props Object

Props object