mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Remade to array structure
This commit is contained in:
parent
6140b4baaf
commit
e6419b89d0
6 changed files with 33 additions and 98 deletions
|
|
@ -25,37 +25,35 @@
|
|||
<fieldset>
|
||||
<legend>
|
||||
<span>{{localize "DAGGERHEART.SETTINGS.Scene.sceneEnvironments"}}</span>
|
||||
<a data-action="addSceneEnvironment"><i class="fa-solid fa-plus"></i></a>
|
||||
</legend>
|
||||
|
||||
<div class="scene-environments">
|
||||
{{#each data.sceneEnvironments as |data key|}}
|
||||
<div class="scene-environment" data-key="{{key}}">
|
||||
{{#if data.environment}}
|
||||
{{#each data.sceneEnvironments as |environment index|}}
|
||||
<div class="scene-environment" data-index="{{index}}">
|
||||
{{#if environment}}
|
||||
<div class="scene-environment-inner">
|
||||
<img src="{{data.environment.img}}" />
|
||||
<h5>{{data.environment.name}}</h5>
|
||||
<img src="{{environment.img}}" />
|
||||
<h5>{{environment.name}}</h5>
|
||||
<div class="tags">
|
||||
<div class="tag">
|
||||
<span>
|
||||
{{localize (concat 'DAGGERHEART.GENERAL.Tiers.' data.environment.system.tier)}}
|
||||
{{localize (concat 'DAGGERHEART.GENERAL.Tiers.' environment.system.tier)}}
|
||||
</span>
|
||||
</div>
|
||||
{{#if data.environment.system.type}}
|
||||
{{#if environment.system.type}}
|
||||
<div class="tag">
|
||||
<span>
|
||||
{{localize (concat 'DAGGERHEART.CONFIG.EnvironmentType.' data.environment.system.type '.label')}}
|
||||
{{localize (concat 'DAGGERHEART.CONFIG.EnvironmentType.' environment.system.type '.label')}}
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<span class="drag-area hint">{{localize "DAGGERHEART.SETTINGS.Scene.noEnvironmentLinked"}}</span>
|
||||
{{/if}}
|
||||
<a data-action="removeSceneEnvironment" data-key="{{key}}"><i class="fa-solid fa-trash remove-icon"></i></a>
|
||||
<a data-action="removeSceneEnvironment" data-index="{{index}}"><i class="fa-solid fa-trash remove-icon"></i></a>
|
||||
</div>
|
||||
{{/each}}
|
||||
<span class="drag-area">{{localize "DAGGERHEART.SETTINGS.Scene.dragEnvironmentHere"}}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue