diff --git a/less/character-sheet.less b/less/character-sheet.less index 1ab0072..c92015a 100644 --- a/less/character-sheet.less +++ b/less/character-sheet.less @@ -63,6 +63,10 @@ width: 60%; } + .invisibleInput { + background: transparent; + } + .advancementBox { margin-left: 20px; } diff --git a/modules/sheets/pokemonCharacterSheet.js b/modules/sheets/pokemonCharacterSheet.js index 9a408ce..75a994b 100644 --- a/modules/sheets/pokemonCharacterSheet.js +++ b/modules/sheets/pokemonCharacterSheet.js @@ -29,6 +29,22 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi 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 */ _configureRenderOptions(options) { super._configureRenderOptions(options); diff --git a/pokemon.css b/pokemon.css index 2487c6a..d03cc6b 100644 --- a/pokemon.css +++ b/pokemon.css @@ -53,6 +53,9 @@ margin-top: 5px; width: 60%; } +.pokemon.sheet.characterSheet .invisibleInput { + background: transparent; +} .pokemon.sheet.characterSheet .advancementBox { margin-left: 20px; } diff --git a/system.json b/system.json index 5155173..9766a96 100644 --- a/system.json +++ b/system.json @@ -1,5 +1,5 @@ { - "version": "0.0.16", + "version": "0.0.17", "id": "pokemon", "title": "Pokémon TTRPG", "description": "A Pokémon TTRPG", diff --git a/system.zip b/system.zip index 6d56ba1..1c5987d 100644 Binary files a/system.zip and b/system.zip differ