Skip to content

Commit 2f40821

Browse files
Merge branch 'fix-z-index' into 'master'
[FIX][SDK] fixed zIndex not working in buffered Groups See merge request codingame/game-engine!311
2 parents 9bb13f2 + 8077e02 commit 2f40821

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

engine/modules/entities/src/main/resources/view/entity-module/BufferedGroup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export class BufferedGroup extends ContainerBasedEntity {
77
initDisplay () {
88
super.initDisplay()
99
this.buffer = new PIXI.Container()
10+
this.buffer.sortableChildren = true
1011
this.gameTexture = null
1112
this.graphics = new PIXI.Sprite()
1213
this.needsRender = true

engine/modules/entities/src/main/resources/view/entity-module/GraphicEntityModule.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export class GraphicEntityModule {
167167
e.childrenContainer.addChild(child.container)
168168
child.parent = e
169169
})
170+
e.notifyChange()
170171
}
171172
})
172173

playground/misc/misc-3-release-notes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
The CodinGame SDK is regularly updated and improved. This document lets you know what changed in the latest releases.
44

5+
## Next Release
6+
7+
### 🐞 Bug fix
8+
9+
- Fixed zIndexing in `BufferedGroups`.
10+
511
## 4.2.0
612

713
### 🎁 Features

0 commit comments

Comments
 (0)