Module stuff and fixes on other items

This commit is contained in:
2022-11-09 20:09:50 +01:00
parent 66ed4c12cc
commit 1ec8ee6451
17 changed files with 408 additions and 17 deletions

View File

@@ -0,0 +1,30 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Selected</label>
<input type="checkbox" class="item-field-label-short" name="system.selected" {{checked system.selected}} />
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@@ -0,0 +1,30 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Selected</label>
<input type="checkbox" class="item-field-label-short" name="system.selected" {{checked system.selected}} />
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@@ -18,9 +18,34 @@
<div class="tab" data-group="primary">
<ul>
{{#each system.levels as |level index|}}
<hr>
<li class="flexrow">
<label class="item-field-label-long">Level {{index}}</label>
</li>
<li class="flexrow">
<div class="drop-module-step" data-level-index="{{index}}"><label data-level-index="{{index}}">Drop traits/actions/... here !</label></div>
</li>
{{#each level.features as |feature id|}}
<li class="flexrow item" data-level-index="{{../index}}" data-feature-id="{{feature._id}}" >
<label class="item-field-label-medium">{{feature.name}}</label>
<input type="checkbox" class="item-field-label-short feature-level-selected" {{checked feature.system.selected}} />
<label class="item-field-label-long2">{{{feature.descriptionHTML}}}</label>
<div class="item-controls item-controls-fixed">
<a class="item-control module-feature-delete" title="Delete Feature"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
{{/each}}
<li class="flexrow item">
<button class="chat-card-button add-module-level">Add a level</button>
</li>
</ul>
</div>
</div>
</section>

View File

@@ -0,0 +1,31 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Selected</label>
<input type="checkbox" class="item-field-label-short" name="system.selected" {{checked system.selected}} />
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@@ -0,0 +1,31 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Active</label>
<input type="checkbox" class="item-field-label-short" name="system.active" {{checked system.active}} />
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@@ -0,0 +1,58 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Type of trait</label>
<select class="item-field-label-long" type="text" name="system.traittype" value="{{system.traittype}}" data-dtype="String">
{{#select system.traittype}}
<option value="traitonly">Trait only</option>
<option value="traitbonus">Trait with bonus or spells</option>
{{/select}}
</select>
</li>
{{#if (eq system.traittype "traitbonus")}}
<li class="flexrow">
<label class="item-field-label-long">Bonus automation</label>
<input type="checkbox" class="item-field-label-short" name="system.computebonus" {{checked system.computebonus}} />
</li>
{{#if system.computebonus}}
<li class="flexrow">
<label class="item-field-label-long">Bonus path</label>
<input type="text" class="item-field-label-medium" name="system.bonusdata" value="{{system.bonusdata}}" data-dtype="String"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">Bonus value</label>
<input type="text" class="item-field-label-short" name="system.bonusvalue" value="{{system.bonusvalue}}" data-dtype="Number"/>
</li>
{{/if}}
{{/if}}
<li class="flexrow">
<label class="item-field-label-long">Selected</label>
<input type="checkbox" class="item-field-label-short" name="system.selected" {{checked system.selected}} />
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@@ -91,6 +91,33 @@
{{/each}}
</li>
<li class='flexrow'>
<h3 class='item-field-label-long'>
Focus
</h3>
<input type="checkbox" class="item-field-label-short" name="system.focus.isfocus" {{checked system.focus.isfocus}} />
</li>
{{#if system.focus.isfocus}}
<li class='flexrow'>
<select class="item-field-label-long" type="text" name="system.focus.core" value="{{system.focus.core}}" data-dtype="String">
{{#select system.focus.core}}
{{> systems/fvtt-avd12/templates/items/partial-options-focus-core.hbs}}
{{/select}}
</select>
<select class="item-field-label-long" type="text" name="system.focus.treatment" value="{{system.focus.treatment}}" data-dtype="String">
{{#select system.focus.treatment}}
{{> systems/fvtt-avd12/templates/items/partial-options-focus-treatment.hbs}}
{{/select}}
</select>
<select class="item-field-label-long" type="text" name="system.focus.bond" value="{{system.focus.bond}}" data-dtype="String">
{{#select system.focus.bond}}
{{> systems/fvtt-avd12/templates/items/partial-options-focus-bond.hbs}}
{{/select}}
</select>
</li>
{{/if}}
<li class='flexrow'>
<h3 class='item-field-label-long'>
Various

View File

@@ -0,0 +1,8 @@
<option value="bondnone">Bond: None</option>
<option value="bondeasy">Bond: Easy</option>
<option value="bondcommon">Bond: Common</option>
<option value="bonduncommon">Bond: Uncommon</option>
<option value="bondrare">Bond: Rare</option>
<option value="bondlegendary">Bond: Legendary</option>
<option value="bondmythic">Bond: Mythic</option>
<option value="bonddivine">Bond: Divine</option>

View File

@@ -0,0 +1,9 @@
<option value="corenone">Core: None</option>
<option value="core1gp">Core: 1GP</option>
<option value="core5gp">Core: 5GP</option>
<option value="core50gp">Core: 50GP</option>
<option value="core100gp">Core: 100GP</option>
<option value="core300gp">Core: 300GP</option>
<option value="core500gp">Core: 500GP</option>
<option value="core800gp">Core: 800GP</option>
<option value="core1000gp">Core: 1000GP</option>

View File

@@ -0,0 +1,9 @@
<option value="treatmentnone">Treatment: None</option>
<option value="treatment1gp">Treatment: Tin [1 GP]</option>
<option value="treatment4gp">Treatment: Copper [4 GP]</option>
<option value="treatment20gp">Treatment: Iron [20 GP]</option>
<option value="treatment50gp">Treatment: Silver [50 GP]</option>
<option value="treatment500gp">Treatment: Gold [500 GP]</option>
<option value="treatment1000gp">Treatment: Platinum [1000 GP]</option>
<option value="treatment5000gp">Treatment: Mithral [5000 GP]</option>
<option value="treatment10000gp">Treatment: Starsteel [10000 GP]</option>

View File

@@ -1,3 +1,4 @@
<option value="unarmed">Unarmed</option>
<option value="ranged">Ranged</option>
<option value="blunt">Blunt</option>
<option value="slash">Slash</option>