Extends
Classes
Members
-
_eventsManager DKTools.EventsManager privatereadonly
-
Methods
-
activate () inherited
-
Activates the scene
- Since:
- 8.0.0
-
Adds the animation
Name Type Description animationDKTools.Animation Animation to add - Since:
- 2.0.0
-
addEvent (object)DKTools.Event
-
Adds the event
Name Type Description objectDKTools.Event | Object Event or object with parameters for the event Name Type Description typeString optional Type of the event repeatTimeNumber optional Time of one repeat repeatsNumber optional Amount of repeats remainingPauseTimeNumber optional Remaining time of pause onStartfunction optional Handler of the event start onUpdatefunction optional Handler of the event update onPausefunction optional Handler of the event pause onResetfunction optional Handler of the event reset onRepeatfunction optional Handler of the event repeat onSuccessfunction optional Handler of the event success onFailfunction optional Handler of the event fail - Since:
- 2.0.0
Returns:
Type Description DKTools.Event Added event -
addOneTimeEvent (object)DKTools.Event
-
Adds the one time event
Name Type Description objectDKTools.Event | Object Event or object with parameters for the event Name Type Description typeString optional Type of the event remainingPauseTimeNumber optional Remaining time of pause onStartfunction optional Handler of the event start onUpdatefunction optional Handler of the event update onPausefunction optional Handler of the event pause onResetfunction optional Handler of the event reset onRepeatfunction optional Handler of the event repeat onSuccessfunction optional Handler of the event success onFailfunction optional Handler of the event fail - Since:
- 2.0.0
Returns:
Type Description DKTools.Event Added event -
Returns calculated window height
Name Type Default Description numLinesNumber 1 optional Window lines selectableBoolean false optional Selectable window - Since:
- 11.1.0
Returns:
Type Description Number Calculated window height -
Creates all
-
Creates all sprites
-
Creates all windows
-
Creates the background
- Version:
- 11.1.0
-
Creates the foreground
-
Creates the help window
Name Type Default Description windowClassfunction Window class rowsNumber 2 optional Visible rows - Since:
- 11.1.0
-
deactivate () inherited
-
Deactivates the scene
- Since:
- 8.0.0
-
Returns true if the scene has the layer of windows
Returns:
Type Description Boolean Scene has the layer of windows -
- Since:
- 11.1.0
Returns:
Type Description Number -
- Since:
- 11.1.0
Returns:
Type Description Number -
- Since:
- 11.1.0
Returns:
Type Description Number -
Returns the rect of the help window
Name Type Description rowsNumber Visible rows - Since:
- 11.1.0
Returns:
Type Description Rectangle Rect of the help window -
Initializes a class object
-
Returns true if the object (parameter) is child of scene
Name Type Description objectSprite | Window Object Returns:
Type Description Boolean Object (parameter) is child of scene -
isPreloaded ()Boolean inherited
-
Returns true if the scene is preloaded
- Since:
- 6.1.0
Returns:
Type Description Boolean Scene is preloaded -
- Since:
- 11.1.0
Returns:
Type Description Number -
- Since:
- 11.1.0
Returns:
Type Description Number -
- Since:
- 11.1.0
Returns:
Type Description Number -
Returns true if needs create the background
- Since:
- 11.1.0
Returns:
Type Description Boolean Needs create the background -
Removes the window from the scene Returns true if the window is removed
Name Type Description windowDKTools.Window | * Window to remove - Version:
- 8.3.0
Returns:
Type Description Boolean Window is removed -
setupPreloading () inherited
-
Setups for the preloading
- Since:
- 6.1.0
Example
var bitmap = ImageManager.loadSystem('Window') this._preloader.add(bitmap); -
startPreloading () inherited
-
Starts the preloading
- Since:
- 6.1.0
-
Updates the scene
- Version:
- 10.0.0
-
Updates the events
- Since:
- 2.0.0
-
Updates the events with type: queue
- Version:
- 8.3.0
- Since:
- 2.0.0
-
Updates the events with type: ready
- Version:
- 8.3.0
- Since:
- 2.0.0
-
Updates the events with type: update
- Version:
- 8.3.0
- Since:
- 2.0.0