cswendrowski / FoundryVTT-Custom-CSS

Allows a user to setup custom CSS rules in a FoundryVTT world
GNU General Public License v3.0
11 stars 9 forks source link

Macro to Open Custom CSS Rules? #16

Closed patrickburk1988 closed 2 years ago

patrickburk1988 commented 2 years ago

Hello! This isn't an issue, but more of a request. Is it currently possible to directly open the Custom CSS Rules window using a script macro? If so, would you be able to provide an example of such a macro?

I end up opening the window very frequently to make small tweaks as I go. Currently I have to Settings -> Configure Settings -> Module Settings -> Custom CSS (because I use Tidy UI Game Settings) -> Custom CSS Rules. Having a macro would save me a significant amount of time.

zeel01 commented 2 years ago
const menu = game.settings.menus.get("custom-css.settingsMenu");
new menu.type().render(true);
patrickburk1988 commented 2 years ago

Thanks!