This commit is contained in:
WBHarry 2026-04-19 20:58:34 +02:00
parent 1fea8438ba
commit 7af3f07a26
14 changed files with 260 additions and 16 deletions

View file

@ -0,0 +1,3 @@
<div>
<div class="dialog-title">{{localize "Tiers"}}</div>
</div>

View file

@ -0,0 +1,26 @@
<section class="tab scrollable {{tab.cssClass}} {{tab.id}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
<div class="tier-tools">
<select class="option-type-select">
{{selectOptions optionTypes selected=selectedOption blank=""}}
</select>
<button data-action="addTierOption" data-tier="{{tab.tier}}" {{#unless selectedOption}}disabled{{/unless}}>{{localize "Add Levelup Option"}}</button>
</div>
{{#with (lookup item.system.levelupOptionTiers tab.tier)}}
{{#unless (empty this)}}
{{#each this as |option key|}}
<fieldset>
<legend><a data-action="removeTierOption" data-tier="{{../../tab.tier}}" data-key="{{key}}"><i class="fa-solid fa-trash"></i></a></legend>
<div class="tier-container">
{{formGroup @root.fields.label value=option.label name=(concat "system.levelOptionTiers." ../../tab.tier "." key ".label") localize=true }}
{{formGroup @root.fields.type value=option.type name=(concat "system.levelOptionTiers." ../../tab.tier "." key ".type") localize=true }}
<div class="two-columns even">
{{formGroup @root.fields.checkboxSelections value=option.checkboxSelections name=(concat "system.levelOptionTiers." ../../tab.tier "." key ".checkboxSelections") localize=true }}
{{formGroup @root.fields.minCost value=option.minCost name=(concat "system.levelOptionTiers." ../../tab.tier "." key ".minCost") localize=true }}
</div>
</div>
</fieldset>
{{/each}}
{{/unless}}
{{/with}}
</section>

View file

@ -0,0 +1,5 @@
<div>
{{> "systems/daggerheart/templates/dialogs/levelupOptionsDialog/parts/tier.hbs" tab=tabs.tier2}}
{{> "systems/daggerheart/templates/dialogs/levelupOptionsDialog/parts/tier.hbs" tab=tabs.tier3}}
{{> "systems/daggerheart/templates/dialogs/levelupOptionsDialog/parts/tier.hbs" tab=tabs.tier4}}
<div>