diff --git a/module.json b/module.json index 91695bb..78c4fd3 100644 --- a/module.json +++ b/module.json @@ -2,9 +2,9 @@ "name": "tabbed-chatlog", "title": "Tabbed Chatlog", "description": "Splits the Chatlog into In Character (per scene), Rolls (per scene), and Out of Character (global).", - "version": "1.5.5", + "version": "1.5.6", "minimumCoreVersion": "0.6.2", - "compatibleCoreVersion": "0.7.5", + "compatibleCoreVersion": "0.7.7", "author": "Cody Swendrowski ", "esmodules": [ "./tabbed-chatlog.js" @@ -28,5 +28,5 @@ ], "url": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog", "manifest": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/latest/module.json", - "download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/1.5.5/module.zip" + "download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/1.5.6/module.zip" } diff --git a/tabbed-chatlog.js b/tabbed-chatlog.js index 3c9db8b..19d999c 100644 --- a/tabbed-chatlog.js +++ b/tabbed-chatlog.js @@ -120,6 +120,7 @@ Hooks.on("renderChatMessage", (chatMessage, html, data) => { } else if (data.message.type == 5 && sceneMatches) { if (!html.hasClass('gm-roll-hidden')) { + if (game.dice3d && !game.settings.get("dice-so-nice", "immediatelyDisplayChatMessages")) return; html.css("display", "list-item"); } } @@ -148,6 +149,12 @@ Hooks.on("renderChatMessage", (chatMessage, html, data) => { } }); +Hooks.on("diceSoNiceRollComplete", (id) => { + if (currentTab != "rolls") { + $("#chat-log .message[data-message-id=" + id + "]").css("display", "none"); + } +}); + Hooks.on("createChatMessage", (chatMessage, content) => { var sceneMatches = true;