Feu-Secret / Tokenmagic

A Foundry VTT module that allows you to add animations and graphic effects to tokens, tiles, templates and drawings.
GNU General Public License v3.0
52 stars 36 forks source link

Macro Manager + Token Magic #216

Open brunocalado opened 2 years ago

brunocalado commented 2 years ago

Hi.

I want to suggest to add to README a suggestion to macro manager module.

It can be use as better solution then the macro gui.

https://user-images.githubusercontent.com/4999783/190217448-72439046-6389-4040-adff-7bc46f759eee.mp4

It's easy to use. image

Feu-Secret commented 2 years ago

Hey @brunocalado Are you ok to make a PR for this?

brunocalado commented 2 years ago

Hey @brunocalado Are you ok to make a PR for this?

It's already working. The user just have to enable macro manager module and run

/*================================
You can use a Macro Manager to call macros from compendiums!
================================*/
const macroList = "33 - T01 - Evade Stance (transform);24 - T12 - Warp Time Aura;35 - T09 - SuperHeat (xfire);22 - Smoke;24 - T04 - Shell - Earth;15 - Cosmic Ray;24 - T10 - Evil Aura;37 - T03 - Fire Pentagram (sprite+xglow);24 - T06 - Air Bubble;24 - T07 - Mage Armor;24 - T12 - Warp Time Aura 2;28 - Glory to Pixels;26 - T02 - Mantle of Madness (liquid);35 - T02 - Chromatic Fire (xfire);30 - T01 - Simple Web (web);23 - T01 - Mirror Images;00 - B - Delete filters by Placeable;E - Click, click, click and click !;31 - T01 - Glowing Globes (globes);24 - T09 - Water Defense 2 - Ring;34 - T03 - Blood Bath (splash);11 - Blur;30 - T02 - Infernal Web (field+web);00 - A - Delete filters on Selected;20 - Waves;16 - Inner Fog;24 - T08 - Chromatic Bubble 2;19 - T01 - Fire;10 - T01 - Bulge (transform);24 - T13 - Simple Color;35 - T03 - Sparks (xfire);19 - T02 - Devouring Fire;01 - Bevel;14 - Remove Shadow;24 - T01 - Hexa Force Field 3 - Scintillating;D - Auto-Destroy Example;24 - T02 - Fire Shield;25 - T01 - Sunburst Rays (xray);C - Electric Multi-Filters;24 - T07 - Mage Armor 2;F - 03 - Export FX Presets;24 - T05 - Mega - Chroma Shell (on top);09 - T01 - Twist (transform);33 - T04 - Some Real Nuts Here! (transform);24 - T05 - Mega - Ice Shell (on top);27 - T06 - Pure Ice (xglow+smoke);F - 04 - Import FX Presets (local);33 - T02 - Saving Roll (transform);24 - T03 - Poisoned Smoke;25 - T04 - Blue Rays ! (xray);26 - T01 - Spectral Body (liquid);29 - T01 - Foul Fog (xfog);26 - T03 - Drift in Plans (liquid+waves);35 - T07 - SuperFrost (xfire);35 - T08 - Animated SuperFrost (xfire+xglow);23 - T03 - Spectral Images;35 - T01 - Fire v2 (xfire);31 - T02 - Fairy Outline (globes+glow);24 - T02 - Fire Shield 3 - Ring;02 - Adjustment;24 - T11 - Grid Force Field;24 - T02 - Fire Shield 2;34 - T02 - Dead (splash);34 - T01 - Wound - Repeatable (splash);18 - Electric;25 - T02 - Lucky Clover (xray);35 - T05 - Black Fire (xfire);24 - T09 - Water Defense;04 - Outline;06 - Bloom;27 - T01 - Burning Aura (xglow);24 - T01 - Hexa Force Field 2;35 - T10 - Animated SuperHeat (xfire+liquid+wave);27 - T04 - Pure Fire (xglow+fire);B - Multi-Filters Example;17 - Fumes;24 - T06 - Air Bubble 2;24 - T08 - Chromatic Bubble;24 - T11 - Grid Force Field 2 - Chromatic;05 - Glow;35 - T04 - Cold Fire (xfire);25 - T03 - X-ray Scan (xray);03 - Drop Shadow;00 - C - TMFX GUI - Book of Fire Sample;09 - T02 - Moo Man Dance (transform);F - 06 - Export Template Settings;29 - T02 - Phase Spider Web (xfog+web);24 - T02 - Fire Shield 4 - Lava Zone;08 - Old film;36 - T01 - Turn into Mystery Man (polymorph);35 - T06 - Custom Color Fire (xfire);32 - T01 - Solar Ripples (ripples);13 - Shockwave (wave);37 - T02 - Pentagram (sprite);F - 05 - Import FX Presets (URL);24 - T01 - Hexa Force Field;33 - T03 - Dodge Jump (transform);12 - Zoom Blur;24 - T04 - Shell - Moving Ice Disc;A - Multi-Filters Example;32 - T02 - Devoured by the Bewitched Flames (ripples+glow);37 - T01 - Ioun Stone (sprite);27 - T05 - Pure Fire v2 (xglow+fire);10 - T02 - Pinch (transform);27 - T02 - Glacial Aura (xglow);F - 07 - Import Template Settings (local);07 - Distortion;39 - DungeonDraft Tint;23 - T02 - Chaotic Images;27 - T03 - Ugly Villains Aura (xglow);21 - Flood;38 - Replace Color;";
const compendiumList = "TokenMagic Portfolio";

// --------------------
const mm = game.modules.get('macro-manager')?.api.mm;

const data = {
  "macroList": macroList,
  "title": "TokenMagic Portfolio",
  "persistent": true,
  "compendiumList" : compendiumList
}

mm.openCompendiumMacroManager( data );

image