✨
This commit is contained in:
@@ -546,7 +546,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.movedescription {
|
.movedescription {
|
||||||
font-family: "VT323", Arial, Helvetica, sans-serif;
|
font-family: VT323;
|
||||||
width: 620px;
|
width: 620px;
|
||||||
height: 520px;
|
height: 520px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
|
|||||||
@@ -73,23 +73,33 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
|
|||||||
}
|
}
|
||||||
|
|
||||||
calculateDerivated(context) {
|
calculateDerivated(context) {
|
||||||
context.system.armorClass = 10+context.system.stats.defense
|
context.system.armorClass = 10+context.system.stats.defense;
|
||||||
context.system.speed = 30+5*context.system.stats.speed
|
context.system.speed = 30+5*context.system.stats.speed;
|
||||||
|
|
||||||
return context
|
return context;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
submit(submitOptions) {
|
||||||
|
console.log("Submit");
|
||||||
|
|
||||||
|
context.system.tab = this.tab;
|
||||||
|
|
||||||
|
return super.submit(submitOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @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(this.tab);
|
console.log("Rendering with "+this.tab+" open");
|
||||||
tabs.activate(this.tab);
|
tabs.activate(this.tab);
|
||||||
|
|
||||||
tabs.callback = function(){
|
tabs.callback = function(){
|
||||||
console.log(tabs.active);
|
console.log("Switching to "+tabs.active);
|
||||||
this.tab = tabs.active;
|
this.tab = tabs.active;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -462,7 +462,7 @@
|
|||||||
margin-left: 50px;
|
margin-left: 50px;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .movedescription {
|
.pokemon.sheet.characterSheet .movedescription {
|
||||||
font-family: "VT323", Arial, Helvetica, sans-serif;
|
font-family: VT323;
|
||||||
width: 620px;
|
width: 620px;
|
||||||
height: 520px;
|
height: 520px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.0.51",
|
"version": "0.0.52",
|
||||||
"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.
@@ -6,6 +6,8 @@
|
|||||||
],
|
],
|
||||||
|
|
||||||
"character": {
|
"character": {
|
||||||
|
"tab": "tab1",
|
||||||
|
|
||||||
"species": "species",
|
"species": "species",
|
||||||
|
|
||||||
"experience": {
|
"experience": {
|
||||||
|
|||||||
Reference in New Issue
Block a user