Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
v2.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltepeter committed Jun 9, 2020
1 parent 5bba9d1 commit b3f5a06
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2.6.9
- Fix console error when moving token outside of combat

# 2.6.8
- Test compatibility with Foundry v0.6.2
- Start marker if enabled will no longer show up until after a token has moved for the first time on it's turn
Expand Down
4 changes: 2 additions & 2 deletions dist/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Turn Marker",
"description": "Displays a (optionally animated) marker on the token who's active turn it is.",
"author": "Brunhine",
"version": "2.6.8",
"version": "2.6.9",
"minimumCoreVersion": "0.5.6",
"compatibleCoreVersion": "0.6.2",
"esmodules": [
Expand Down Expand Up @@ -35,5 +35,5 @@
],
"url": "https://github.com/Brunhine/TurnMarker",
"manifest": "https://raw.githubusercontent.com/Brunhine/TurnMarker/master/src/module.json",
"download": "https://github.com/Brunhine/TurnMarker/releases/download/v2.6.8/turnmarker.zip"
"download": "https://github.com/Brunhine/TurnMarker/releases/download/v2.6.9/turnmarker.zip"
}
4 changes: 2 additions & 2 deletions dist/scripts/turnmarker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/scripts/turnmarker.js.map

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/templates/updateWindow.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ <h2>Want to support development?</h2>
href="https://github.com/brunhine/turnmarker#support-development">check here</a> for more info.</h2>

<h1>Important Changes</h1>
<p>Below are just of the changes to the module that should be called out. The full changelog is also available
<p>Below are just some of the changes to the module that should be called out. The full changelog is also available
<a href="https://github.com/Brunhine/TurnMarker/blob/master/CHANGELOG.md">here</a>.</p>
<h2>v2.6.9</h2>
<ul>
<li>Fixed a console error when moving a token outside of combat</li>
</ul>
<p style="display: flex; flex-flow: row nowrap; align-items: center; justify-content: flex-start;"><input
type="checkbox" class='show-again' id="welcome-screen-show-again" /> <label
for="welcome-screen-show-again">Don't show this screen again until next update.</label></p>
<h2>v2.6.8</h2>
<ul>
<li>Test compatibility with Foundry v0.6.2</li>
<li>Start marker if enabled will no longer show up until after a token has moved for the first time on it's turn
</li>
<li>Video files (webm, ogg, & mp4) should now properly display in the marker previewer in settings</li>
</ul>
<p style="display: flex; flex-flow: row nowrap; align-items: center; justify-content: flex-start;"><input
type="checkbox" class='show-again' id="welcome-screen-show-again" /> <label
for="welcome-screen-show-again">Don't show this screen again until next update.</label></p>
</ul>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "turnmarker",
"version": "2.6.8",
"version": "2.6.9",
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
4 changes: 2 additions & 2 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Turn Marker",
"description": "Displays a (optionally animated) marker on the token who's active turn it is.",
"author": "Brunhine",
"version": "2.6.8",
"version": "2.6.9",
"minimumCoreVersion": "0.5.6",
"compatibleCoreVersion": "0.6.2",
"esmodules": [
Expand Down Expand Up @@ -35,5 +35,5 @@
],
"url": "https://github.com/Brunhine/TurnMarker",
"manifest": "https://raw.githubusercontent.com/Brunhine/TurnMarker/master/src/module.json",
"download": "https://github.com/Brunhine/TurnMarker/releases/download/v2.6.8/turnmarker.zip"
"download": "https://github.com/Brunhine/TurnMarker/releases/download/v2.6.9/turnmarker.zip"
}
6 changes: 4 additions & 2 deletions src/scripts/turnmarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ Hooks.on('createTile', (scene, tile) => {
});

Hooks.on('preUpdateToken', async (scene, token) => {
if (token._id == game.combat.combatant.token._id && !canvas.scene.getFlag(FlagScope, Flags.startMarkerPlaced)) {
await Marker.placeStartMarker(game.combat.combatant.token._id);
if (game.combat) {
if (token._id == game.combat.combatant.token._id && !canvas.scene.getFlag(FlagScope, Flags.startMarkerPlaced)) {
await Marker.placeStartMarker(game.combat.combatant.token._id);
}
}
});

Expand Down
14 changes: 9 additions & 5 deletions src/templates/updateWindow.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@ <h2>Want to support development?</h2>
href="https://github.com/brunhine/turnmarker#support-development">check here</a> for more info.</h2>

<h1>Important Changes</h1>
<p>Below are just of the changes to the module that should be called out. The full changelog is also available
<p>Below are just some of the changes to the module that should be called out. The full changelog is also available
<a href="https://github.com/Brunhine/TurnMarker/blob/master/CHANGELOG.md">here</a>.</p>
<h2>v2.6.9</h2>
<ul>
<li>Fixed a console error when moving a token outside of combat</li>
</ul>
<p style="display: flex; flex-flow: row nowrap; align-items: center; justify-content: flex-start;"><input
type="checkbox" class='show-again' id="welcome-screen-show-again" /> <label
for="welcome-screen-show-again">Don't show this screen again until next update.</label></p>
<h2>v2.6.8</h2>
<ul>
<li>Test compatibility with Foundry v0.6.2</li>
<li>Start marker if enabled will no longer show up until after a token has moved for the first time on it's turn
</li>
<li>Video files (webm, ogg, & mp4) should now properly display in the marker previewer in settings</li>
</ul>
<p style="display: flex; flex-flow: row nowrap; align-items: center; justify-content: flex-start;"><input
type="checkbox" class='show-again' id="welcome-screen-show-again" /> <label
for="welcome-screen-show-again">Don't show this screen again until next update.</label></p>
</ul>

0 comments on commit b3f5a06

Please sign in to comment.