reprise du projet
This commit is contained in:
@@ -1,22 +1,38 @@
|
||||
<form class="{{cssClass}} {{actor.type}} flexcol form" autocomplete="off">
|
||||
<form
|
||||
class="{{cssClass}} {{actor.type}} flexcol form"
|
||||
autocomplete="off"
|
||||
>
|
||||
|
||||
<div class="form">
|
||||
{{log this}}
|
||||
<aside>
|
||||
<div class="flexrow" id="edit">
|
||||
<div
|
||||
class="flexrow"
|
||||
id="edit"
|
||||
>
|
||||
<span>mode jeu</span>
|
||||
<input type="checkbox" name="flags.world.editMode"
|
||||
<input
|
||||
type="checkbox"
|
||||
name="flags.world.editMode"
|
||||
{{#if actor.flags.world.editMode}}
|
||||
checked
|
||||
{{/if}} />
|
||||
{{/if}}
|
||||
/>
|
||||
<span>mode edit</span>
|
||||
|
||||
</div>
|
||||
<img class="logo mx-auto"
|
||||
src="systems/vermine2047/assets/images/ui/logo.webp" width="200"
|
||||
alt="logo Vermine" />
|
||||
<img
|
||||
class="logo mx-auto"
|
||||
src="systems/vermine2047/assets/images/ui/logo.webp"
|
||||
width="200"
|
||||
alt="logo Vermine"
|
||||
/>
|
||||
|
||||
<div class="sidebar" data-group="dashboard" data-tab="sidebar">
|
||||
<div
|
||||
class="sidebar"
|
||||
data-group="dashboard"
|
||||
data-tab="sidebar"
|
||||
>
|
||||
<!--ID -->
|
||||
{{> "systems/vermine2047/templates/actor/character/character-id.hbs"}}
|
||||
</div>
|
||||
@@ -26,29 +42,46 @@
|
||||
{{> "systems/vermine2047/templates/actor/character/character-header.hbs"}}
|
||||
|
||||
<!-- SHEET NAVIGATION -->
|
||||
<nav class="sheet-navigation sheet-tabs tabs flex-group-center"
|
||||
data-group="primary">
|
||||
<a class="item" data-tab="character"
|
||||
data-tooltip="{{localize "VERMINE.tabs.abilities"}}">
|
||||
<nav
|
||||
class="sheet-navigation sheet-tabs tabs flex-group-center"
|
||||
data-group="primary"
|
||||
>
|
||||
<a
|
||||
class="item"
|
||||
data-tab="character"
|
||||
data-tooltip="{{localize "VERMINE.tabs.abilities"}}"
|
||||
>
|
||||
<i class="fas fa-address-card"></i>
|
||||
</a>
|
||||
|
||||
<a class="item" data-tab="totem"
|
||||
data-tooltip="{{localize "VERMINE.tabs.totem"}}">
|
||||
<a
|
||||
class="item"
|
||||
data-tab="totem"
|
||||
data-tooltip="{{localize "VERMINE.tabs.totem"}}"
|
||||
>
|
||||
<i class="fas fa-star"></i>
|
||||
</a>
|
||||
<a class="item" data-tab="equipment"
|
||||
data-tooltip="{{localize "VERMINE.tabs.equipment"}}">
|
||||
<a
|
||||
class="item"
|
||||
data-tab="equipment"
|
||||
data-tooltip="{{localize "VERMINE.tabs.equipment"}}"
|
||||
>
|
||||
<i class="fas fa-hammer"></i>
|
||||
</a>
|
||||
|
||||
<a class="item" data-tab="stories"
|
||||
data-tooltip="{{localize "VERMINE.tabs.stories"}}">
|
||||
<a
|
||||
class="item"
|
||||
data-tab="stories"
|
||||
data-tooltip="{{localize "VERMINE.tabs.stories"}}"
|
||||
>
|
||||
<i class="fas fa-book-open-reader"></i>
|
||||
</a>
|
||||
|
||||
<a class="item" data-tab="combat"
|
||||
data-tooltip="{{localize "VERMINE.tabs.combat"}}">
|
||||
<a
|
||||
class="item"
|
||||
data-tab="combat"
|
||||
data-tooltip="{{localize "VERMINE.tabs.combat"}}"
|
||||
>
|
||||
<i class="fas fa-medal"></i>
|
||||
</a>
|
||||
|
||||
@@ -60,30 +93,49 @@
|
||||
<!-- BODY -->
|
||||
<section class="sheet-body">
|
||||
<section class="sheet-content">
|
||||
<div class="tab character character-pane active" data-group="primary"
|
||||
data-tab="character">
|
||||
<div
|
||||
class="tab character character-pane active"
|
||||
data-group="primary"
|
||||
data-tab="character"
|
||||
>
|
||||
<!-- Character -->
|
||||
{{>
|
||||
"systems/vermine2047/templates/actor/character/character-features.hbs"}}
|
||||
</div>
|
||||
<div class="tab totem" data-group="primary" data-tab="totem">
|
||||
<div
|
||||
class="tab totem"
|
||||
data-group="primary"
|
||||
data-tab="totem"
|
||||
>
|
||||
<h3>{{ localize 'IDENTITY.totem'}}</h3>
|
||||
{{>
|
||||
"systems/vermine2047/templates/actor/character/character-totem.hbs"}}
|
||||
</div>
|
||||
<div class="tab equipment" data-group="primary" data-tab="equipment">
|
||||
<div
|
||||
class="tab equipment"
|
||||
data-group="primary"
|
||||
data-tab="equipment"
|
||||
>
|
||||
<h3>{{ localize 'VERMINE.equipment'}}</h3>
|
||||
<!-- Rituals -->
|
||||
{{> "systems/vermine2047/templates/actor/parts/actor-items.hbs"}}
|
||||
</div>
|
||||
<div class="tab combat" data-group="primary" data-tab="combat">
|
||||
<div
|
||||
class="tab combat"
|
||||
data-group="primary"
|
||||
data-tab="combat"
|
||||
>
|
||||
<h3>{{ localize 'VERMINE.combat'}}</h3>
|
||||
<!-- effects -->
|
||||
{{>
|
||||
"systems/vermine2047/templates/actor/character/character-combat.hbs"}}
|
||||
</div>
|
||||
|
||||
<div class="tab stories" data-group="primary" data-tab="stories">
|
||||
<div
|
||||
class="tab stories"
|
||||
data-group="primary"
|
||||
data-tab="stories"
|
||||
>
|
||||
<h3>{{ localize 'VERMINE.stories'}}</h3>
|
||||
{{>
|
||||
"systems/vermine2047/templates/actor/character/character-stories.hbs"}}
|
||||
@@ -93,4 +145,4 @@
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
@@ -4,12 +4,11 @@
|
||||
<div class="flexrow align-center combat-status">
|
||||
{{#each config.combatStatus as |dif label|}}
|
||||
<div>
|
||||
<label for="combatStatus1">{{label}}</label>
|
||||
<label for="combat-status-{{diff}}">{{label}}</label>
|
||||
<input
|
||||
id="combat-status-{{diff}}"
|
||||
type="radio"
|
||||
style="width:1rem"
|
||||
name="system.combatStatus.difficulty"
|
||||
id="combatStatus1"
|
||||
value="{{dif}}"
|
||||
{{#ife @root.system.combatStatus.difficulty dif}}checked
|
||||
{{/ife}}
|
||||
|
||||
@@ -2,84 +2,112 @@
|
||||
<h3>Caractéristiques</h3>
|
||||
<div class="grid grid-4col">
|
||||
{{#each config.abilityCategories as |abilityCategory ackey|}}
|
||||
<div class="characteristics">
|
||||
<h4 class="align-center">{{ smarttl "ABILITY_CATEGORIES" ackey }}</h4>
|
||||
{{#each @root.system.abilities as |ability key|}}
|
||||
{{#if (eq ability.category ackey) }}
|
||||
<div class="ability flexrow flex-group-center items-center">
|
||||
<label for="system.abilities.{{key}}.value"
|
||||
class="resource-label rollable flexlarge align-left" data-type="ability"
|
||||
data-label="{{ key }}">{{ smarttl "ABILITIES" key }}</label>
|
||||
<input type="number" class="hexa" name="system.abilities.{{key}}.value"
|
||||
value="{{ability.value}}" data-dtype="Number" min="1" max="5" />
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
<div class="characteristics">
|
||||
<h4 class="align-center">{{ smarttl "ABILITY_CATEGORIES" ackey }}</h4>
|
||||
{{#each @root.system.abilities as |ability key|}}
|
||||
{{#if (eq ability.category ackey) }}
|
||||
<div class="ability flexrow flex-group-center items-center">
|
||||
<label
|
||||
for="system.abilities.{{key}}.value"
|
||||
class="resource-label rollable flexlarge align-left"
|
||||
data-type="ability"
|
||||
data-label="{{ key }}"
|
||||
>{{ smarttl "ABILITIES" key }}</label>
|
||||
<input
|
||||
type="number"
|
||||
class="hexa"
|
||||
name="system.abilities.{{key}}.value"
|
||||
value="{{ability.value}}"
|
||||
data-dtype="Number"
|
||||
min="1"
|
||||
max="5"
|
||||
/>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
<h3>Compétences</h3>
|
||||
<div class="grid grid-2col">
|
||||
{{#each system.skill_categories as |skillCategory sckey|}}
|
||||
{{#if skillCategory.label}}
|
||||
<div class="col
|
||||
{{#if skillCategory.label}}
|
||||
<div class="col skill-category
|
||||
{{#ife sckey @root.system.skill_categories.preferred}}
|
||||
preferred
|
||||
{{/ife}}">
|
||||
<h4>{{ smarttl "SKILLS_CATEGORIES" sckey }}
|
||||
<input type="radio" data-tooltip="domaine de prédilection ?"
|
||||
name="system.skill_categories.preferred" value="{{sckey}}"
|
||||
{{#ife sckey @root.system.skill_categories.preferred}}
|
||||
checked
|
||||
{{/ife}}>
|
||||
</h4>
|
||||
{{#each @root.system.skills as |skill skey|}}
|
||||
<h4>{{ smarttl "SKILLS_CATEGORIES" sckey }}
|
||||
<input
|
||||
type="radio"
|
||||
data-tooltip="domaine de prédilection ?"
|
||||
name="system.skill_categories.preferred"
|
||||
value="{{sckey}}"
|
||||
{{#ife sckey @root.system.skill_categories.preferred}}
|
||||
checked
|
||||
{{/ife}}
|
||||
>
|
||||
</h4>
|
||||
{{#each @root.system.skills as |skill skey|}}
|
||||
|
||||
{{#if (eq skill.category sckey) }}
|
||||
<div class="ability flexrow ">
|
||||
<label for="system.skills.{{skey}}.value"
|
||||
class="resource-label rollable flexlarge align-left" data-type="skill"
|
||||
data-label="{{ skey }}">
|
||||
{{ smarttl "SKILLS" skey }}
|
||||
{{#if (eq skill.rarity 1)}}<sup>(I)</sup>{{/if}}
|
||||
{{#if (eq skill.rarity 2)}}<sup>(II)</sup>{{/if}}
|
||||
{{#if (eq skill.category sckey) }}
|
||||
<div class="ability flexrow ">
|
||||
<label
|
||||
for="system.skills.{{skey}}.value"
|
||||
class="resource-label rollable flexlarge align-left"
|
||||
data-type="skill"
|
||||
data-label="{{ skey }}"
|
||||
>
|
||||
{{ smarttl "SKILLS" skey }}
|
||||
{{#if (eq skill.rarity 1)}}<sup>(I)</sup>{{/if}}
|
||||
{{#if (eq skill.rarity 2)}}<sup>(II)</sup>{{/if}}
|
||||
|
||||
</label>
|
||||
<div class="specialties">
|
||||
{{#ifgt skill.value 1}}
|
||||
<i class="fas fa-add add-specialty"
|
||||
data-tooltip="ajout de spécialité"></i>
|
||||
{{/ifgt}}
|
||||
{{#each skill.specialties as |spe ind|}}
|
||||
{{#ife spe.system.skill skey}}
|
||||
<i class="specialty"
|
||||
data-tooltip="spécialité utilisable">{{spe.name}}</i>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</div>
|
||||
<select name="system.skills.{{skey}}.value" class="skill-select">
|
||||
{{selectOptions @root.config.SkillLevels selected=value
|
||||
</label>
|
||||
<div class="specialties">
|
||||
{{#ifgt skill.value 1}}
|
||||
<i
|
||||
class="fas fa-add add-specialty"
|
||||
data-tooltip="ajout de spécialité"
|
||||
></i>
|
||||
{{/ifgt}}
|
||||
{{#each skill.specialties as |spe ind|}}
|
||||
{{#ife spe.system.skill skey}}
|
||||
<i
|
||||
class="specialty"
|
||||
data-tooltip="spécialité utilisable"
|
||||
>{{spe.name}}</i>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</div>
|
||||
<select
|
||||
name="system.skills.{{skey}}.value"
|
||||
class="skill-select"
|
||||
>
|
||||
{{selectOptions @root.config.SkillLevels selected=value
|
||||
localize=true}}
|
||||
|
||||
</select>
|
||||
<span class="hexa">{{skill.value}}</span>
|
||||
<div class="skill-dots flexrow">
|
||||
{{#repeat (skillLevel "dicePool" skill.value) 0 "dicepool"}}
|
||||
<div class="dice-pool-dot"
|
||||
data-tooltip="{{localize "VERMINE.pool"}}"></div>
|
||||
{{/repeat}}
|
||||
{{#repeat (skillLevel "reroll" skill.value) 0 "dicereroll"}}
|
||||
<div class="dice-reroll-dot"
|
||||
data-tooltip="{{localize "VERMINE.reroll"}}">X</div>
|
||||
{{/repeat}}
|
||||
</select>
|
||||
<span class="hexa">{{skill.value}}</span>
|
||||
<div class="skill-dots flexrow">
|
||||
{{#repeat (skillLevel "dicePool" skill.value) 0 "dicepool"}}
|
||||
<div
|
||||
class="dice-pool-dot"
|
||||
data-tooltip="{{localize "VERMINE.pool"}}"
|
||||
></div>
|
||||
{{/repeat}}
|
||||
{{#repeat (skillLevel "reroll" skill.value) 0 "dicereroll"}}
|
||||
<div
|
||||
class="dice-reroll-dot"
|
||||
data-tooltip="{{localize "VERMINE.reroll"}}"
|
||||
>X</div>
|
||||
{{/repeat}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
+224
-107
@@ -1,12 +1,32 @@
|
||||
<form id="dice-pool-form" class="vermine form"
|
||||
data-actor-id="{{ speakerId }}">
|
||||
{{log this}}
|
||||
<input type="hidden" name="label" id="label" value="{{ label }}" />
|
||||
<input type="hidden" name="rollType" id="rollType" value="{{ rollType }}" />
|
||||
<input type="hidden" name="abilityScore" id="abilityScore"
|
||||
value="{{ abilityScore }}" />
|
||||
<input type="hidden" name="skillScore" id="skillScore"
|
||||
value="{{ skillScore }}" />
|
||||
<form
|
||||
id="dice-pool-form"
|
||||
class="vermine form"
|
||||
data-actor-id="{{ speakerId }}"
|
||||
>
|
||||
<input
|
||||
type="hidden"
|
||||
name="label"
|
||||
id="label"
|
||||
value="{{ label }}"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
name="rollType"
|
||||
id="rollType"
|
||||
value="{{ rollType }}"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
name="abilityScore"
|
||||
id="abilityScore"
|
||||
value="{{ abilityScore }}"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
name="skillScore"
|
||||
id="skillScore"
|
||||
value="{{ skillScore }}"
|
||||
/>
|
||||
<div class="dice-pool flexcol">
|
||||
<h1 class="flexrow row lgb flex-group-center">
|
||||
<span>Type de jet <strong>{{#if (eq rollType 'skill')}}{{ localize
|
||||
@@ -18,30 +38,54 @@
|
||||
<div class="flexrow">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.difficulty'}}</label>
|
||||
<select class="info-value" data-roll="tue"
|
||||
<select
|
||||
class="info-value"
|
||||
data-roll="tue"
|
||||
data-dtype="String"
|
||||
type="number" name="difficulty" id="difficulty" min="3" max="10">
|
||||
type="number"
|
||||
name="difficulty"
|
||||
id="difficulty"
|
||||
min="3"
|
||||
max="10"
|
||||
>
|
||||
{{#select difficulty }}
|
||||
<option value="{{ diffLevel 'difficulty' 1}}">{{ diffLevel 'label' 1}} -
|
||||
{{ diffLevel 'difficulty' 1}}</option>
|
||||
<option value="{{ diffLevel 'difficulty' 2}}">{{ diffLevel 'label' 2}} -
|
||||
{{ diffLevel 'difficulty' 2}}</option>
|
||||
<option value="{{ diffLevel 'difficulty' 3}}" selected>{{ diffLevel
|
||||
<option value="{{ diffLevel 'difficulty' 1}}">{{ diffLevel 'label' 1}} -
|
||||
{{ diffLevel 'difficulty' 1}}
|
||||
</option>
|
||||
<option value="{{ diffLevel 'difficulty' 2}}">{{ diffLevel 'label' 2}} -
|
||||
{{ diffLevel 'difficulty' 2}}
|
||||
</option>
|
||||
<option
|
||||
value="{{ diffLevel 'difficulty' 3}}"
|
||||
selected
|
||||
>{{ diffLevel
|
||||
'label' 3}} - {{ diffLevel 'difficulty' 3}}</option>
|
||||
<option value="{{ diffLevel 'difficulty' 4}}">{{ diffLevel 'label' 4}} -
|
||||
{{ diffLevel 'difficulty' 4}}</option>
|
||||
<option value="{{ diffLevel 'difficulty' 5}}">{{ diffLevel 'label' 5}} -
|
||||
{{ diffLevel 'difficulty' 5}}</option>
|
||||
<option value="{{ diffLevel 'difficulty' 4}}">{{ diffLevel 'label' 4}} -
|
||||
{{ diffLevel 'difficulty' 4}}
|
||||
</option>
|
||||
<option value="{{ diffLevel 'difficulty' 5}}">{{ diffLevel 'label' 5}} -
|
||||
{{ diffLevel 'difficulty' 5}}
|
||||
</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
<label for="handicap">Handicap</label>
|
||||
<select class="info-value" data-roll="tue"
|
||||
<select
|
||||
class="info-value"
|
||||
data-roll="tue"
|
||||
data-dtype="String"
|
||||
type="number" name="handicap" id="handicap" min="0" max="2">
|
||||
type="number"
|
||||
name="handicap"
|
||||
id="handicap"
|
||||
min="0"
|
||||
max="2"
|
||||
>
|
||||
{{#select difficulty }}
|
||||
<option value="1" selected>aucun</option>
|
||||
<option value="2">(I)</option>
|
||||
<option value="3">(II)</option>
|
||||
<option
|
||||
value="1"
|
||||
selected
|
||||
>aucun</option>
|
||||
<option value="2">(I)</option>
|
||||
<option value="3">(II)</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
@@ -49,28 +93,37 @@
|
||||
<h2 class="flexcol">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.ability'}}</label>
|
||||
<select class="info-value" data-roll="true"
|
||||
<select
|
||||
class="info-value"
|
||||
data-roll="true"
|
||||
data-dtype="String"
|
||||
type="number" name="ability" id="ability" min="1" max="5">
|
||||
type="number"
|
||||
name="ability"
|
||||
id="ability"
|
||||
min="1"
|
||||
max="5"
|
||||
>
|
||||
<option value="0">-- Choisissez une caractéristique
|
||||
--</option>
|
||||
{{#each config.abilityCategories as |abilCategory catkey|}}
|
||||
|
||||
<optgroup label="{{ smarttlk 'ABILITY_CATEGORIES' catkey 'name' }}">
|
||||
{{#each @root.actor.system.abilities as |abil key|}}
|
||||
{{#ife abil.category catkey}}
|
||||
<option value="{{abil.value}}"
|
||||
data-label="{{key}}"
|
||||
{{#ife @root.rollType "ability"}}
|
||||
{{#ife @root.labelKey key}}
|
||||
selected="true"
|
||||
{{/ife}}
|
||||
{{/ife}}>{{ smarttlk 'ABILITIES' key 'name'
|
||||
<optgroup label="{{ smarttlk 'ABILITY_CATEGORIES' catkey 'name' }}">
|
||||
{{#each @root.actor.system.abilities as |abil key|}}
|
||||
{{#ife abil.category catkey}}
|
||||
<option
|
||||
value="{{abil.value}}"
|
||||
data-label="{{key}}"
|
||||
{{#ife @root.rollType "ability"}}
|
||||
{{#ife @root.labelKey key}}
|
||||
selected="true"
|
||||
{{/ife}}
|
||||
{{/ife}}
|
||||
>{{ smarttlk 'ABILITIES' key 'name'
|
||||
}} / {{abil.value}}</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
|
||||
</optgroup>
|
||||
</optgroup>
|
||||
|
||||
{{/each}}
|
||||
</select>
|
||||
@@ -78,53 +131,71 @@
|
||||
<h3 class="flexcol">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.skill_title'}}</label>
|
||||
<select class="info-value" data-roll="true"
|
||||
<select
|
||||
class="info-value"
|
||||
data-roll="true"
|
||||
data-dtype="String"
|
||||
type="number" name="skill" id="skill" min="1" max="5">
|
||||
type="number"
|
||||
name="skill"
|
||||
id="skill"
|
||||
min="1"
|
||||
max="5"
|
||||
>
|
||||
<option>-- Choisissez une compétence
|
||||
--</option>
|
||||
{{#each config.skillCategories as |skillCategory catkey|}}
|
||||
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' catkey 'name' }}">
|
||||
{{#each @root.actor.system.skills as |skill key|}}
|
||||
{{#ife skill.category catkey}}
|
||||
<option value="{{skill.value}}" data-pool="{{skillLevel "dicePool"
|
||||
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' catkey 'name' }}">
|
||||
{{#each @root.actor.system.skills as |skill key|}}
|
||||
{{#ife skill.category catkey}}
|
||||
<option
|
||||
value="{{skill.value}}"
|
||||
data-pool="{{skillLevel "dicePool"
|
||||
skill.value}}"
|
||||
data-label="{{key}}"
|
||||
data-reroll="{{skillLevel "reroll" skill.value}}"
|
||||
{{#ife @root.rollType "skill"}}
|
||||
{{#ife @root.labelKey key}}
|
||||
selected="true"
|
||||
{{/ife}}
|
||||
{{/ife}}>
|
||||
<b>{{ smarttlk 'SKILLS' key 'name' }},</b>
|
||||
<i>{{skillLevel "label" skill.value}}</i>
|
||||
</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</optgroup>
|
||||
data-label="{{key}}"
|
||||
data-reroll="{{skillLevel "reroll" skill.value}}"
|
||||
{{#ife @root.rollType "skill"}}
|
||||
{{#ife @root.labelKey key}}
|
||||
selected="true"
|
||||
{{/ife}}
|
||||
{{/ife}}
|
||||
>
|
||||
<b>{{ smarttlk 'SKILLS' key 'name' }},</b>
|
||||
<i>{{skillLevel "label" skill.value}}</i>
|
||||
</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</optgroup>
|
||||
{{/each}}
|
||||
</select>
|
||||
{{log availableSpecialties.length}}
|
||||
{{#if availableSpecialties.length}}
|
||||
<label class="label">{{localize 'VERMINE.specialty'}} (+1D)</label>
|
||||
<div class="flexrow">
|
||||
<span data-spec-skill="{{spec.system.skill}}">
|
||||
<i>aucunes</i>
|
||||
<input type="radio" data-roll="true" name="usingSpecialization"
|
||||
id="usingSpecialization"
|
||||
value="aucune">
|
||||
</span>
|
||||
{{#each availableSpecialties as |spec ind|}}
|
||||
<label class="label">{{localize 'VERMINE.specialty'}} (+1D)</label>
|
||||
<div class="flexrow">
|
||||
<span data-spec-skill="{{spec.system.skill}}">
|
||||
<i>aucunes</i>
|
||||
<input
|
||||
type="radio"
|
||||
data-roll="true"
|
||||
name="usingSpecialization"
|
||||
id="usingSpecialization"
|
||||
value="aucune"
|
||||
>
|
||||
</span>
|
||||
{{#each availableSpecialties as |spec ind|}}
|
||||
|
||||
<span data-spec-skill="{{spec.system.skill}}">
|
||||
<i>{{spec.name}}</i>
|
||||
<input type="radio" data-roll="true" name="usingSpecialization"
|
||||
id="usingSpecialization"
|
||||
value="{{spec.name}}" {{#if specialty}}checked{{/if}}>
|
||||
</span>
|
||||
{{/each}}
|
||||
<span data-spec-skill="{{spec.system.skill}}">
|
||||
<i>{{spec.name}}</i>
|
||||
<input
|
||||
type="radio"
|
||||
data-roll="true"
|
||||
name="usingSpecialization"
|
||||
id="usingSpecialization"
|
||||
value="{{spec.name}}"
|
||||
{{#if specialty}}checked{{/if}}
|
||||
>
|
||||
</span>
|
||||
{{/each}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</h3>
|
||||
</div>
|
||||
@@ -132,25 +203,44 @@
|
||||
<div class="grid grid-2col">
|
||||
<div class="flexrow row smb">
|
||||
<label class="label">{{localize 'VERMINE.help'}} (+1D)</label>
|
||||
<input type="checkbox" data-roll="true" name="helped" id="helped"
|
||||
value="1" {{#if
|
||||
help}}checked{{/if}}>
|
||||
<input
|
||||
type="checkbox"
|
||||
data-roll="true"
|
||||
name="helped"
|
||||
id="helped"
|
||||
value="1"
|
||||
{{#if
|
||||
help}}checked{{/if}}
|
||||
>
|
||||
</div>
|
||||
<div class="flexrow row mdb">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.group'}}</label>
|
||||
<input type="number" data-roll="true" class="numeric-entry"
|
||||
<input
|
||||
type="number"
|
||||
data-roll="true"
|
||||
class="numeric-entry"
|
||||
style="text-align: center;"
|
||||
name="group" id="group" min="0" max="5" value="0">
|
||||
name="group"
|
||||
id="group"
|
||||
min="0"
|
||||
max="5"
|
||||
value="0"
|
||||
>
|
||||
</div>
|
||||
<div class="flexrow row mdb">
|
||||
<label class="label">{{localize
|
||||
'VERMINE.self_control'}} + <span id="self_control_value">0</span>D
|
||||
</label>
|
||||
<input type="range" id="self_control" data-roll="true"
|
||||
<input
|
||||
type="range"
|
||||
id="self_control"
|
||||
data-roll="true"
|
||||
name="self_control"
|
||||
min="0"
|
||||
max="0" value="0" />
|
||||
max="0"
|
||||
value="0"
|
||||
/>
|
||||
</div>
|
||||
<div class="flexcol row mdb">
|
||||
<label class="label">{{localize 'VERMINE.tooling'}} (+1D)</label>
|
||||
@@ -158,16 +248,26 @@
|
||||
<div class="item-list grid grid-4col">
|
||||
<h3>
|
||||
<i>Auncun</i>
|
||||
<input type="radio" data-roll="true" name="usingTools"
|
||||
id="usingTools" value="0" checked>
|
||||
<input
|
||||
type="radio"
|
||||
data-roll="true"
|
||||
name="usingTools"
|
||||
id="usingTools"
|
||||
value="0"
|
||||
checked
|
||||
>
|
||||
</h3>
|
||||
{{#each availableItems as |item ind|}}
|
||||
<span>
|
||||
<i>{{item.name}}</i>
|
||||
<input type="radio" data-roll="true" name="usingTools"
|
||||
id="usingTools"
|
||||
value="{{item.name}}">
|
||||
</span>
|
||||
<span>
|
||||
<i>{{item.name}}</i>
|
||||
<input
|
||||
type="radio"
|
||||
data-roll="true"
|
||||
name="usingTools"
|
||||
id="usingTools"
|
||||
value="{{item.name}}"
|
||||
>
|
||||
</span>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -176,25 +276,42 @@
|
||||
<label class="label">utiliser des dés totems ?
|
||||
</label>
|
||||
{{#ifgt @root.actor.system.adaptation.totems.human.value 0}}
|
||||
<div class="totem-human">
|
||||
<h4 for="human-totem">totem humain </h4>
|
||||
<input type="checkbox" data-roll="true" name="human-totem"
|
||||
id="human-totem"
|
||||
value="1">
|
||||
</div>
|
||||
<div class="totem-human">
|
||||
<h4 for="human-totem">totem humain </h4>
|
||||
<input
|
||||
type="checkbox"
|
||||
data-roll="true"
|
||||
name="human-totem"
|
||||
id="human-totem"
|
||||
value="1"
|
||||
>
|
||||
</div>
|
||||
{{/ifgt}}
|
||||
{{#ifgt @root.actor.system.adaptation.totems.adapted.value 0}}
|
||||
<div class="totem-adapted">
|
||||
<h4 for="human-totem">totem adapté </h4>
|
||||
<input type="checkbox" data-roll="true" name="adapted-totem"
|
||||
id="adapted-totem"
|
||||
value="1">
|
||||
</div>
|
||||
<div class="totem-adapted">
|
||||
<h4 for="human-totem">totem adapté </h4>
|
||||
<input
|
||||
type="checkbox"
|
||||
data-roll="true"
|
||||
name="adapted-totem"
|
||||
id="adapted-totem"
|
||||
value="1"
|
||||
>
|
||||
</div>
|
||||
{{/ifgt}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p><input type="hidden" name="speakerId" value="{{ speakerId }}" />
|
||||
<input type="hidden" name="skillLabel" value="{{ skill }}" /></p>
|
||||
</form>
|
||||
<p><input
|
||||
type="hidden"
|
||||
name="speakerId"
|
||||
value="{{ speakerId }}"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
name="skillLabel"
|
||||
value="{{ skill }}"
|
||||
/>
|
||||
</p>
|
||||
</form>
|
||||
@@ -1,20 +1,44 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<form
|
||||
class="{{cssClass}}"
|
||||
autocomplete="off"
|
||||
>
|
||||
{{log this}}
|
||||
<header class="sheet-header">
|
||||
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
|
||||
<img
|
||||
class="profile-img"
|
||||
src="{{item.img}}"
|
||||
data-edit="img"
|
||||
title="{{item.name}}"
|
||||
/>
|
||||
<div class="header-fields">
|
||||
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
|
||||
<select name="system.skill" class="skill-select">
|
||||
<h1 class="charname"><input
|
||||
name="name"
|
||||
type="text"
|
||||
value="{{item.name}}"
|
||||
placeholder="Name"
|
||||
/></h1>
|
||||
<select
|
||||
name="system.skill"
|
||||
class="skill-select"
|
||||
>
|
||||
{{#each @root.config.skillCategories as |skillCategory sckey|}}
|
||||
{{log skillCategory}}
|
||||
{{log @root.config.model.Actor.character.skills}}
|
||||
|
||||
|
||||
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' sckey 'name' }}">
|
||||
|
||||
{{#each @root.config.model.Actor.character.skills as |skill key|}}
|
||||
|
||||
|
||||
{{log sckey}}
|
||||
{{log skill}}
|
||||
{{#ife skill.category sckey}}
|
||||
<option value="{{key}}" {{#ife key @root.item.system.skill}} selected {{/ife}}>{{ smarttlk 'SKILLS' key 'name' }}</option>
|
||||
<option
|
||||
value="{{key}}"
|
||||
{{#ife key @root.item.system.skill}}
|
||||
selected
|
||||
{{/ife}}
|
||||
>{{ smarttlk 'SKILLS' key 'name' }}</option>
|
||||
{{/ife}}
|
||||
{{/each}}
|
||||
</optgroup>
|
||||
@@ -24,4 +48,4 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
</form>
|
||||
</form>
|
||||
Reference in New Issue
Block a user