Skip to content

Commit

Permalink
Compatibility update PART 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Feu-Secret committed May 24, 2021
1 parent 92a3da5 commit deadeeb
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 33 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Token Magic FX - Update v0.5.1-beta

*Added/Changed :*
- ======> Compatibility with FVTT 0.8.6 - Anniversary Edition! <======
- You can export/import data from/to the "Automatic Template Settings" (useful to share settings between worlds)
- A reworked README, focused on documentation and useful online resources.

*Fixed Issues :*
- The `Automatic Framerate` client option now works correctly : "You can release the Kraken with your 144hz screen!"

# Token Magic FX - Update v0.5.0-beta

First of all, I want to thank dev7355608 for his incredible contribution to this release!
Expand Down
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ In the template settings, you have a tab that display to automatic templates set

![Template Settings Overrides](images/template-settings-overrides.png)

Automatic template settings are linked to a world. You can import and export the settings with the following code :

To export your template settings in a json file
```javascript
TokenMagic.exportTemplateSettings(optional <exportName>);
```

To import template settings from a json file (open a file picker dialog). ***Warning : your settings are REPLACED ! Before, you may want to save your data with the code above.***
```javascript
(async) TokenMagic.importTemplateSettings();
```

## Macros

On drawings, tiles, and Tokens. You must work with macros. You will find a lot of predefined macros in the compendium.
Expand Down Expand Up @@ -609,7 +621,6 @@ TokenMagic.updateFiltersByPlaceable
// Example
TokenMagic.addFiltersOnTargeted("dead");
```

The Token Magic API allows templates creation.

When creating templates, you can pass parameters to add special fx, opacity and tint.
Expand All @@ -631,9 +642,18 @@ MeasuredTemplate.create({
distance: 15,
borderColor: "#FF0000",
fillColor: "#FF3366",
tmfxPreset: "Wild Magic",
tmfxTint: 0x00FF90,
tmfxTextureAlpha: 0.8
flags :
{
tokenmagic:
{
options:
{
tmfxPreset: "Wild Magic",
tmfxTint: 0x00FF90,
tmfxTextureAlpha: 0.50
}
}
}
});
```

Expand Down
4 changes: 2 additions & 2 deletions tokenmagic/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"title": "Token Magic FX",
"description": "<p>Add special effects and animations on your tokens, tiles, drawings and templates.</p>",
"version": "0.5.1",
"compatibleCoreVersion": "0.8.5",
"minimumCoreVersion": "0.8.4",
"compatibleCoreVersion": "0.8.6",
"minimumCoreVersion": "0.8.6",
"author": "SecretFire, sPOiDar, Moerill, dev7355608",
"authors": [
{
Expand Down
Loading

0 comments on commit deadeeb

Please sign in to comment.