File tree Expand file tree Collapse file tree 8 files changed +13
-12
lines changed Expand file tree Collapse file tree 8 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " phaser-ui-comps" ,
3
- "version" : " 1.0.14 " ,
3
+ "version" : " 1.1.0 " ,
4
4
"description" : " Phaser 3 UI Components Framework and JSFL builder for Adobe Animate" ,
5
5
"main" : " src/phasercomps.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1
1
import UIComponentPrototype from "./UIComponentPrototype" ;
2
2
import UIManager from "../manager/UIManager" ;
3
+ import Phaser from "phaser" ;
3
4
4
5
const HIT_ZONE = "HIT_ZONE" ;
5
6
const LABEL = "label" ;
Original file line number Diff line number Diff line change 1
1
import UIButton from "./UIButton" ;
2
2
import UIManager from "../manager/UIManager" ;
3
-
4
3
const _EVENT_DRAG = "event_drag" ;
5
4
6
5
/**
Original file line number Diff line number Diff line change 1
- import "phaser" ;
2
- import UIManager from "../manager/UIManager " ;
1
+ import Phaser from "phaser" ;
2
+ import PhaserComps from "../phasercomps " ;
3
3
4
4
const _EVENT_STATE = "event_state" ;
5
5
@@ -25,6 +25,10 @@ export default class UIComponentPrototype extends Phaser.Events.EventEmitter {
25
25
26
26
static get EVENT_STATE ( ) { return _EVENT_STATE ; }
27
27
28
+ /**
29
+ * @param {PhaserComps.UIComponents.UIComponentPrototype } parent
30
+ * @param {String } key
31
+ */
28
32
constructor ( parent , key ) {
29
33
super ( ) ;
30
34
Original file line number Diff line number Diff line change 1
1
import UIComponentPrototype from "./UIComponentPrototype" ;
2
- import 'phaser' ;
3
2
4
3
/**
5
4
* @memberOf PhaserComps.UIComponents
Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ export default class UIList extends UIComponentPrototype {
94
94
* @protected
95
95
* @inheritDoc
96
96
*/
97
- destroy ( ) {
97
+ destroy ( fromScene ) {
98
98
this . clean ( ) ;
99
- super . destroy ( ) ;
99
+ super . destroy ( fromScene ) ;
100
100
}
101
101
102
102
onItemChange ( item ) {
Original file line number Diff line number Diff line change @@ -7,13 +7,11 @@ import UIComponents from "./components/UIComponents";
7
7
import Plugin from "./plugin/Plugin" ;
8
8
import UIManager from "./manager/UIManager" ;
9
9
10
- var PhaserComps = {
10
+ const PhaserComps = {
11
11
ComponentClip : ComponentClip ,
12
12
UIComponents : UIComponents ,
13
13
Plugin : Plugin ,
14
14
UIManager : UIManager
15
15
} ;
16
16
17
- export default PhaserComps ;
18
-
19
- global . PhaserComps = PhaserComps ;
17
+ export default PhaserComps ;
Original file line number Diff line number Diff line change 1
- import "phaser" ;
1
+ import Phaser from "phaser" ;
2
2
import ComponentClip from "../clip/ComponentClip" ;
3
3
4
4
/**
You can’t perform that action at this time.
0 commit comments