✨
This commit is contained in:
@@ -541,8 +541,8 @@
|
||||
justify-items: space-evenly;
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
margin-top: 25px;
|
||||
margin-left: 50px;
|
||||
margin-top: 15px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
|
||||
@@ -70,7 +70,6 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
|
||||
this.sheetContext = context;
|
||||
|
||||
context.system.tab = this.tab;
|
||||
console.log(context.system.tab);
|
||||
|
||||
return context;
|
||||
}
|
||||
@@ -84,19 +83,13 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
|
||||
|
||||
/** @override */
|
||||
_onRender(context, options) {
|
||||
// this.tab = context.system.tab;
|
||||
|
||||
const tabs = new foundry.applications.ux.Tabs({navSelector: ".tabs", contentSelector: ".content", initial: this.tab});
|
||||
tabs.bind(this.element);
|
||||
|
||||
console.log("Rendering with "+this.tab+" open");
|
||||
tabs.activate(this.tab);
|
||||
// tabs.activate(this.tab);
|
||||
|
||||
tabs.callback = () => {
|
||||
console.log("Switching to "+tabs.active);
|
||||
this.tab = tabs.active;
|
||||
context.system.tab = tabs.active;
|
||||
this.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -458,8 +458,8 @@
|
||||
justify-items: space-evenly;
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
margin-top: 25px;
|
||||
margin-left: 50px;
|
||||
margin-top: 15px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
.pokemon.sheet.characterSheet textarea {
|
||||
font-family: VT323;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.0.62",
|
||||
"version": "0.1.0",
|
||||
"id": "pokemon",
|
||||
"title": "Pokémon TTRPG",
|
||||
"description": "A Pokémon TTRPG",
|
||||
|
||||
BIN
system.zip
BIN
system.zip
Binary file not shown.
@@ -25,7 +25,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span>{{system.tab}}</span>
|
||||
</div>
|
||||
|
||||
<div class="vertLine"></div>
|
||||
|
||||
Reference in New Issue
Block a user