Manage GM cards
This commit is contained in:
parent
d7131d4675
commit
56eb2aeef1
@ -29,7 +29,7 @@ export class SoSGMDeck extends Dialog {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
onFlipClose() {
|
onFlipClose() {
|
||||||
this.close();
|
this.minimize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
@ -38,7 +38,6 @@ Hooks.once("init", async function () {
|
|||||||
// Create useful storage space
|
// Create useful storage space
|
||||||
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/gm-deck.html', {} );
|
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/gm-deck.html', {} );
|
||||||
let gmDeck = new SoSGMDeck(html);
|
let gmDeck = new SoSGMDeck(html);
|
||||||
//gmDeck.render(true);
|
|
||||||
game.system.sos = {
|
game.system.sos = {
|
||||||
gmDeck: gmDeck,
|
gmDeck: gmDeck,
|
||||||
}
|
}
|
||||||
@ -119,7 +118,7 @@ Hooks.on("chatMessage", (html, content, msg) => {
|
|||||||
let commands = content.toLowerCase().match(regExp);
|
let commands = content.toLowerCase().match(regExp);
|
||||||
console.log(commands);
|
console.log(commands);
|
||||||
if ( commands[0] == '/gmdeck') {
|
if ( commands[0] == '/gmdeck') {
|
||||||
game.system.sos.gmDeck.render(true);
|
game.system.sos.gmDeck.render( true );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user