✨
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
BIN
system.zip
BIN
system.zip
Binary file not shown.
@@ -25,7 +25,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span>{{system.tab}}</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="vertLine"></div>
|
<div class="vertLine"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user