This commit is contained in:
CDeenen
2020-12-12 19:16:07 +01:00
parent 91e07e79c5
commit e62e82795b
4 changed files with 24 additions and 8 deletions

View File

@@ -65,6 +65,7 @@ export class MacroControl{
if (macroId != undefined){
let macro = game.macros._source.find(p => p._id == macroId);
if (macro != undefined) {
console.log(macro);
name += macro.name;
src += macro.img;
}

View File

@@ -359,8 +359,14 @@ export class soundboardConfigForm extends FormApplication {
else if (this.settings.selectedPlaylists[iteration] == 'FP') selectedPlaylist = 'FP';
else {
const pl = game.playlists.entities.find(p => p._id == this.settings.selectedPlaylists[iteration]);
selectedPlaylist = pl._id;
sounds = pl.sounds;
if (pl == undefined){
selectedPlaylist = 'none';
sounds = [];
}
else {
sounds = pl.sounds;
selectedPlaylist = pl._id;
}
}
let styleSS = "";
let styleFP ="display:none";