Class: ElementCreator

menumanager~ElementCreator(elementId, iniObj, className, srcDir)

Handles the creation of the main menu and transition elements. Also handles actual control of the main menu elements.

Constructor

new ElementCreator(elementId, iniObj, className, srcDir)

Parameters:
Name Type Description
elementId string ID of the element to get and create for.
iniObj Object Object of .ini file.
className string Class name of the elements to create.
srcDir string Source directory of elements to load from.
Source:
Tutorials:
To Do:
  • All of the associated variables should be previate.

Members

_className :string

The class name associated with the elements we'll be creating.
Type:
  • string
Source:

_element :Element

The element we're going to be creating our derived elements from (using module:menumanager~ElementCreator#drawElements).
Type:
  • Element
Source:

_iniObj :Object

The ini object file we're creating elements from in module:menumanager~ElementCreator#drawElements.
Type:
  • Object
Source:
Tutorials:

_srcDir :string

The source directory to load assets from.
Type:
  • string
Source:

elements :Array:.<Element:>

Child elements that this class has created.
Type:
  • Array:.<Element:>
Source:

Methods

drawElements()

Source: