This commit is contained in:
2025-08-03 12:52:59 +02:00
parent b2bdd60666
commit 1ce944b270
5 changed files with 24 additions and 1 deletions

View File

@@ -63,6 +63,10 @@
width: 60%; width: 60%;
} }
.invisibleInput {
background: transparent;
}
.advancementBox { .advancementBox {
margin-left: 20px; margin-left: 20px;
} }

View File

@@ -29,6 +29,22 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
return this.actor.name; return this.actor.name;
} }
/** @override */
getData() {
const data = super.getData();
data.dtypes = ['String', 'Number', 'Boolean'];
// // Prepare items.
// if (this.actor.type == 'character') {
// this._prepareCharacterItems(data);
// }
// data['totalWealth'] = this.actor.itemTypes.item.reduce((total, item) => total + (!isNaN(item.system.cost) ? item.system.cost * (item.system.quantity ?? 0) : 0), this.actor.system.money);
data.data = this.actor.system;
// data['origins'] = this.actor.origins;
return data;
}
/** @override */ /** @override */
_configureRenderOptions(options) { _configureRenderOptions(options) {
super._configureRenderOptions(options); super._configureRenderOptions(options);

View File

@@ -53,6 +53,9 @@
margin-top: 5px; margin-top: 5px;
width: 60%; width: 60%;
} }
.pokemon.sheet.characterSheet .invisibleInput {
background: transparent;
}
.pokemon.sheet.characterSheet .advancementBox { .pokemon.sheet.characterSheet .advancementBox {
margin-left: 20px; margin-left: 20px;
} }

View File

@@ -1,5 +1,5 @@
{ {
"version": "0.0.16", "version": "0.0.17",
"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.