This commit is contained in:
2025-08-04 15:20:25 +02:00
parent a3f88a6def
commit 47686a25cc
6 changed files with 6 additions and 14 deletions

View File

@@ -541,8 +541,8 @@
justify-items: space-evenly; justify-items: space-evenly;
position: absolute; position: absolute;
z-index: 100; z-index: 100;
margin-top: 25px; margin-top: 15px;
margin-left: 50px; margin-left: 30px;
} }
textarea { textarea {

View File

@@ -70,7 +70,6 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
this.sheetContext = context; this.sheetContext = context;
context.system.tab = this.tab; context.system.tab = this.tab;
console.log(context.system.tab);
return context; return context;
} }
@@ -84,19 +83,13 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
/** @override */ /** @override */
_onRender(context, options) { _onRender(context, options) {
// this.tab = context.system.tab;
const tabs = new foundry.applications.ux.Tabs({navSelector: ".tabs", contentSelector: ".content", initial: this.tab}); const tabs = new foundry.applications.ux.Tabs({navSelector: ".tabs", contentSelector: ".content", initial: this.tab});
tabs.bind(this.element); tabs.bind(this.element);
console.log("Rendering with "+this.tab+" open"); // tabs.activate(this.tab);
tabs.activate(this.tab);
tabs.callback = () => { tabs.callback = () => {
console.log("Switching to "+tabs.active);
this.tab = tabs.active; this.tab = tabs.active;
context.system.tab = tabs.active;
this.submit();
} }
} }

View File

@@ -458,8 +458,8 @@
justify-items: space-evenly; justify-items: space-evenly;
position: absolute; position: absolute;
z-index: 100; z-index: 100;
margin-top: 25px; margin-top: 15px;
margin-left: 50px; margin-left: 30px;
} }
.pokemon.sheet.characterSheet textarea { .pokemon.sheet.characterSheet textarea {
font-family: VT323; font-family: VT323;

View File

@@ -1,5 +1,5 @@
{ {
"version": "0.0.62", "version": "0.1.0",
"id": "pokemon", "id": "pokemon",
"title": "Pokémon TTRPG", "title": "Pokémon TTRPG",
"description": "A Pokémon TTRPG", "description": "A Pokémon TTRPG",

Binary file not shown.

View File

@@ -25,7 +25,6 @@
</div> </div>
</div> </div>
<span>{{system.tab}}</span>
</div> </div>
<div class="vertLine"></div> <div class="vertLine"></div>