Implement POC of rolling check from character sheet
This commit is contained in:
parent
fcfba63488
commit
9e72c6560f
9 changed files with 54 additions and 10 deletions
11
src/templates/sheets/actor/components/check.hbs
Normal file
11
src/templates/sheets/actor/components/check.hbs
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{!--
|
||||
!-- Render a check.
|
||||
!--
|
||||
!-- @param check-key: The key of the combat value
|
||||
!-- @param check-target-number: The check target number
|
||||
!-- @param check-label: The label for the check
|
||||
--}}
|
||||
|
||||
<div class="ds4-check rollable-check" data-check="{{check-key}}">
|
||||
{{check-label}}: {{check-target-number}}
|
||||
</div>
|
6
src/templates/sheets/actor/components/checks.hbs
Normal file
6
src/templates/sheets/actor/components/checks.hbs
Normal file
|
@ -0,0 +1,6 @@
|
|||
<div class="ds4-checks">
|
||||
{{#each config.i18n.checks as |check-label check-key|}}
|
||||
{{> systems/ds4/templates/sheets/actor/components/check.hbs check-key=check-key check-target-number=(lookup
|
||||
../data.checks check-key) check-label=check-label}}
|
||||
{{/each}}
|
||||
</div>
|
|
@ -2,8 +2,8 @@
|
|||
!-- Render a combat value.
|
||||
!--
|
||||
!-- @param combat-value-key: The key of the combat value
|
||||
!-- @param combat-value-data: The data for the attribute
|
||||
!-- @param combat-value-label: The label for the attribute
|
||||
!-- @param combat-value-data: The data for the combat value
|
||||
!-- @param combat-value-label: The label for the combat value
|
||||
--}}
|
||||
|
||||
<div class="ds4-combat-value">
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<div class="tab values" data-group="primary" data-tab="values">
|
||||
{{> systems/ds4/templates/sheets/actor/components/core-values.hbs}}
|
||||
{{> systems/ds4/templates/sheets/actor/components/combat-values.hbs}}
|
||||
{{> systems/ds4/templates/sheets/actor/components/checks.hbs}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue