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