Added collapsible techniques groupes, fix for skills
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
- Added a random generator feature (Demeanor, Clan and Families names courteously authorized by Edge).
|
- Added a random generator feature (Demeanor, Clan and Families names courteously authorized by Edge).
|
||||||
- This is random by design, don't expect clan logic in values.
|
- This is random by design, don't expect clan logic in values.
|
||||||
- PC sheet :
|
- PC sheet :
|
||||||
- Added collapsible skill group.
|
- Added collapsible skill/techniques groupes.
|
||||||
- Army sheet :
|
- Army sheet :
|
||||||
- Image and token now follow the commander's on drop.
|
- Image and token now follow the commander's on drop.
|
||||||
- PC/NPC sheet :
|
- PC/NPC sheet :
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<li class="skill-category-wrapper skill-category-content toggle-on-click" data-toggle="toggle-skill-category-{{categoryId}}">
|
<li class="skill-category-wrapper skill-category-content">
|
||||||
<h4 class="section-header">{{localizeSkill categoryId 'title'}}</h4>
|
<h4 class="section-header toggle-on-click" data-toggle="toggle-skill-category-{{categoryId}}">{{localizeSkill categoryId 'title'}}</h4>
|
||||||
<ul class="skill-category-skills-list toggle-skill-category-{{categoryId}} {{#ifCond data.storeInfos 'includes' (concat 'toggle-skill-category-' categoryId)}}toggle-hidden{{/ifCond}}">
|
<ul class="skill-category-skills-list toggle-skill-category-{{categoryId}} {{#ifCond data.storeInfos 'includes' (concat 'toggle-skill-category-' categoryId)}}toggle-hidden{{/ifCond}}">
|
||||||
{{#each category as |skill id|}}
|
{{#each category as |skill id|}}
|
||||||
{{> 'systems/l5r5e/templates/actors/character/skill.html' categoryId=../categoryId skill=skill skillId=id data=../data}}
|
{{> 'systems/l5r5e/templates/actors/character/skill.html' categoryId=../categoryId skill=skill skillId=id data=../data}}
|
||||||
|
|||||||
@@ -13,12 +13,14 @@
|
|||||||
{{#each data.splitTechniquesList as |list technique|}}
|
{{#each data.splitTechniquesList as |list technique|}}
|
||||||
<fieldset class="section-header flexrow">
|
<fieldset class="section-header flexrow">
|
||||||
<legend class="technique-controls">
|
<legend class="technique-controls">
|
||||||
|
<span class="technique-controls toggle-on-click" data-toggle="toggle-technique-category-{{technique}}">
|
||||||
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique)}}
|
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique)}}
|
||||||
|
</span>
|
||||||
{{#ifCond ../data.editable_not_soft_locked '&&' (lookup ../data.data.techniques technique)}}
|
{{#ifCond ../data.editable_not_soft_locked '&&' (lookup ../data.data.techniques technique)}}
|
||||||
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
|
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
</legend>
|
</legend>
|
||||||
<ul class="item-list">
|
<ul class="item-list toggle-technique-category-{{technique}} {{#ifCond ../data.storeInfos 'includes' (concat 'toggle-technique-category-' technique)}}toggle-hidden{{/ifCond}}">
|
||||||
{{#each list as |item id|}}
|
{{#each list as |item id|}}
|
||||||
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../data.editable_not_soft_locked}}
|
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../data.editable_not_soft_locked}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|||||||
Reference in New Issue
Block a user