mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 03:23:42 +00:00
Add typedef of onStart parameter
This commit is contained in:
parent
558589f851
commit
b1916a9d14
2 changed files with 10 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
* @property {boolean} [moveBelow] - Move the target Scene to be below this one before the transition starts.
|
||||
* @property {function} [onUpdate] - This callback is invoked every frame for the duration of the transition.
|
||||
* @property {any} [onUpdateScope] - The context in which the callback is invoked.
|
||||
* @property {function} [onStart] - This callback is invoked when transition starting.
|
||||
* @property {Phaser.Types.Scenes.SceneTransitionStartCallback} [onStart] - This callback is invoked when transition starting.
|
||||
* @property {any} [onStartScope] - The context in which the callback is invoked.
|
||||
* @property {any} [data] - An object containing any data you wish to be passed to the target scene's init / create methods (if sleep is false) or to the target scene's wake event callback (if sleep is true).
|
||||
*/
|
||||
|
|
9
src/scene/typedefs/SceneTransitionStartCallback.js
Normal file
9
src/scene/typedefs/SceneTransitionStartCallback.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
/**
|
||||
* @callback Phaser.Types.Scenes.SceneTransitionOnStartCallback
|
||||
* @since 3.60.0
|
||||
*
|
||||
* @this Phaser.Scene
|
||||
* @param {Phaser.Scene} fromScene - Scene instance to transition from.
|
||||
* @param {Phaser.Scene} toScene - Scene instance to transition to.
|
||||
* @property {number} [duration=1000] - The duration, in ms, for the transition to last.
|
||||
*/
|
Loading…
Reference in a new issue