M .hgignore +2 -1
@@ 1,1 1,2 @@
-tokens
No newline at end of file
+tokens
+.orig
No newline at end of file
M module/sheets/HeroSheet.js +10 -10
@@ 1,15 1,15 @@
export default class HeroSheet extends ActorSheet {
static get defaultOptions () {
return mergeObject(super.defaultOptions, {
- template: `systems/bearbones/templates/sheets/hero-sheet.hbs`
- })
+ classes: ["bearbones", "sheet", "pc"],
+ template: `systems/bearbones/templates/sheets/hero-sheet.hbs`,
+ width: 600,
+ height: 600,
+ tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "bio"}],
+ });
}
-
- // getData() {
- // const data = super.getData();
-
- // console.log('\n\n\n\n', data);
-
- // return data;
- // }
+ getData() {
+ const data = super.getData();
+ return data;
+ }
}
No newline at end of file
M templates/sheets/hero-sheet.hbs +22 -3
@@ 1,13 1,32 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="64" width="64" />
- <h1><input name="name" type="text" value="{{actor.name}}" /></h1>
+ <h1><input name="name" type="text" value="{{actor.name}}"/></h1>
</header>
<div>
-
- <p>Backstory:</p>
+ <p>Description/Bio:</p>
<div data-edit="data.bio.description" contenteditable>
{{data.bio.description}}
</div>
+
+ <nav class="sheet-tabs tabs" data-group="primary">
+ <a class="item" data-tab="bio">Bio</a>
+ <a class="item" data-tab="stats">Items</a>
+ </nav>
+
+ <section class="sheet-body">
+ <div class="tab" data-group="primary" data-tab="bio">
+ biome
+ </div>
+
+ <div class="tab" data-group="primary" data-tab="stats">
+ <p>Character Sheet: <a href={{data.stats.link_to_dnd_beyond}}>{{data.stats.link_to_dnd_beyond}}</a></p>
+ <input name="data.stats.link_to_dnd_beyond" value={{data.stats.link_to_dnd_beyond}} type="text">
+ </input>
+ </div>
+ </div>
+ </section>
</div>
+
+
</form>
No newline at end of file