diff --git a/module/sos-gm-deck.js b/module/sos-gm-deck.js index 8831e87..323323b 100644 --- a/module/sos-gm-deck.js +++ b/module/sos-gm-deck.js @@ -11,7 +11,7 @@ export class SoSGMDeck extends Dialog { title: 'GM Deck Dialog', content: html, buttons: { - 'flip-close': { label: 'Cancel and Close', callback: html => this.onFlipClose() } + 'flip-close': { label: 'Close', callback: html => this.onFlipClose() } }, default: 'flip' }; diff --git a/module/sos-main.js b/module/sos-main.js index d882870..bea3a48 100644 --- a/module/sos-main.js +++ b/module/sos-main.js @@ -38,7 +38,7 @@ 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); + //gmDeck.render(true); game.system.sos = { gmDeck: gmDeck, } @@ -117,13 +117,16 @@ Hooks.on("chatMessage", (html, content, msg) => { if (content[0] == '/') { let regExp = /(\S+)/g; let commands = content.toLowerCase().match(regExp); - if (game.system.sos.commands.processChatCommand(commands, content, msg)) { + console.log(commands); + if ( commands[0] == '/gmdeck') { + game.system.sos.gmDeck.render(true); return false; } } return true; }); + /* -------------------------------------------- */ Hooks.on("getCombatTrackerEntryContext", (html, options) => { //SoS.pushInitiativeOptions(html, options);