Add npc sheet template + css adjustments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
{{!-- Sheet Header --}}
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="150" width="150"/>
|
||||
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}"/>
|
||||
<div class="header-fields identity-wrapper">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/identity.html' }}
|
||||
|
||||
@@ -11,6 +11,30 @@
|
||||
<label class="attribute-label">{{ localize 'l5r5e.social.titles' }}</label>
|
||||
<input type="text" name="data.social_standing.titles" value="{{data.social.titles}}"/>
|
||||
</li>
|
||||
<li>
|
||||
<fieldset>
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.social.advantages' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.item as |item id|}}
|
||||
{{#if item.isEquipment }}
|
||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
</li>
|
||||
<li>
|
||||
<fieldset>
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.social.disadvantages' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.item as |item id|}}
|
||||
{{#if item.isEquipment }}
|
||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
</li>
|
||||
</ul>
|
||||
<fieldset>
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.notes' }}</legend>
|
||||
|
||||
@@ -1,104 +1,38 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
|
||||
{{json this}}
|
||||
|
||||
{{!-- Sheet Header --}}
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="150" width="150"/>
|
||||
<div class="header-fields identity-wrapper">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
|
||||
{{> 'systems/l5r5e/templates/sheets/npc/identity.html' }}
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.notes' }}</legend>
|
||||
{{ editor content=data.notes.value target="data.notes.value" button=true editable=editable }}
|
||||
</fieldset>
|
||||
<div class="header-fields">
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/social.html' }}
|
||||
<h2>{{ localize 'l5r5e.attributes.title' }}</h2>
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/rings.html' }}
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/attributes.html' }}
|
||||
{{> 'systems/l5r5e/templates/sheets/npc/social.html' }}
|
||||
{{> 'systems/l5r5e/templates/sheets/npc/rings.html' }}
|
||||
{{> 'systems/l5r5e/templates/sheets/npc/attributes.html' }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div>
|
||||
conflict rank
|
||||
<br>martial : <input type="text" name="data.conflict_rank.martial" value="{{data.conflict_rank.martial}}" data-dtype="Number" placeholder="0"/>
|
||||
<br>social : <input type="text" name="data.conflict_rank.social" value="{{data.conflict_rank.social}}" data-dtype="Number" placeholder="0"/>
|
||||
</div>
|
||||
<div>
|
||||
Npc Type
|
||||
<br>
|
||||
<!-- Npc Type (minion / adversary) -->
|
||||
<select class="attribute-dtype" name="data.type">
|
||||
{{#select data.type}}
|
||||
{{#each data.types as |t|}}
|
||||
<option value="{{t}}">{{t}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
attitude:
|
||||
<input type="text" name="data.attitude" value="{{data.attitude}}" data-dtype="String" placeholder=""/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
Skills
|
||||
<ul>
|
||||
{{#each data.skills as |skillValue skillCatId|}}
|
||||
<li>
|
||||
{{localizeSkill skillCatId "title"}} :
|
||||
<input type="text" name="data.skills.{{skillCatId}}" value="{{skillValue}}" data-dtype="Number" placeholder="0"/>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
rings_affinities
|
||||
|
||||
<br>
|
||||
strengths :
|
||||
<select class="attribute-dtype" name="data.rings_affinities.strength.ring">
|
||||
{{#select data.rings_affinities.strength.ring}}
|
||||
{{#each data.stances as |stance|}}
|
||||
<option value="{{stance}}">{{localizeRing stance}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.rings_affinities.strength.value" value="{{data.rings_affinities.strength.value}}" data-dtype="Number" placeholder="0"/>
|
||||
|
||||
<br>
|
||||
weakness :
|
||||
<select class="attribute-dtype" name="data.rings_affinities.weakness.ring">
|
||||
{{#select data.rings_affinities.weakness.ring}}
|
||||
{{#each data.stances as |stance|}}
|
||||
<option value="{{stance}}">{{localizeRing stance}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.rings_affinities.weakness.value" value="{{data.rings_affinities.weakness.value}}" data-dtype="Number" placeholder="0"/>
|
||||
|
||||
</div>
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Skills Tab --}}
|
||||
<article class="tab skills" data-group="primary" data-tab="skills">
|
||||
<ul class="skills-wrapper">
|
||||
{{#each data.skills as |category id|}}
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/category.html' category=category categoryId=id}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/feats.html' }}
|
||||
{{> 'systems/l5r5e/templates/sheets/npc/skill.html' }}
|
||||
<article>
|
||||
{{> 'systems/l5r5e/templates/sheets/npc/feats.html' }}
|
||||
</article>
|
||||
<article>
|
||||
{{> 'systems/l5r5e/templates/sheets/npc/narrative.html' }}
|
||||
</article>
|
||||
<article>
|
||||
{{> 'systems/l5r5e/templates/item/items.html' }}
|
||||
</article>
|
||||
<article>
|
||||
{{> 'systems/l5r5e/templates/item/weapons.html' }}
|
||||
</article>
|
||||
<article>
|
||||
{{> 'systems/l5r5e/templates/item/armors.html' }}
|
||||
</article>
|
||||
|
||||
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/narrative.html' }}
|
||||
|
||||
{{> 'systems/l5r5e/templates/item/items.html' }}
|
||||
|
||||
{{> 'systems/l5r5e/templates/item/weapons.html' }}
|
||||
|
||||
{{> 'systems/l5r5e/templates/item/armors.html' }}
|
||||
|
||||
</section>
|
||||
</form>
|
||||
48
system/templates/sheets/npc/attributes.html
Normal file
48
system/templates/sheets/npc/attributes.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<ul class="attributes-wrapper">
|
||||
<li class="endurance-content">
|
||||
<label class="attribute-label">
|
||||
<strong>{{ localize 'l5r5e.attributes.endurance' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.endurance" value="{{data.endurance}}" data-dtype="Number" disabled/>
|
||||
</label>
|
||||
<label class="attribute-label">
|
||||
<strong>{{ localize 'l5r5e.attributes.fatigue' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.fatigue" value="{{data.fatigue}}" data-dtype="Number"/>
|
||||
</label>
|
||||
<p class="quick-rules"> {{ localize 'l5r5e.attributes.endurancetip' }}</p>
|
||||
</li>
|
||||
<li class="composure-content">
|
||||
<label class="attribute-label">
|
||||
<strong>{{ localize 'l5r5e.attributes.composure' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.composure" value="{{data.composure}}" data-dtype="Number" disabled/>
|
||||
</label>
|
||||
<label class="attribute-label">
|
||||
<strong>{{ localize 'l5r5e.attributes.strife' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.strife" value="{{data.strife}}" data-dtype="Number"/>
|
||||
</label>
|
||||
<p class="quick-rules"> {{ localize 'l5r5e.attributes.composuretip' }}</p>
|
||||
</li>
|
||||
<li class="focus-content">
|
||||
<label class="attribute-label">
|
||||
<strong>{{ localize 'l5r5e.attributes.focus' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.focus" value="{{data.focus}}" data-dtype="Number" disabled/>
|
||||
</label>
|
||||
<p class="quick-rules"> {{ localize 'l5r5e.attributes.focustip' }}</p>
|
||||
</li>
|
||||
<li class="vigilante-content">
|
||||
<label class="attribute-label">
|
||||
<strong>{{ localize 'l5r5e.attributes.vigilante' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.vigilante" value="{{data.vigilante}}" data-dtype="Number" disabled/>
|
||||
</label>
|
||||
<p class="quick-rules"> {{ localize 'l5r5e.attributes.vigilantetip' }}</p>
|
||||
</li>
|
||||
<li class="void-content">
|
||||
<label class="attribute-label">
|
||||
<strong>{{ localize 'l5r5e.attributes.voidpoints' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.void_points.current" value="{{data.void_points.current}}" data-dtype="Number"/>
|
||||
</label>
|
||||
<label class="attribute-label">
|
||||
<strong>{{ localize 'l5r5e.max' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.void_points.max" value="{{data.void_points.max}}" data-dtype="Number" disabled/>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
8
system/templates/sheets/npc/conflict.html
Normal file
8
system/templates/sheets/npc/conflict.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<fieldset class="stances-content flexrow">
|
||||
<legend class="section-header">{{ localize 'l5r5e.conflict.stance' }}</legend>
|
||||
<ul>
|
||||
{{#each data.rings as |ringValue ringId|}}
|
||||
{{> 'systems/l5r5e/templates/sheets/actor/stance.html' stance=../data.stance ringId=ringId }}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
15
system/templates/sheets/npc/feats.html
Normal file
15
system/templates/sheets/npc/feats.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<div class="feats-wrapper">
|
||||
<fieldset class="section-header flexrow">
|
||||
<legend class="feat-controls">
|
||||
{{ localize 'l5r5e.feats' }}
|
||||
<a class="feat-control feat-add" title="Add Item"><i class="fas fa-plus"></i></a>
|
||||
</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.items as |item id|}}
|
||||
{{#if item.isFeat }}
|
||||
{{> 'systems/l5r5e/templates/item/feat-entry.html' feat=item }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
19
system/templates/sheets/npc/identity.html
Normal file
19
system/templates/sheets/npc/identity.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<ul>
|
||||
<li>{{!-- Npc Type (minion / adversary) --}}
|
||||
<select class="attribute-dtype" name="data.type">
|
||||
{{#select data.type}}
|
||||
{{#each data.types as |t|}}
|
||||
<option value="{{t}}">{{t}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
{{!-- Martial --}}
|
||||
<li>
|
||||
<input type="text" name="data.conflict_rank.martial" value="{{data.conflict_rank.martial}}" data-dtype="Number" placeholder="0"/>
|
||||
</li>
|
||||
{{!-- Social --}}
|
||||
<li>
|
||||
<input type="text" name="data.conflict_rank.social" value="{{data.conflict_rank.social}}" data-dtype="Number" placeholder="0"/>
|
||||
</li>
|
||||
</ul>
|
||||
20
system/templates/sheets/npc/narrative.html
Normal file
20
system/templates/sheets/npc/narrative.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<fieldset class="narrative-content">
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.social.advantages' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.item as |item id|}}
|
||||
{{#if item.isEquipment }}
|
||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
<fieldset class="narrative-content">
|
||||
<legend class="text-block-header">{{ localize 'l5r5e.social.disadvantages' }}</legend>
|
||||
<ul class="item-list">
|
||||
{{#each actor.item as |item id|}}
|
||||
{{#if item.isEquipment }}
|
||||
{{> 'systems/l5r5e/templates/item/item-entry.html' item=item id=id }}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
37
system/templates/sheets/npc/rings.html
Normal file
37
system/templates/sheets/npc/rings.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<ul class="rings">
|
||||
<li id="earth">
|
||||
<label class="attribute-label earth centered-input">
|
||||
<i class="i_earth"></i>
|
||||
<strong>{{ localizeRing 'earth' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.rings.earth" value="{{data.rings.earth}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li id="air">
|
||||
<label class="attribute-label air centered-input">
|
||||
<i class="i_air"></i>
|
||||
<strong>{{ localizeRing 'air' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.rings.air" value="{{data.rings.air}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li id="water">
|
||||
<label class="attribute-label water centered-input">
|
||||
<i class="i_water"></i>
|
||||
<strong>{{ localizeRing 'water' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.rings.water" value="{{data.rings.water}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li id="fire">
|
||||
<label class="attribute-label fire centered-input">
|
||||
<i class="i_fire"></i>
|
||||
<strong>{{ localizeRing 'fire' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.rings.fire" value="{{data.rings.fire}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li id="void">
|
||||
<label class="attribute-label void centered-input">
|
||||
<i class="i_void"></i>
|
||||
<strong>{{ localizeRing 'void' }}</strong>
|
||||
<input class="centered-input" type="text" name="data.rings.void" value="{{data.rings.void}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
10
system/templates/sheets/npc/skill.html
Normal file
10
system/templates/sheets/npc/skill.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<ul class="npc-skill">{{!-- Skills --}}
|
||||
{{#each data.skills as |skillValue skillCatId|}}
|
||||
<li>
|
||||
<label>
|
||||
{{localizeSkill skillCatId "title"}}
|
||||
<input type="text" name="data.skills.{{skillCatId}}" value="{{skillValue}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
43
system/templates/sheets/npc/social.html
Normal file
43
system/templates/sheets/npc/social.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<ul class="social-content">
|
||||
<li>
|
||||
<label class="attribute-label centered-input">
|
||||
{{ localize 'l5r5e.social.honor' }}
|
||||
<input class="centered-input" type="text" name="data.social.honor" value="{{data.social.honor}}" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label centered-input">
|
||||
{{ localize 'l5r5e.social.glory' }}
|
||||
<input class="centered-input" type="text" name="data.social.glory" value="{{data.social.glory}}" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label centered-input">
|
||||
{{ localize 'l5r5e.social.status' }}
|
||||
<input class="centered-input" type="text" name="data.social.status" value="{{data.social.status}}" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
{{!-- Strength --}}
|
||||
<select class="attribute-dtype" name="data.rings_affinities.strength.ring">
|
||||
{{#select data.rings_affinities.strength.ring}}
|
||||
{{#each data.stances as |stance|}}
|
||||
<option value="{{stance}}">{{localizeRing stance}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.rings_affinities.strength.value" value="{{data.rings_affinities.strength.value}}" data-dtype="Number" placeholder="0"/>,
|
||||
{{!-- Weakness --}}
|
||||
<select class="attribute-dtype" name="data.rings_affinities.weakness.ring">
|
||||
{{#select data.rings_affinities.weakness.ring}}
|
||||
{{#each data.stances as |stance|}}
|
||||
<option value="{{stance}}">{{localizeRing stance}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.rings_affinities.weakness.value" value="{{data.rings_affinities.weakness.value}}" data-dtype="Number" placeholder="0"/>
|
||||
{{!-- Attitude --}}
|
||||
<input type="text" name="data.attitude" value="{{data.attitude}}" data-dtype="String" placeholder=""/>
|
||||
<h2>{{ localize 'l5r5e.attributes.title' }}</h2>
|
||||
</li>
|
||||
</ul>
|
||||
7
system/templates/sheets/npc/stance.html
Normal file
7
system/templates/sheets/npc/stance.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<li class="stance-content">
|
||||
<label for="stance_{{ringId}}" class="stance-title {{ringId}}">
|
||||
{{ localizeRing ringId }}
|
||||
<input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/>
|
||||
</label>
|
||||
<p class="quick-rules">{{ localizeStanceTip ringId }}</p>
|
||||
</li>
|
||||
Reference in New Issue
Block a user