Rework item sheet
This commit is contained in:
parent
0ce493bc92
commit
b97d626fc7
@ -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
|
||||||
});
|
});
|
||||||
|
@ -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"}]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,14 @@
|
|||||||
</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">
|
||||||
<ul>
|
<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">
|
||||||
@ -137,15 +142,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<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>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</form>
|
</form>
|
||||||
|
@ -6,9 +6,16 @@
|
|||||||
</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>
|
||||||
|
@ -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">
|
||||||
|
@ -6,10 +6,14 @@
|
|||||||
</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}}
|
||||||
|
|
||||||
|
<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">
|
||||||
@ -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>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
<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"/>
|
||||||
@ -17,11 +19,6 @@
|
|||||||
<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>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
<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"/>
|
||||||
@ -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>
|
||||||
|
@ -6,11 +6,12 @@
|
|||||||
</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 description" data-group="primary" data-tab="description">
|
||||||
|
|
||||||
<div class="small-editor item-text-long-line">
|
<div class="small-editor item-text-long-line">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||||
@ -20,14 +21,24 @@
|
|||||||
{{editor content=data.effects target="data.effects" button=true owner=owner editable=editable}}
|
{{editor content=data.effects target="data.effects" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</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>
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="flexrow"><label class="generic-label">Roll Needed ?</label>
|
<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>
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.rollneeded" {{checked
|
||||||
|
data.rollneeded}} /></label>
|
||||||
</li>
|
</li>
|
||||||
{{#if data.rollneeded}}
|
{{#if data.rollneeded}}
|
||||||
<li class="flexrow"><label class="generic-label">Related Statistic (only if roll is needed)</label>
|
<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 class="competence-base flexrow" type="text" name="data.statistic" value="{{data.statistic}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.statistic}}
|
{{#select data.statistic}}
|
||||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
|
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
@ -37,24 +48,29 @@
|
|||||||
|
|
||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
<label class="generic-label">Activated ? </label>
|
<label class="generic-label">Activated ? </label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked data.activated}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked
|
||||||
|
data.activated}} /></label>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">NRG Cost</label>
|
<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"/>
|
<input type="text" class="input-numeric-short padd-right" name="data.cost" value="{{data.cost}}"
|
||||||
|
data-dtype="Number" />
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">NRG Spent</label>
|
<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"/>
|
<input type="text" class="input-numeric-short padd-right" name="data.costspent" value="{{data.costspent}}"
|
||||||
|
data-dtype="Number" />
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Range</label>
|
<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 class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.range}}
|
{{#select data.range}}
|
||||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Action</label>
|
<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 class="competence-base flexrow" type="text" name="data.action" value="{{data.action}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.action}}
|
{{#select data.action}}
|
||||||
<option value="soft">Soft</option>
|
<option value="soft">Soft</option>
|
||||||
<option value="hard">Hard</option>
|
<option value="hard">Hard</option>
|
||||||
@ -64,7 +80,8 @@
|
|||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<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}}
|
||||||
<option value="instant">Instant</option>
|
<option value="instant">Instant</option>
|
||||||
<option value="active">Active</option>
|
<option value="active">Active</option>
|
||||||
@ -74,16 +91,19 @@
|
|||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Power Source</label>
|
<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"/>
|
<input type="text" class="padd-right" name="data.powersource" value="{{data.powersource}}"
|
||||||
|
data-dtype="String" />
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
<label class="generic-label">DMG Roll Needed ? </label>
|
<label class="generic-label">DMG Roll Needed ? </label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.dmgroll" {{checked data.dmgroll}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.dmgroll" {{checked
|
||||||
|
data.dmgroll}} /></label>
|
||||||
</li>
|
</li>
|
||||||
{{#if data.dmgroll}}
|
{{#if data.dmgroll}}
|
||||||
<li class="flexrow"><label class="generic-label">Related DMG Statistic </label>
|
<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 class="competence-base flexrow" type="text" name="data.dmgstatistic" value="{{data.dmgstatistic}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.dmgstatistic}}
|
{{#select data.dmgstatistic}}
|
||||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
|
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
@ -95,24 +115,22 @@
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ul class="ul-level1">
|
<ul class="ul-level1">
|
||||||
<li class="flexrow"><div class="drop-power-effect"><label>Drop Effects here !</label></div>
|
<li class="flexrow">
|
||||||
|
<div class="drop-power-effect"><label>Drop Effects here !</label></div>
|
||||||
</li>
|
</li>
|
||||||
{{#each data.effectsgained as |effect idx|}}
|
{{#each data.effectsgained as |effect idx|}}
|
||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
<label name="data.effectsgained[{{idx}}].name"><a class="view-subitem" data-type="effectsgained" data-index="{{idx}}">{{effect.name}}</a></label>
|
<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">
|
<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>
|
<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>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</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>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -5,92 +5,12 @@
|
|||||||
<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>
|
|
||||||
<li class="flexrow"><label class="generic-label">Selectable Stats ?</label>
|
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.selectablestats" {{checked data.selectablestats}}/></label>
|
|
||||||
</li>
|
|
||||||
{{#if data.selectablestats}}
|
|
||||||
<li class="flexrow"><label class="generic-label">Select 1 stat only once?</label>
|
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" name="data.statsonlyonce" {{checked data.statsonlyonce}}/></label>
|
|
||||||
</li>
|
|
||||||
<li class="flexrow"><label class="generic-label">Number of selectable stats</label>
|
|
||||||
<input type="text" class="input-numeric-short padd-right" name="data.numberstats" value="{{data.numberstats}}" data-dtype="Number"/>
|
|
||||||
</li>
|
|
||||||
{{/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>
|
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Optionnal Abilities</label>
|
|
||||||
</li>
|
|
||||||
<ul class="ul-level1">
|
|
||||||
<li class="flexrow"><div class="drop-optionnal-abilities"><label>Drop Abilities here !</label></div>
|
|
||||||
</li>
|
|
||||||
{{#each data.optionnalabilities as |ability idx|}}
|
|
||||||
<li class="flexrow">
|
|
||||||
<label name="data.optionnalabilities[{{idx}}].name"><a class="view-subitem" data-type="optionnalabilities" data-index="{{idx}}">{{ability.name}}</a></label>
|
|
||||||
<div class="item-controls padd-left">
|
|
||||||
<a class="item-control delete-subitem padd-left" data-type="optionnalabilities" data-index="{{idx}}" title="Delete Ability"><i class="fas fa-trash"></i></a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="small-editor item-text-long-line">
|
<div class="small-editor item-text-long-line">
|
||||||
@ -110,5 +30,105 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
|
<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>
|
||||||
|
<li class="flexrow"><label class="generic-label">Selectable Stats ?</label>
|
||||||
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.selectablestats" {{checked
|
||||||
|
data.selectablestats}} /></label>
|
||||||
|
</li>
|
||||||
|
{{#if data.selectablestats}}
|
||||||
|
<li class="flexrow"><label class="generic-label">Select 1 stat only once?</label>
|
||||||
|
<label class="attribute-value checkbox"><input type="checkbox" name="data.statsonlyonce" {{checked
|
||||||
|
data.statsonlyonce}} /></label>
|
||||||
|
</li>
|
||||||
|
<li class="flexrow"><label class="generic-label">Number of selectable stats</label>
|
||||||
|
<input type="text" class="input-numeric-short padd-right" name="data.numberstats" value="{{data.numberstats}}"
|
||||||
|
data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
{{/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>
|
||||||
|
|
||||||
|
<li class="flexrow"><label class="generic-label">Optionnal Abilities</label>
|
||||||
|
</li>
|
||||||
|
<ul class="ul-level1">
|
||||||
|
<li class="flexrow">
|
||||||
|
<div class="drop-optionnal-abilities"><label>Drop Abilities here !</label></div>
|
||||||
|
</li>
|
||||||
|
{{#each data.optionnalabilities as |ability idx|}}
|
||||||
|
<li class="flexrow">
|
||||||
|
<label name="data.optionnalabilities[{{idx}}].name"><a class="view-subitem" data-type="optionnalabilities"
|
||||||
|
data-index="{{idx}}">{{ability.name}}</a></label>
|
||||||
|
<div class="item-controls padd-left">
|
||||||
|
<a class="item-control delete-subitem padd-left" data-type="optionnalabilities" data-index="{{idx}}"
|
||||||
|
title="Delete Ability"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<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>
|
</section>
|
||||||
</form>
|
</form>
|
@ -7,11 +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}}
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<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">
|
||||||
@ -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>
|
||||||
|
@ -5,11 +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">
|
||||||
|
|
||||||
<div class="tab" data-group="primary">
|
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<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">
|
||||||
@ -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>
|
||||||
|
|
||||||
|
@ -6,10 +6,14 @@
|
|||||||
</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}}
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<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">
|
||||||
@ -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>
|
||||||
|
@ -5,11 +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">
|
||||||
|
|
||||||
<div class="tab" data-group="primary">
|
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<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">
|
||||||
@ -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>
|
||||||
|
|
||||||
|
8
templates/partial-item-description.html
Normal file
8
templates/partial-item-description.html
Normal 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>
|
5
templates/partial-item-nav.html
Normal file
5
templates/partial-item-nav.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user