This commit is contained in:
2025-08-04 14:35:05 +02:00
parent d182cabe6c
commit 2cef73e0a1
6 changed files with 20 additions and 8 deletions

View File

@@ -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;

View File

@@ -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;
} }

View File

@@ -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;

View File

@@ -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",

Binary file not shown.

View File

@@ -6,6 +6,8 @@
], ],
"character": { "character": {
"tab": "tab1",
"species": "species", "species": "species",
"experience": { "experience": {