File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,10 @@ export default class UIButton extends UIComponentPrototype {
121
121
return this . _hitZone ? this . _hitZone . getBounds ( ) : null ;
122
122
}
123
123
124
+ get lockClip ( ) {
125
+ return this . _hitZone ;
126
+ }
127
+
124
128
/**
125
129
* @method PhaserComps.UIComponents.UIButton#_updateInteractive
126
130
* @private
Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ export default class UIComponentPrototype extends Phaser.Events.EventEmitter {
100
100
*/
101
101
get lockClipBounds ( ) { return null ; } // override
102
102
103
+ /** @return {Phaser.GameObjects.GameObject|* } */
104
+ get lockClip ( ) { return null ; } // override
105
+
103
106
/** @param {string } value */
104
107
set lockId ( value ) {
105
108
if ( this . _lockId === value ) {
Original file line number Diff line number Diff line change @@ -84,4 +84,13 @@ export default class UIManager {
84
84
return proto ? proto . lockClipBounds : null ;
85
85
}
86
86
87
+ /**
88
+ * @param {string } id
89
+ * @returns {Phaser.GameObjects.GameObject|* }
90
+ */
91
+ static getClipById ( id ) {
92
+ const proto = this . getById ( id ) ;
93
+ return proto ? proto . lockClip : null ;
94
+ }
95
+
87
96
}
You can’t perform that action at this time.
0 commit comments