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 11{
22 "name" : " phaser-ui-comps" ,
3- "version" : " 1.0.14 " ,
3+ "version" : " 1.1.0 " ,
44 "description" : " Phaser 3 UI Components Framework and JSFL builder for Adobe Animate" ,
55 "main" : " src/phasercomps.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11import UIComponentPrototype from "./UIComponentPrototype" ;
22import UIManager from "../manager/UIManager" ;
3+ import Phaser from "phaser" ;
34
45const HIT_ZONE = "HIT_ZONE" ;
56const LABEL = "label" ;
Original file line number Diff line number Diff line change 11import UIButton from "./UIButton" ;
22import UIManager from "../manager/UIManager" ;
3-
43const _EVENT_DRAG = "event_drag" ;
54
65/**
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 " ;
33
44const _EVENT_STATE = "event_state" ;
55
@@ -25,6 +25,10 @@ export default class UIComponentPrototype extends Phaser.Events.EventEmitter {
2525
2626 static get EVENT_STATE ( ) { return _EVENT_STATE ; }
2727
28+ /**
29+ * @param {PhaserComps.UIComponents.UIComponentPrototype } parent
30+ * @param {String } key
31+ */
2832 constructor ( parent , key ) {
2933 super ( ) ;
3034
Original file line number Diff line number Diff line change 11import UIComponentPrototype from "./UIComponentPrototype" ;
2- import 'phaser' ;
32
43/**
54 * @memberOf PhaserComps.UIComponents
Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ export default class UIList extends UIComponentPrototype {
9494 * @protected
9595 * @inheritDoc
9696 */
97- destroy ( ) {
97+ destroy ( fromScene ) {
9898 this . clean ( ) ;
99- super . destroy ( ) ;
99+ super . destroy ( fromScene ) ;
100100 }
101101
102102 onItemChange ( item ) {
Original file line number Diff line number Diff line change @@ -7,13 +7,11 @@ import UIComponents from "./components/UIComponents";
77import Plugin from "./plugin/Plugin" ;
88import UIManager from "./manager/UIManager" ;
99
10- var PhaserComps = {
10+ const PhaserComps = {
1111 ComponentClip : ComponentClip ,
1212 UIComponents : UIComponents ,
1313 Plugin : Plugin ,
1414 UIManager : UIManager
1515} ;
1616
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" ;
22import ComponentClip from "../clip/ComponentClip" ;
33
44/**
You can’t perform that action at this time.
0 commit comments