forked from GitHub-Mirrors/foundry-sw5e
npc-sheet work continued
This commit is contained in:
parent
2d8cc8cda2
commit
3d93ec8e90
3 changed files with 202 additions and 161 deletions
|
@ -421,7 +421,7 @@
|
||||||
}
|
}
|
||||||
.item-name {
|
.item-name {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
.modesto();
|
//.modesto();
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
37
sw5e.css
37
sw5e.css
|
@ -461,9 +461,7 @@
|
||||||
}
|
}
|
||||||
.sw5e.sheet .items-list .items-header .item-name {
|
.sw5e.sheet .items-list .items-header .item-name {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
font-family: 'Russo One';
|
font-size: 16px;
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
}
|
||||||
.sw5e.sheet .items-list .item-name {
|
.sw5e.sheet .items-list .item-name {
|
||||||
flex: 2;
|
flex: 2;
|
||||||
|
@ -1060,9 +1058,7 @@
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
.sw5e.sheet.item {
|
.sw5e.sheet.item {
|
||||||
min-height: 400px;
|
min-height: 420px;
|
||||||
max-height: 95%;
|
|
||||||
min-width: 480px;
|
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
/* Sheet Header */
|
/* Sheet Header */
|
||||||
/* ----------------------------------------- */
|
/* ----------------------------------------- */
|
||||||
|
@ -1083,7 +1079,7 @@
|
||||||
border: 2px solid #000;
|
border: 2px solid #000;
|
||||||
}
|
}
|
||||||
.sw5e.sheet.item .sheet-header .item-subtitle {
|
.sw5e.sheet.item .sheet-header .item-subtitle {
|
||||||
flex: 0 0 100px;
|
flex: 0 0 80px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
@ -1538,3 +1534,30 @@
|
||||||
max-width: 40px;
|
max-width: 40px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
input[type="number"] {
|
||||||
|
width: calc(100% - 2px);
|
||||||
|
min-width: 20px;
|
||||||
|
height: 26px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
padding: 1px 3px;
|
||||||
|
margin: 0;
|
||||||
|
color: #191813;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: inherit;
|
||||||
|
text-align: inherit;
|
||||||
|
line-height: inherit;
|
||||||
|
border: 1px solid #7a7971;
|
||||||
|
border-radius: 3px;
|
||||||
|
-webkit-user-select: text;
|
||||||
|
-moz-user-select: text;
|
||||||
|
-ms-user-select: text;
|
||||||
|
user-select: text;
|
||||||
|
-moz-appearance: textfield;
|
||||||
|
}
|
||||||
|
input[type="number"]:focus {
|
||||||
|
box-shadow: 0 0 5px red;
|
||||||
|
}
|
||||||
|
input[type="number"]::-webkit-inner-spin-button,
|
||||||
|
input[type="number"]::-webkit-outer-spin-button {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
<form class="{{cssClass}} swalt-sheet" autocomplete="off">
|
<form class="{{cssClass}} swalt-sheet" autocomplete="off">
|
||||||
|
|
||||||
{{!-- NPC Sheet Header --}}
|
{{!-- NPC Sheet Header --}}
|
||||||
<header class="panel">
|
<header class="panel">
|
||||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img"/>
|
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
|
||||||
<h1 class="character-name">
|
<h1 class="character-name">
|
||||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
|
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
|
||||||
</h1>
|
</h1>
|
||||||
<div class="level-experience">
|
<div class="level-experience">
|
||||||
<div class="charlevel">
|
<div class="charlevel">
|
||||||
{{ localize "SW5E.AbbreviationCR" }}
|
{{ localize "SW5E.AbbreviationCR" }}
|
||||||
<input name="data.details.cr" type="text" value="{{labels.cr}}" placeholder="1"/>
|
<input name="data.details.cr" type="text" value="{{labels.cr}}" placeholder="1" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="experience">
|
<div class="experience">
|
||||||
<span class="max">{{data.details.xp.value}} XP</span>
|
<span class="max">{{data.details.xp.value}} XP</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<section class="header-details flexrow" style="display: none;">
|
<section class="header-details flexrow" style="display: none;">
|
||||||
|
|
||||||
|
|
||||||
<!-- <aside class="header-exp flexcol">
|
<!-- <aside class="header-exp flexcol">
|
||||||
<div class="cr">
|
<div class="cr">
|
||||||
<label>{{ localize "SW5E.AbbreviationCR" }}</label>
|
<label>{{ localize "SW5E.AbbreviationCR" }}</label>
|
||||||
<input name="data.details.cr" type="text" value="{{labels.cr}}" placeholder="1"/>
|
<input name="data.details.cr" type="text" value="{{labels.cr}}" placeholder="1"/>
|
||||||
|
@ -30,153 +30,171 @@
|
||||||
</div>
|
</div>
|
||||||
</aside> -->
|
</aside> -->
|
||||||
|
|
||||||
{{!-- Character Summary --}}
|
{{!-- Character Summary --}}
|
||||||
<ul class="summary flexrow">
|
<ul class="summary flexrow">
|
||||||
<li>
|
<li>
|
||||||
<span>{{lookup config.actorSizes data.traits.size}}</span>
|
<span>{{lookup config.actorSizes data.traits.size}}</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}" placeholder="{{ localize 'SW5E.Alignment' }}"/>
|
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}"
|
||||||
</li>
|
placeholder="{{ localize 'SW5E.Alignment' }}" />
|
||||||
<li>
|
</li>
|
||||||
<input type="text" name="data.details.type" value="{{data.details.type}}" placeholder="{{ localize 'SW5E.Type' }}"/>
|
<li>
|
||||||
</li>
|
<input type="text" name="data.details.type" value="{{data.details.type}}"
|
||||||
<li>
|
placeholder="{{ localize 'SW5E.Type' }}" />
|
||||||
<input type="text" name="data.details.source" value="{{data.details.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
</ul>
|
<input type="text" name="data.details.source" value="{{data.details.source}}"
|
||||||
|
placeholder="{{ localize 'SW5E.Source' }}" />
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
{{!-- Header Attributes --}}
|
{{!-- Header Attributes --}}
|
||||||
<ul class="attributes flexrow">
|
<ul class="attributes flexrow">
|
||||||
<li class="attribute health">
|
<li class="attribute health">
|
||||||
<h4 class="attribute-name box-title rollable">{{ localize "SW5E.Health" }}</h4>
|
<h4 class="attribute-name box-title rollable">{{ localize "SW5E.Health" }}</h4>
|
||||||
<div class="attribute-value multiple">
|
<div class="attribute-value multiple">
|
||||||
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}" placeholder="10" data-dtype="Number"/>
|
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
||||||
<span class="sep"> / </span>
|
placeholder="10" data-dtype="Number" />
|
||||||
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}" placeholder="10" data-dtype="Number"/>
|
<span class="sep"> / </span>
|
||||||
</div>
|
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
||||||
<footer class="attribute-footer">
|
placeholder="10" data-dtype="Number" />
|
||||||
<input name="data.attributes.hp.formula" class="hpformula" type="text" placeholder="{{ localize 'SW5E.HealthFormula' }}"
|
</div>
|
||||||
value="{{data.attributes.hp.formula}}"/>
|
<footer class="attribute-footer">
|
||||||
</footer>
|
<input name="data.attributes.hp.formula" class="hpformula" type="text"
|
||||||
</li>
|
placeholder="{{ localize 'SW5E.HealthFormula' }}" value="{{data.attributes.hp.formula}}" />
|
||||||
|
</footer>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="attribute">
|
<li class="attribute">
|
||||||
<h4 class="attribute-name box-title">{{ localize "SW5E.ArmorClass" }}</h4>
|
<h4 class="attribute-name box-title">{{ localize "SW5E.ArmorClass" }}</h4>
|
||||||
<div class="attribute-value">
|
<div class="attribute-value">
|
||||||
<input name="data.attributes.ac.value" type="number" value="{{data.attributes.ac.value}}" placeholder="10"/>
|
<input name="data.attributes.ac.value" type="number" value="{{data.attributes.ac.value}}"
|
||||||
</div>
|
placeholder="10" />
|
||||||
<footer class="attribute-footer">
|
</div>
|
||||||
<span>{{ localize "SW5E.Proficiency" }}</span>
|
<footer class="attribute-footer">
|
||||||
<span>{{numberFormat data.attributes.prof decimals=0 sign=true}}</span>
|
<span>{{ localize "SW5E.Proficiency" }}</span>
|
||||||
</footer>
|
<span>{{numberFormat data.attributes.prof decimals=0 sign=true}}</span>
|
||||||
</li>
|
</footer>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="attribute">
|
<li class="attribute">
|
||||||
<h4 class="attribute-name box-title">{{ localize "SW5E.Speed" }}</h4>
|
<h4 class="attribute-name box-title">{{ localize "SW5E.Speed" }}</h4>
|
||||||
<div class="attribute-value">
|
<div class="attribute-value">
|
||||||
<input name="data.attributes.speed.value" type="text"
|
<input name="data.attributes.speed.value" type="text" value="{{data.attributes.speed.value}}"
|
||||||
value="{{data.attributes.speed.value}}" placeholder="0"/>
|
placeholder="0" />
|
||||||
</div>
|
</div>
|
||||||
<footer class="attribute-footer">
|
<footer class="attribute-footer">
|
||||||
<input type="text" class="speed" name="data.attributes.speed.special"
|
<input type="text" class="speed" name="data.attributes.speed.special"
|
||||||
value="{{data.attributes.speed.special}}" placeholder="{{ localize 'SW5E.SpeedSpecial' }}"/>
|
value="{{data.attributes.speed.special}}"
|
||||||
</footer>
|
placeholder="{{ localize 'SW5E.SpeedSpecial' }}" />
|
||||||
</li>
|
</footer>
|
||||||
</ul>
|
</li>
|
||||||
</section>
|
</ul>
|
||||||
</header>
|
</section>
|
||||||
|
</header>
|
||||||
|
|
||||||
{{!-- NPC Sheet Navigation --}}
|
{{!-- NPC Sheet Navigation --}}
|
||||||
<nav class="sheet-navigation tabs" data-group="primary">
|
<nav class="sheet-navigation tabs" data-group="primary">
|
||||||
<a class="item active" data-tab="attributes">{{ localize "SW5E.Attributes" }}</a>
|
<a class="item active" data-tab="attributes">{{ localize "SW5E.Attributes" }}</a>
|
||||||
<a class="item" data-tab="features">{{ localize "SW5E.Features" }}</a>
|
<a class="item" data-tab="features">{{ localize "SW5E.Features" }}</a>
|
||||||
<a class="item" data-tab="powerbook">{{ localize "SW5E.Powerbook" }}</a>
|
<a class="item" data-tab="powerbook">{{ localize "SW5E.Powerbook" }}</a>
|
||||||
<a class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</a>
|
<a class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{!-- NPC Sheet Body --}}
|
{{!-- NPC Sheet Body --}}
|
||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
<div class="tab attributes flexrow" data-group="primary" data-tab="attributes">
|
<div class="tab attributes flexrow" data-group="primary" data-tab="attributes">
|
||||||
|
|
||||||
{{!-- Ability Scores --}}
|
{{!-- Ability Scores --}}
|
||||||
<ul class="ability-scores flexrow">
|
<ul class="ability-scores flexrow">
|
||||||
{{#each data.abilities as |ability id|}}
|
{{#each data.abilities as |ability id|}}
|
||||||
<li class="ability {{#if ability.proficient}}proficient{{/if}}" data-ability="{{id}}">
|
<li class="ability {{#if ability.proficient}}proficient{{/if}}" data-ability="{{id}}">
|
||||||
<h4 class="ability-name box-title rollable">{{ability.label}}</h4>
|
<h4 class="ability-name box-title rollable">{{ability.label}}</h4>
|
||||||
<input class="ability-score" name="data.abilities.{{id}}.value" type="number" value="{{ability.value}}" placeholder="10"/>
|
<input class="ability-score" name="data.abilities.{{id}}.value" type="number"
|
||||||
<div class="ability-modifiers flexrow">
|
value="{{ability.value}}" placeholder="10" />
|
||||||
<span class="ability-mod" title="Modifier">{{numberFormat ability.mod decimals=0 sign=true}}</span>
|
<div class="ability-modifiers flexrow">
|
||||||
<input type="hidden" name="data.abilities.{{id}}.proficient" value="{{ability.proficient}}" data-dtype="Number"/>
|
<span class="ability-mod"
|
||||||
<a class="proficiency-toggle ability-proficiency" title="{{ localize 'SW5E.Proficiency' }}">{{{ability.icon}}}</a>
|
title="Modifier">{{numberFormat ability.mod decimals=0 sign=true}}</span>
|
||||||
<span class="ability-save" title="Saving Throw">{{numberFormat ability.save decimals=0 sign=true}}</span>
|
<input type="hidden" name="data.abilities.{{id}}.proficient" value="{{ability.proficient}}"
|
||||||
</div>
|
data-dtype="Number" />
|
||||||
</li>
|
<a class="proficiency-toggle ability-proficiency"
|
||||||
{{/each}}
|
title="{{ localize 'SW5E.Proficiency' }}">{{{ability.icon}}}</a>
|
||||||
</ul>
|
<span class="ability-save"
|
||||||
|
title="Saving Throw">{{numberFormat ability.save decimals=0 sign=true}}</span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
|
||||||
{{!-- Skills --}}
|
{{!-- Skills --}}
|
||||||
<ul class="skills-list">
|
<ul class="skills-list">
|
||||||
{{#each data.skills as |skill s|}}
|
{{#each data.skills as |skill s|}}
|
||||||
<li class="skill flexrow {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
|
<li class="skill flexrow {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
|
||||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}" data-dtype="Number"/>
|
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}" data-dtype="Number" />
|
||||||
<a class="proficiency-toggle skill-proficiency" title="{{skill.hover}}">{{{skill.icon}}}</a>
|
<a class="proficiency-toggle skill-proficiency" title="{{skill.hover}}">{{{skill.icon}}}</a>
|
||||||
<h4 class="skill-name rollable">{{skill.label}}</h4>
|
<h4 class="skill-name rollable">{{skill.label}}</h4>
|
||||||
<span class="skill-ability">{{skill.ability}}</span>
|
<span class="skill-ability">{{skill.ability}}</span>
|
||||||
<span class="skill-mod">{{numberFormat skill.total decimals=0 sign=true}}</span>
|
<span class="skill-mod">{{numberFormat skill.total decimals=0 sign=true}}</span>
|
||||||
<span class="skill-passive">({{skill.passive}})</span>
|
<span class="skill-passive">({{skill.passive}})</span>
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<section class="center-pane flexcol">
|
<section class="center-pane flexcol">
|
||||||
|
|
||||||
{{!-- Legendary Actions --}}
|
{{!-- Legendary Actions --}}
|
||||||
<div class="counters">
|
<div class="counters">
|
||||||
<div class="counter flexrow legendary">
|
<div class="counter flexrow legendary">
|
||||||
<h4>{{ localize "SW5E.LegAct" }}</h4>
|
<h4>{{ localize "SW5E.LegAct" }}</h4>
|
||||||
<div class="counter-value">
|
<div class="counter-value">
|
||||||
<input name="data.resources.legact.value" type="number" value="{{data.resources.legact.value}}" placeholder="0"/>
|
<input name="data.resources.legact.value" type="number"
|
||||||
<span class="sep">/</span>
|
value="{{data.resources.legact.value}}" placeholder="0" />
|
||||||
<input name="data.resources.legact.max" type="number" value="{{data.resources.legact.max}}" placeholder="0"/>
|
<span class="sep">/</span>
|
||||||
</div>
|
<input name="data.resources.legact.max" type="number" value="{{data.resources.legact.max}}"
|
||||||
</div>
|
placeholder="0" />
|
||||||
<div class="counter flexrow legendary">
|
</div>
|
||||||
<h4>{{ localize "SW5E.LegRes" }}</h4>
|
</div>
|
||||||
<div class="counter-value">
|
<div class="counter flexrow legendary">
|
||||||
<input name="data.resources.legres.value" type="number" value="{{data.resources.legres.value}}" placeholder="0"/>
|
<h4>{{ localize "SW5E.LegRes" }}</h4>
|
||||||
<span class="sep">/</span>
|
<div class="counter-value">
|
||||||
<input name="data.resources.legres.max" type="number" value="{{data.resources.legres.max}}" placeholder="0"/>
|
<input name="data.resources.legres.value" type="number"
|
||||||
</div>
|
value="{{data.resources.legres.value}}" placeholder="0" />
|
||||||
</div>
|
<span class="sep">/</span>
|
||||||
<div class="counter flexrow lair">
|
<input name="data.resources.legres.max" type="number" value="{{data.resources.legres.max}}"
|
||||||
<h4>{{ localize "SW5E.LairAct" }}</h4>
|
placeholder="0" />
|
||||||
<div class="counter-value">
|
</div>
|
||||||
<input name="data.resources.lair.value" type="checkbox" value="{{data.resources.lair.value}}"
|
</div>
|
||||||
data-dtype="Boolean" {{checked data.resources.lair.value}}/>
|
<div class="counter flexrow lair">
|
||||||
<input name="data.resources.lair.initiative" type="number" value="{{data.resources.lair.initiative}}" placeholder="20"/>
|
<h4>{{ localize "SW5E.LairAct" }}</h4>
|
||||||
</div>
|
<div class="counter-value">
|
||||||
</div>
|
<input name="data.resources.lair.value" type="checkbox"
|
||||||
</div>
|
value="{{data.resources.lair.value}}" data-dtype="Boolean"
|
||||||
|
{{checked data.resources.lair.value}} />
|
||||||
|
<input name="data.resources.lair.initiative" type="number"
|
||||||
|
value="{{data.resources.lair.initiative}}" placeholder="20" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{!-- Traits --}}
|
{{!-- Traits --}}
|
||||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-traits.html"}}
|
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-traits.html"}}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- Features Tab --}}
|
{{!-- Features Tab --}}
|
||||||
<div class="tab features flexcol" data-group="primary" data-tab="features">
|
<div class="tab features flexcol" data-group="primary" data-tab="features">
|
||||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-features.html" sections=features}}
|
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-features.html" sections=features}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- Powerbook Tab --}}
|
{{!-- Powerbook Tab --}}
|
||||||
<div class="tab powerbook flexcol" data-group="primary" data-tab="powerbook">
|
<div class="tab powerbook flexcol" data-group="primary" data-tab="powerbook">
|
||||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-powerbook.html"}}
|
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-powerbook.html"}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- Biography Tab --}}
|
{{!-- Biography Tab --}}
|
||||||
<div class="tab biography flexcol" data-group="primary" data-tab="biography">
|
<div class="tab biography flexcol" data-group="primary" data-tab="biography">
|
||||||
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
|
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</form>
|
</form>
|
Loading…
Add table
Add a link
Reference in a new issue