MrPrimate / tokenizer

Tiny yet capable in-game token editor for Foundry VTT
MIT License
29 stars 26 forks source link

Feature/launch tokenizer without token (still needs an actor.name for the filenames) #43

Closed ccjmk closed 3 years ago

ccjmk commented 3 years ago

Example usage:

JavaScript

window.Tokenizer.launch({ name: 'actorName' }, (response) => {
    console.log(response.avatarFilename);
    console.log(response.tokenFilename);
});

TypeScript

type TokenizerResponse = {
  avatarFilename: string;
  tokenFilename: string;
};
(window as any).Tokenizer.launch({ name: 'actorName' }, (response: TokenizerResponse) => {
    console.log(response.avatarFilename);
    console.log(response.tokenFilename);
});