This commit is contained in:
CDeenen
2020-11-24 18:48:25 +01:00
parent 8f1a5271dd
commit 0ae6336f52
19 changed files with 52 additions and 182 deletions

View File

@@ -169,7 +169,6 @@ export class OtherControls{
if (settings.displaySceneIcon) src = scene.img;
if (scene.active) name += "\n(Active)";
}
}
else if (func == 1) { //all scenes
let scene = game.scenes.apps[1].entities.find(p=>p.data.name == name);
@@ -217,7 +216,6 @@ export class OtherControls{
//////////////////////////////////////////////////////////////////////////////////////////
updateControl(settings,context){
//if (canvas.scene == null) return;
let control = settings.control;
if (control == undefined) control = 0;
@@ -664,7 +662,6 @@ export class OtherControls{
let ringOnColor = settings.onRing;
if (ringOnColor == undefined) ringOnColor = '#00FF00';
if (compendium.rendered) ringColor = ringOnColor;
else ringColor = ringOffColor;
@@ -703,8 +700,6 @@ export class OtherControls{
let ringOnColor = settings.onRing;
if (ringOnColor == undefined) ringOnColor = '#00FF00';
if (journal.sheet.rendered) ringColor = ringOnColor;
else ringColor = ringOffColor;
@@ -719,7 +714,7 @@ export class OtherControls{
const journal = game.journal.entries.find(p=>p.name == name);
if (journal == undefined) return;
//if (journal.sheet.rendered) journal.close();
journal.render(true);
}
}