Rework item sheet

This commit is contained in:
sladecraven 2022-03-06 22:18:08 +01:00
parent 0ce493bc92
commit b97d626fc7
18 changed files with 323 additions and 286 deletions

View File

@ -4,7 +4,6 @@
*/ */
import { PegasusUtility } from "./pegasus-utility.js"; import { PegasusUtility } from "./pegasus-utility.js";
import { PegasusItemSheet } from "./pegasus-item-sheet.js";
import { PegasusRollDialog } from "./pegasus-roll-dialog.js"; import { PegasusRollDialog } from "./pegasus-roll-dialog.js";
/* -------------------------------------------- */ /* -------------------------------------------- */
@ -18,7 +17,7 @@ export class PegasusActorSheet extends ActorSheet {
template: "systems/fvtt-pegasus-rpg/templates/actor-sheet.html", template: "systems/fvtt-pegasus-rpg/templates/actor-sheet.html",
width: 920, width: 920,
height: 720, height: 720,
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }], tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "combat" }],
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }], dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
editScore: false editScore: false
}); });

View File

@ -14,8 +14,8 @@ export class PegasusItemSheet extends ItemSheet {
template: "systems/fvtt-pegasus-rpg/templates/item-sheet.html", template: "systems/fvtt-pegasus-rpg/templates/item-sheet.html",
dragDrop: [{ dragSelector: null, dropSelector: null }], dragDrop: [{ dragSelector: null, dropSelector: null }],
width: 620, width: 620,
height: 550 height: 550,
//tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}] tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}]
}); });
} }

View File

@ -208,7 +208,9 @@ export class PegasusUtility {
'systems/fvtt-pegasus-rpg/templates/partial-options-equipment-types.html', 'systems/fvtt-pegasus-rpg/templates/partial-options-equipment-types.html',
'systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html', 'systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html',
'systems/fvtt-pegasus-rpg/templates/partial-actor-stat-block.html', 'systems/fvtt-pegasus-rpg/templates/partial-actor-stat-block.html',
'systems/fvtt-pegasus-rpg/templates/partial-actor-status.html' 'systems/fvtt-pegasus-rpg/templates/partial-actor-status.html',
'systems/fvtt-pegasus-rpg/templates/partial-item-nav.html',
'systems/fvtt-pegasus-rpg/templates/partial-item-description.html',
] ]
return loadTemplates(templatePaths); return loadTemplates(templatePaths);
} }

View File

@ -183,6 +183,6 @@
"templateVersion": 86, "templateVersion": 86,
"title": "Pegasus RPG", "title": "Pegasus RPG",
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
"version": "0.5.1", "version": "0.5.2",
"background" : "./images/ui/pegasus_welcome_page.webp" "background" : "./images/ui/pegasus_welcome_page.webp"
} }

View File

@ -6,10 +6,15 @@
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
<ul> {{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Affected stat</label> <li class="flexrow"><label class="generic-label">Affected stat</label>
<select class="competence-base flexrow" type="text" name="data.affectedstat" value="{{data.affectedstat}}" data-dtype="String"> <select class="competence-base flexrow" type="text" name="data.affectedstat" value="{{data.affectedstat}}" data-dtype="String">
{{#select data.affectedstat}} {{#select data.affectedstat}}
@ -137,15 +142,7 @@
</li> </li>
</ul> </ul>
</div>
<div class="tab" data-group="primary">
<label class="generic-label">Description</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</div>
</section> </section>
</form> </form>

View File

@ -5,10 +5,17 @@
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary"> <div class="tab" data-group="primary">
<ul> <ul>
<li class="flexrow"><label class="generic-label">Related Statistic</label> <li class="flexrow"><label class="generic-label">Related Statistic</label>
@ -48,13 +55,9 @@
{{/select}} {{/select}}
</select> </select>
</li> </li>
<li class="flexrow"><label class="generic-label">Notes</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</li>
</ul> </ul>
</div> </div>
</div>
</section> </section>
</form> </form>

View File

@ -7,17 +7,14 @@
</h1> </h1>
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
<div class="tab" data-group="primary"> {{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<label class="generic-label">Description</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
<div class="tab details" data-group="primary" data-tab="details">
<ul> <ul>
<li class="flexrow"><label class="generic-label">Type</label> <li class="flexrow"><label class="generic-label">Type</label>
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String"> <select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String">

View File

@ -6,11 +6,15 @@
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
<div class="tab" data-group="primary"> {{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<ul>
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Type</label> <li class="flexrow"><label class="generic-label">Type</label>
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String"> <select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String">
{{#select data.type}} {{#select data.type}}
@ -72,11 +76,6 @@
{{/select}} {{/select}}
</select> </select>
</li> </li>
<li class="flexrow"><label class="generic-label">Notes</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</li>
</ul> </ul>
</div> </div>

View File

@ -5,23 +5,20 @@
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab" data-group="primary"> <div class="tab details" data-group="primary" data-tab="details">
<ul> <ul>
<li class="flexrow"><label class="generic-label">Quantity</label> <li class="flexrow"><label class="generic-label">Quantity</label>
<input type="text" class="input-numeric-short padd-right" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/> <input type="text" class="input-numeric-short padd-right" name="data.quantity" value="{{data.quantity}}" data-dtype="Number"/>
</li> </li>
<li class="flexrow"><label class="generic-label">Weight</label> <li class="flexrow"><label class="generic-label">Weight</label>
<input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/> <input type="text" class="input-numeric-short padd-right" name="data.weight" value="{{data.weight}}" data-dtype="Number"/>
</li> </li>
<li class="flexrow"><label class="generic-label">Notes</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</li>
</ul> </ul>
</div> </div>

View File

@ -5,12 +5,14 @@
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab" data-group="primary"> <div class="tab details" data-group="primary" data-tab="details">
<ul> <ul>
<li class="flexrow"><label class="generic-label">Level</label> <li class="flexrow"><label class="generic-label">Level</label>
<input type="text" class="input-numeric-short padd-right" name="data.level" value="{{data.level}}" data-dtype="Number"/> <input type="text" class="input-numeric-short padd-right" name="data.level" value="{{data.level}}" data-dtype="Number"/>
</li> </li>
@ -104,10 +106,6 @@
{{/each}} {{/each}}
</ul> </ul>
<label class="generic-label">Description</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</div> </div>
</section> </section>

View File

@ -1,120 +1,138 @@
<form class="{{cssClass}}" autocomplete="off"> <form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header"> <header class="sheet-header">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}"/> <img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
<div class="header-fields"> <div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
</div>
</header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="tab description" data-group="primary" data-tab="description">
<div class="small-editor item-text-long-line">
<label class="generic-label">Description</label>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
<li class="flexrow"><label class="generic-label">Available Effects</label>
<div class="small-editor item-text-long-line">
{{editor content=data.effects target="data.effects" button=true owner=owner editable=editable}}
</div> </div>
</header> </li>
<li class="flexrow"><label class="generic-label">Purchased Effects</label>
<div class="small-editor item-text-long-line">
{{editor content=data.purchasedeffects target="data.purchasedeffects" button=true owner=owner
editable=editable}}
</div>
</li>
</div>
{{!-- Sheet Body --}} <div class="tab details" data-group="primary" data-tab="details">
<section class="sheet-body"> <ul>
<li class="flexrow"><label class="generic-label">Roll Needed ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.rollneeded" {{checked
data.rollneeded}} /></label>
</li>
{{#if data.rollneeded}}
<li class="flexrow"><label class="generic-label">Related Statistic (only if roll is needed)</label>
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}"
data-dtype="String">
{{#select data.statistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
{{/select}}
</select>
</li>
{{/if}}
<div class="tab" data-group="primary"> <li class="flexrow">
<label class="generic-label">Activated ? </label>
<div class="small-editor item-text-long-line"> <label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked
<label class="generic-label">Description</label> data.activated}} /></label>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}} </li>
</div>
<li class="flexrow"><label class="generic-label">Available Effects</label>
<div class="small-editor item-text-long-line">
{{editor content=data.effects target="data.effects" button=true owner=owner editable=editable}}
</div>
</li>
<ul> <li class="flexrow"><label class="generic-label">NRG Cost</label>
<li class="flexrow"><label class="generic-label">Roll Needed ?</label> <input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}"
<label class="attribute-value checkbox"><input type="checkbox" name="data.rollneeded" {{checked data.rollneeded}}/></label> data-dtype="Number" />
</li> </li>
{{#if data.rollneeded}} <li class="flexrow"><label class="generic-label">NRG Spent</label>
<li class="flexrow"><label class="generic-label">Related Statistic (only if roll is needed)</label> <input type="text" class="input-numeric-short padd-right" name="data.costspent" value="{{data.costspent}}"
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String"> data-dtype="Number" />
{{#select data.statistic}} </li>
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}} <li class="flexrow"><label class="generic-label">Range</label>
{{/select}} <select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}"
</select> data-dtype="String">
</li> {{#select data.range}}
{{/if}} {{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Action</label>
<select class="competence-base flexrow" type="text" name="data.action" value="{{data.action}}"
data-dtype="String">
{{#select data.action}}
<option value="soft">Soft</option>
<option value="hard">Hard</option>
<option value="full">Full</option>
<option value="reactive">Reactive</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Type</label>
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}"
data-dtype="String">
{{#select data.type}}
<option value="instant">Instant</option>
<option value="active">Active</option>
<option value="permanent">Permanent</option>
<option value="reactive">Reactive</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Power Source</label>
<input type="text" class="padd-right" name="data.powersource" value="{{data.powersource}}"
data-dtype="String" />
</li>
<li class="flexrow">
<label class="generic-label">DMG Roll Needed ? </label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.dmgroll" {{checked
data.dmgroll}} /></label>
</li>
{{#if data.dmgroll}}
<li class="flexrow"><label class="generic-label">Related DMG Statistic </label>
<select class="competence-base flexrow" type="text" name="data.dmgstatistic" value="{{data.dmgstatistic}}"
data-dtype="String">
{{#select data.dmgstatistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
{{/select}}
</select>
</li>
{{/if}}
<li class="flexrow"><label class="generic-label">Effects Gained</label>
</li>
<li>
<ul class="ul-level1">
<li class="flexrow"> <li class="flexrow">
<label class="generic-label">Activated ? </label> <div class="drop-power-effect"><label>Drop Effects here !</label></div>
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked data.activated}}/></label>
</li> </li>
{{#each data.effectsgained as |effect idx|}}
<li class="flexrow"><label class="generic-label">NRG Cost</label>
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">NRG Spent</label>
<input type="text" class="input-numeric-short padd-right" name="data.costspent" value="{{data.costspent}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Range</label>
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
{{#select data.range}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Action</label>
<select class="competence-base flexrow" type="text" name="data.action" value="{{data.action}}" data-dtype="String">
{{#select data.action}}
<option value="soft">Soft</option>
<option value="hard">Hard</option>
<option value="full">Full</option>
<option value="reactive">Reactive</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Type</label>
<select class="competence-base flexrow" type="text" name="data.type" value="{{data.type}}" data-dtype="String">
{{#select data.type}}
<option value="instant">Instant</option>
<option value="active">Active</option>
<option value="permanent">Permanent</option>
<option value="reactive">Reactive</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Power Source</label>
<input type="text" class="padd-right" name="data.powersource" value="{{data.powersource}}" data-dtype="String"/>
</li>
<li class="flexrow"> <li class="flexrow">
<label class="generic-label">DMG Roll Needed ? </label> <label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained"
<label class="attribute-value checkbox"><input type="checkbox" name="data.dmgroll" {{checked data.dmgroll}}/></label> data-index="{{idx}}">{{effect.name}}</a></label>
</li> <div class="item-controls padd-left">
{{#if data.dmgroll}} <a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}"
<li class="flexrow"><label class="generic-label">Related DMG Statistic </label> title="Delete Effect"><i class="fas fa-trash"></i></a>
<select class="competence-base flexrow" type="text" name="data.dmgstatistic" value="{{data.dmgstatistic}}" data-dtype="String">
{{#select data.dmgstatistic}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
{{/select}}
</select>
</li>
{{/if}}
<li class="flexrow"><label class="generic-label">Effects Gained</label>
</li>
<li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-power-effect"><label>Drop Effects here !</label></div>
</li>
{{#each data.effectsgained as |effect idx|}}
<li class="flexrow">
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="effectsgained" data-index="{{idx}}" title="Delete Effect"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</li>
<li class="flexrow"><label class="generic-label">Purchased Effects</label>
<div class="small-editor item-text-long-line">
{{editor content=data.purchasedeffects target="data.purchasedeffects" button=true owner=owner editable=editable}}
</div> </div>
</li> </li>
{{/each}}
</ul> </ul>
</div> </li>
</section> </ul>
</form> </div>
</section>
</form>

View File

@ -1,114 +1,134 @@
<form class="{{cssClass}}" autocomplete="off"> <form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header"> <header class="sheet-header">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}"/> <img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
<div class="header-fields"> <div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
<div class="tab" data-group="primary"> <div class="tab details" data-group="primary" data-tab="description">
<ul>
<li class="flexrow"><label class="generic-label">Abilities</label>
</li>
<ul class="ul-level1">
<li class="flexrow"><div class="drop-abilities"><label>Drop Abilities here !</label></div>
</li>
{{#each data.abilities as |ability idx|}}
<li class="flexrow">
<label name="data.abilities[{{idx}}].name"><a class="view-subitem" data-type="abilities" data-index="{{idx}}">{{ability.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="abilities" data-index="{{idx}}" title="Delete Ability"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</ul>
<ul> <label class="generic-label">Description</label>
<li class="flexrow"><label class="generic-label">Selectable Stats ?</label> <div class="small-editor item-text-long-line">
<label class="attribute-value checkbox"><input type="checkbox" name="data.selectablestats" {{checked data.selectablestats}}/></label> {{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</li> </div>
{{#if data.selectablestats}} <label class="generic-label">Environment</label>
<li class="flexrow"><label class="generic-label">Select 1 stat only once?</label> <div class="small-editor item-text-long-line">
<label class="attribute-value checkbox"><input type="checkbox" name="data.statsonlyonce" {{checked data.statsonlyonce}}/></label> {{editor content=data.environment target="data.environment" button=true owner=owner editable=editable}}
</li> </div>
<li class="flexrow"><label class="generic-label">Number of selectable stats</label> <label class="generic-label">Society/Culture</label>
<input type="text" class="input-numeric-short padd-right" name="data.numberstats" value="{{data.numberstats}}" data-dtype="Number"/> <div class="small-editor item-text-long-line">
</li> {{editor content=data.society_culture target="data.society_culture" button=true owner=owner editable=editable}}
{{/if}} </div>
</ul> <label class="generic-label">Outlook</label>
<div class="small-editor item-text-long-line">
<ul> {{editor content=data.outlook target="data.outlook" button=true owner=owner editable=editable}}
<li class="flexrow"><label class="generic-label">Number of Optionnal Abilities</label> </div>
<input type="text" class="input-numeric-short padd-right" name="data.nboptionnal" value="{{data.nboptionnal}}" data-dtype="Number"/> </div>
</li>
<li class="flexrow"><label class="generic-label">Optionnal Abilities</label> <div class="tab details" data-group="primary" data-tab="details">
</li> <ul>
<ul class="ul-level1"> <li class="flexrow"><label class="generic-label">Abilities</label>
<li class="flexrow"><div class="drop-optionnal-abilities"><label>Drop Abilities here !</label></div> </li>
</li> <ul class="ul-level1">
{{#each data.optionnalabilities as |ability idx|}} <li class="flexrow">
<li class="flexrow"> <div class="drop-abilities"><label>Drop Abilities here !</label></div>
<label name="data.optionnalabilities[{{idx}}].name"><a class="view-subitem" data-type="optionnalabilities" data-index="{{idx}}">{{ability.name}}</a></label> </li>
<div class="item-controls padd-left"> {{#each data.abilities as |ability idx|}}
<a class="item-control delete-subitem padd-left" data-type="optionnalabilities" data-index="{{idx}}" title="Delete Ability"><i class="fas fa-trash"></i></a> <li class="flexrow">
</div> <label name="data.abilities[{{idx}}].name"><a class="view-subitem" data-type="abilities"
</li> data-index="{{idx}}">{{ability.name}}</a></label>
{{/each}} <div class="item-controls padd-left">
</ul> <a class="item-control delete-subitem padd-left" data-type="abilities" data-index="{{idx}}"
</ul> title="Delete Ability"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</ul>
<ul> <ul>
<li class="flexrow"><label class="generic-label">Perks Gained ?</label> <li class="flexrow"><label class="generic-label">Selectable Stats ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.perksgained" {{checked data.perksgained}}/></label> <label class="attribute-value checkbox"><input type="checkbox" name="data.selectablestats" {{checked
</li> data.selectablestats}} /></label>
{{#if data.perksgained}} </li>
<li class="flexrow"><label class="generic-label">Choose in all available perks?</label> {{#if data.selectablestats}}
<label class="attribute-value checkbox"><input type="checkbox" name="data.perksall" {{checked data.perksall}}/></label> <li class="flexrow"><label class="generic-label">Select 1 stat only once?</label>
</li> <label class="attribute-value checkbox"><input type="checkbox" name="data.statsonlyonce" {{checked
<li class="flexrow"><label class="generic-label">Number of perks to gain</label> data.statsonlyonce}} /></label>
<input type="text" class="input-numeric-short padd-right" name="data.perksnumber" value="{{data.perksnumber}}" data-dtype="Number"/> </li>
</li> <li class="flexrow"><label class="generic-label">Number of selectable stats</label>
{{#if data.perksall}} <input type="text" class="input-numeric-short padd-right" name="data.numberstats" value="{{data.numberstats}}"
{{else}} data-dtype="Number" />
<ul class="ul-level1"> </li>
<li class="flexrow"><div class="drop-race-perk"><label>Drop Perks here !</label></div> {{/if}}
</li> </ul>
{{#each data.perks as |perk idx|}}
<li class="flexrow">
<label name="data.perks[{{idx}}].name"><a class="view-subitem" data-type="perks" data-index="{{idx}}">{{perk.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="perks" data-index="{{idx}}" title="Delete Perk"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
{{/if}}
{{/if}}
</ul>
<ul>
<li class="flexrow"><label class="generic-label">Number of Optionnal Abilities</label>
<input type="text" class="input-numeric-short padd-right" name="data.nboptionnal" value="{{data.nboptionnal}}"
data-dtype="Number" />
</li>
<label class="generic-label">Description</label> <li class="flexrow"><label class="generic-label">Optionnal Abilities</label>
<div class="small-editor item-text-long-line"> </li>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}} <ul class="ul-level1">
</div> <li class="flexrow">
<label class="generic-label">Environment</label> <div class="drop-optionnal-abilities"><label>Drop Abilities here !</label></div>
<div class="small-editor item-text-long-line"> </li>
{{editor content=data.environment target="data.environment" button=true owner=owner editable=editable}} {{#each data.optionnalabilities as |ability idx|}}
</div> <li class="flexrow">
<label class="generic-label">Society/Culture</label> <label name="data.optionnalabilities[{{idx}}].name"><a class="view-subitem" data-type="optionnalabilities"
<div class="small-editor item-text-long-line"> data-index="{{idx}}">{{ability.name}}</a></label>
{{editor content=data.society_culture target="data.society_culture" button=true owner=owner editable=editable}} <div class="item-controls padd-left">
</div> <a class="item-control delete-subitem padd-left" data-type="optionnalabilities" data-index="{{idx}}"
<label class="generic-label">Outlook</label> title="Delete Ability"><i class="fas fa-trash"></i></a>
<div class="small-editor item-text-long-line"> </div>
{{editor content=data.outlook target="data.outlook" button=true owner=owner editable=editable}} </li>
</div> {{/each}}
</div> </ul>
</ul>
</section> <ul>
</form> <li class="flexrow"><label class="generic-label">Perks Gained ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.perksgained" {{checked
data.perksgained}} /></label>
</li>
{{#if data.perksgained}}
<li class="flexrow"><label class="generic-label">Choose in all available perks?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.perksall" {{checked
data.perksall}} /></label>
</li>
<li class="flexrow"><label class="generic-label">Number of perks to gain</label>
<input type="text" class="input-numeric-short padd-right" name="data.perksnumber" value="{{data.perksnumber}}"
data-dtype="Number" />
</li>
{{#if data.perksall}}
{{else}}
<ul class="ul-level1">
<li class="flexrow">
<div class="drop-race-perk"><label>Drop Perks here !</label></div>
</li>
{{#each data.perks as |perk idx|}}
<li class="flexrow">
<label name="data.perks[{{idx}}].name"><a class="view-subitem" data-type="perks"
data-index="{{idx}}">{{perk.name}}</a></label>
<div class="item-controls padd-left">
<a class="item-control delete-subitem padd-left" data-type="perks" data-index="{{idx}}"
title="Delete Perk"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
{{/if}}
{{/if}}
</ul>
</div>
</section>
</form>

View File

@ -7,12 +7,15 @@
</h1> </h1>
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
<div class="tab" data-group="primary"> {{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<ul>
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Stat increase 1</label> <li class="flexrow"><label class="generic-label">Stat increase 1</label>
<select class="competence-base flexrow" type="text" name="data.statincrease1" value="{{data.statincrease1}}" data-dtype="String"> <select class="competence-base flexrow" type="text" name="data.statincrease1" value="{{data.statincrease1}}" data-dtype="String">
{{#select data.statincrease1}} {{#select data.statincrease1}}
@ -105,10 +108,6 @@
</ul> </ul>
</li> </li>
</ul> </ul>
<label class="generic-label">Description</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</div> </div>
</section> </section>

View File

@ -5,12 +5,15 @@
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
<div class="tab" data-group="primary"> {{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<ul>
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Defense Type</label> <li class="flexrow"><label class="generic-label">Defense Type</label>
<select class="competence-base flexrow" type="text" name="data.deftype" value="{{data.deftype}}" data-dtype="String"> <select class="competence-base flexrow" type="text" name="data.deftype" value="{{data.deftype}}" data-dtype="String">
{{#select data.deftype}} {{#select data.deftype}}
@ -45,11 +48,6 @@
{{/select}} {{/select}}
</select> </select>
</li> </li>
<li class="flexrow"><label class="generic-label">Notes</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</li>
</ul> </ul>
</div> </div>

View File

@ -6,11 +6,15 @@
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
<div class="tab" data-group="primary"> {{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<ul>
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Related Statistic</label> <li class="flexrow"><label class="generic-label">Related Statistic</label>
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String"> <select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String">
{{#select data.statistic}} {{#select data.statistic}}
@ -50,11 +54,6 @@
</li> </li>
{{/if}} {{/if}}
</ul> </ul>
<div class="small-editor item-text-long-line">
<label class="generic-label">Notes</label>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div> </div>
</section> </section>
</form> </form>

View File

@ -5,12 +5,15 @@
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div> </div>
</header> </header>
{{> systems/fvtt-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}} {{!-- Sheet Body --}}
<section class="sheet-body"> <section class="sheet-body">
<div class="tab" data-group="primary"> {{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<ul>
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Related Attack Statistic</label> <li class="flexrow"><label class="generic-label">Related Attack Statistic</label>
<select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String"> <select class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}" data-dtype="String">
{{#select data.statistic}} {{#select data.statistic}}
@ -135,11 +138,6 @@
{{/select}} {{/select}}
</select> </select>
</li> </li>
<li class="flexrow"><label class="generic-label">Notes</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</li>
</ul> </ul>
</div> </div>

View File

@ -0,0 +1,8 @@
<div class="tab description" data-group="primary" data-tab="description">
<div>
<label class="generic-label">Description</label>
<div class="small-editor item-text-long-line">
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</div>
</div>

View File

@ -0,0 +1,5 @@
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="details">Details</a>
</nav>