mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Fixedin PrototypeToken preview
This commit is contained in:
parent
b78f5bb69e
commit
74cab38c1d
1 changed files with 37 additions and 14 deletions
|
|
@ -1,15 +1,38 @@
|
||||||
<div class="tab scrollable{{#if tab.active}} active{{/if}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
<div class="tab scrollable{{#if tab.active}} active{{/if}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
|
||||||
{{formGroup fields.texture.fields.src value=source.texture.src rootId=rootId}}
|
<div class="token-image-group">
|
||||||
{{#if randomImgEnabled}}
|
{{formGroup fields.texture.fields.src value=source.texture.src rootId=rootId}}
|
||||||
{{formGroup fields.randomImg value=source.randomImg classes="slim" rootId=rootId}}
|
{{#if randomImgEnabled}}
|
||||||
{{else if hasAlternates}}
|
{{formGroup fields.randomImg value=source.randomImg classes="slim" rootId=rootId}}
|
||||||
<div class="form-group">
|
{{else if hasAlternates}}
|
||||||
<label for="{{rootId}}-alternateImages">{{localize "TOKEN.ImageAlts"}}</label>
|
<div class="form-group">
|
||||||
<select id="{{rootId}}-alternateImages" class="alternate-images" name="alternateImages">
|
<label for="{{rootId}}-alternateImages">{{localize "TOKEN.ImageAlts"}}</label>
|
||||||
{{selectOptions alternateImages selected=source.texture.src blank=""}}
|
<select id="{{rootId}}-alternateImages" class="alternate-images" name="alternateImages">
|
||||||
</select>
|
{{selectOptions alternateImages selected=source.texture.src blank=""}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if imagePreview}}
|
||||||
|
<div class="{{imagePreview.cls}}">
|
||||||
|
{{#if imagePreview.isVideo}}
|
||||||
|
<video class="token-image-thumb" src="{{imagePreview.src}}" autoplay muted loop playsinline
|
||||||
|
disablepictureinpicture></video>
|
||||||
|
{{else}}
|
||||||
|
<img class="token-image-thumb" src="{{imagePreview.src}}" alt="{{localize "TOKEN.ImagePreview"}}">
|
||||||
|
{{/if}}
|
||||||
|
<div class="token-image-controls">
|
||||||
|
<button type="button" class="cycle-prev icon fa-solid fa-chevron-left" data-action="cycleImage"
|
||||||
|
data-delta="-1" aria-label="{{localize "TOKEN.ImageCyclePrev"}}"
|
||||||
|
{{#unless imagePreview.hasPrev}} disabled{{/unless}}></button>
|
||||||
|
<span class="counter">{{imagePreview.current}} / {{imagePreview.total}}</span>
|
||||||
|
<button type="button" class="cycle-next icon fa-solid fa-chevron-right" data-action="cycleImage"
|
||||||
|
data-delta="1" aria-label="{{localize "TOKEN.ImageCycleNext"}}"
|
||||||
|
{{#unless imagePreview.hasNext}} disabled{{/unless}}></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "Token Size"}}</legend>
|
<legend>{{localize "Token Size"}}</legend>
|
||||||
{{#if usesActorSize}}
|
{{#if usesActorSize}}
|
||||||
|
|
@ -23,10 +46,10 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div id="tokenSizeDimensions" class="form-group slim" {{#if actorSizeDisable}}data-tooltip="{{localize "DAGGERHEART.APPLICATIONS.TokenConfig.actorSizeUsed"}}"{{/if}}>
|
<div id="tokenSizeDimensions" class="form-group slim" {{#if actorSizeDisable}}data-tooltip="{{localize "DAGGERHEART.APPLICATIONS.TokenConfig.actorSizeUsed"}}"{{/if}}>
|
||||||
<label>
|
<span class="label">
|
||||||
{{localize "TOKEN.Dimensions"}} <span class="units">({{localize "GridSpaces"}})</span>
|
{{localize "TOKEN.Size"}}
|
||||||
<i class="fa-solid fa-lock" {{#unless actorSizeDisable}}style="opacity: 0%;"{{/unless}}></i>
|
<span class="units">({{localize "MEASUREMENT.GridSpaces"}})</span>
|
||||||
</label>
|
</span>
|
||||||
<div class="form-fields">
|
<div class="form-fields">
|
||||||
<label for="{{rootId}}-width">{{localize "DOCUMENT.FIELDS.width.label"}}</label>
|
<label for="{{rootId}}-width">{{localize "DOCUMENT.FIELDS.width.label"}}</label>
|
||||||
{{formInput fields.width value=source.width id=(concat rootId "-width") disabled=actorSizeDisable}}
|
{{formInput fields.width value=source.width id=(concat rootId "-width") disabled=actorSizeDisable}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue