Manage GM cards

This commit is contained in:
sladecraven 2021-03-08 23:42:38 +01:00
parent d7131d4675
commit 56eb2aeef1
2 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,7 @@ export class SoSGMDeck extends Dialog {
/* -------------------------------------------- */
onFlipClose() {
this.close();
this.minimize();
}
/* -------------------------------------------- */

View File

@ -38,7 +38,6 @@ Hooks.once("init", async function () {
// Create useful storage space
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/gm-deck.html', {} );
let gmDeck = new SoSGMDeck(html);
//gmDeck.render(true);
game.system.sos = {
gmDeck: gmDeck,
}
@ -119,7 +118,7 @@ Hooks.on("chatMessage", (html, content, msg) => {
let commands = content.toLowerCase().match(regExp);
console.log(commands);
if ( commands[0] == '/gmdeck') {
game.system.sos.gmDeck.render(true);
game.system.sos.gmDeck.render( true );
return false;
}
}