Skip to content

Commit

Permalink
Fixes for initial render
Browse files Browse the repository at this point in the history
  • Loading branch information
Toon324 committed Jul 20, 2020
1 parent dc3c00a commit d7a6638
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"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.1.2",
"version": "1.1.3",
"minimumCoreVersion": "0.6.2",
"compatibleCoreVersion": "0.6.0",
"author": "Cody Swendrowski <[email protected]>",
Expand All @@ -24,5 +24,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.1.2/module.zip"
"download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/1.1.3/module.zip"
}
6 changes: 6 additions & 0 deletions tabbed-chatlog.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ Hooks.on("renderChatLog", async function(chatLog, html, user) {
else if (tab == "ic") {
$(".type0").hide();
$(".type1").hide();
$(".type2.scene" + game.user.viewedScene).removeClass("hardHide");
$(".type2.scene" + game.user.viewedScene).show();
$(".type3.scene" + game.user.viewedScene).removeClass("hardHide");
$(".type3.scene" + game.user.viewedScene).show();
$(".type4").hide();
$(".type5").hide();
Expand Down Expand Up @@ -164,11 +166,15 @@ Hooks.on("renderSceneNavigation", (sceneNav, html, data) => {

$(".scenespecific").hide();
if (currentTab == "rolls") {
$(".type0.scene" + game.user.viewedScene).removeClass("hardHide");
$(".type0.scene" + viewedScene.id).show();
$(".type5.scene" + game.user.viewedScene).removeClass("hardHide");
$(".type5.scene" + viewedScene.id).show();
}
else if (currentTab == "ic") {
$(".type2.scene" + game.user.viewedScene).removeClass("hardHide");
$(".type2.scene" + viewedScene.id).show();
$(".type3.scene" + game.user.viewedScene).removeClass("hardHide");
$(".type3.scene" + viewedScene.id).show();
}
});

0 comments on commit d7a6638

Please sign in to comment.