Refactor the sections of the PC sheet into their own partials for ease of reading, and localize the Aspect block labels
This commit is contained in:
parent
be197617cc
commit
fae962dc7e
13 changed files with 350 additions and 318 deletions
65
templates/actors/char-sheet-mvp/panels/backpack.pc.hbs
Normal file
65
templates/actors/char-sheet-mvp/panels/backpack.pc.hbs
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{{#> dotdungeon.panel class="backpack" title="dotdungeon.actor.pc.panel.backpack"}}
|
||||
<label class="row">
|
||||
<span class="grow">
|
||||
{{localize "dotdungeon.actor.pc.backpack.bytes.label"}}
|
||||
</span>
|
||||
<input
|
||||
class="bytes-input"
|
||||
type="number"
|
||||
name="system.bytes"
|
||||
value="{{system.bytes}}"
|
||||
min="0"
|
||||
aria-label="{{localize "dotdungeon.aria.actor.pc.input.bytes"}}"
|
||||
aria-valuemin="0"
|
||||
aria-valuenow="{{system.bytes}}"
|
||||
>
|
||||
</label>
|
||||
<label class="row">
|
||||
<span class="grow">
|
||||
{{localize
|
||||
(concat
|
||||
"dotdungeon.settings.resourcesOrSupplies.option."
|
||||
settings.resourcesOrSupplies
|
||||
)
|
||||
}}
|
||||
{{#if settings.devMode}}
|
||||
<span class="debug-data">
|
||||
({{settings.resourcesOrSupplies}})
|
||||
</span>
|
||||
{{/if}}
|
||||
</span>
|
||||
<input
|
||||
class="supplies-count"
|
||||
type="number"
|
||||
name="system.supplies"
|
||||
value="{{system.supplies}}"
|
||||
min="0"
|
||||
max="5"
|
||||
aria-label="{{localize "dotdungeon.aria.actor.pc.input.supplies"}}"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="5"
|
||||
aria-valuenow="{{system.supplies}}"
|
||||
>
|
||||
</label>
|
||||
<label class="row">
|
||||
<span class="grow">
|
||||
{{localize "dotdungeon.actor.pc.backpack.materials.label"}}
|
||||
</span>
|
||||
<input
|
||||
class="materials-count"
|
||||
type="number"
|
||||
name="system.materials"
|
||||
value="{{system.materials}}"
|
||||
min="0"
|
||||
max="5"
|
||||
aria-label="{{localize "dotdungeon.aria.actor.pc.input.materials"}}"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="5"
|
||||
aria-valuenow="{{system.supplies}}"
|
||||
>
|
||||
</label>
|
||||
<label class="grow col">
|
||||
Inventory
|
||||
<textarea class="grow" name="system.inventoryString">{{system.inventoryString}}</textarea>
|
||||
</label>
|
||||
{{/ dotdungeon.panel}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue