Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Aug 14, 2023
1 parent 8393ced commit 648c620
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/docs/containerlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,10 @@ Current children and new children will draw on this layer, instead of display li
```javascript
var layer = container.privateRenderLayer;
```
- Has layer game object
```javascript
var hasLayer = container.hasLayer();
```

### Mask

Expand Down
2 changes: 1 addition & 1 deletion examples/ui-dialog/yes-no-modal-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Demo extends Phaser.Scene {
CreateDialog(this)
.setPosition(400, 300)
.layout()
.enableLayer()
// .enableLayer()
.modalPromise({
// defaultBehavior: false,
manaulClose: true,
Expand Down
2 changes: 1 addition & 1 deletion plugins/behaviors/modal/CreateCover.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var CreateCover = function (gameObject, config) {
if (gameObject.hasLayer()) {
gameObject.addToRenderLayer(cover);
}
gameObject.sendChildToBack(cover);
gameObject.moveDepthBelow(cover);
} else {
scene.children.moveBelow(cover, gameObject);
}
Expand Down

0 comments on commit 648c620

Please sign in to comment.