Skip to content

Commit

Permalink
🐛 Set background for the root room only
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Aug 16, 2020
1 parent baab5ef commit 4ffc1a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/data/ct.release/rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class Room extends PIXI.Container {
this.onLeave = template.onLeave;
this.template = template;
this.name = template.name;
ct.pixiApp.renderer.backgroundColor = Number('0x' + this.template.backgroundColor.slice(1));
if (this === ct.room) {
ct.pixiApp.renderer.backgroundColor = Number('0x' + this.template.backgroundColor.slice(1));
}
/*%beforeroomoncreate%*/
for (let i = 0, li = template.bgs.length; i < li; i++) {
const bg = new ct.types.Background(
Expand Down

0 comments on commit 4ffc1a2

Please sign in to comment.