From b3cbcf4cbd1881af688b7743b57ec3da054d1d4a Mon Sep 17 00:00:00 2001 From: Sylvercode Date: Sat, 8 Nov 2025 09:57:23 -0500 Subject: [PATCH] Convert V13 html as jquery --- module.json | 6 ++++-- src/token-stack-selector.js | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/module.json b/module.json index 48f4273..4526262 100644 --- a/module.json +++ b/module.json @@ -2,14 +2,16 @@ "id": "token-stack-selector", "title": "Token Stack Selector", "description": "Interface moderna para seleção de tokens empilhados no Foundry VTT. Permite escolher facilmente entre tokens sobrepostos com um painel elegante similar ao sistema de condições.", - "version": "1.0.2", + "version": "1.0.3", "authors": [ { "name": "Sub-Dev", "discord": "sub-dev" } ], - "esmodules": ["main.js"], + "esmodules": [ + "main.js" + ], "compatibility": { "minimum": "11", "verified": "12", diff --git a/src/token-stack-selector.js b/src/token-stack-selector.js index 77b6ef5..12a80d4 100644 --- a/src/token-stack-selector.js +++ b/src/token-stack-selector.js @@ -79,9 +79,9 @@ export class TokenStackSelector { // Adiciona botão ao HUD const button = TokenStackButton.addToHUD( - html, + $(html), visibleTokens.length, - () => this.handleButtonClick(visibleTokens, html, button) + () => this.handleButtonClick(visibleTokens, $(html), button) ); } catch (error) { @@ -183,4 +183,4 @@ export class TokenStackSelector { return stats; } -} \ No newline at end of file +}