davelens / fvtt-party-resources

A simple module for FoundryVTT to manage (and track) custom party-wide numeric values.
MIT License
6 stars 16 forks source link

Macro #19

Closed cnutenor closed 3 years ago

cnutenor commented 3 years ago

Hi, im try to create a macro to open party resources.

Like this if (Party Resources.window.rendered) Party Resources.close(); else Party Resources.(true);

Can you help me?

davelens commented 3 years ago

@cnutenor Ah, I already responded to you in Discord just now. I'll put my reply here just in case anyone stumbles upon this.

You can access the dashboard modal with window.pr.dashboard.

window.pr.dashboard.rendered ? window.pr.dashboard.close() : window.pr.dashboard.render(true)