fvtt-cthulhu-eternal/templates/protagonist-main.hbs

79 lines
4.3 KiB
Handlebars

<section class="protagonist-main protagonist-main-{{ifThen isPlayMode 'play' 'edit'}}">
{{!log "protagonist-main" this}}
<fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.protagonist"}}</legend>
<div class="protagonist-pc protagonist-pc-{{ifThen isPlayMode 'play' 'edit'}}">
<div class="protagonist-left">
<div class="protagonist-left-image">
<img class="protagonist-img" src="{{actor.img}}" data-edit="img" data-action="editImage"
data-tooltip="{{actor.name}}" />
</div>
</div>
<div class="protagonist-right">
<div class="protagonist-name">
{{formInput fields.name value=source.name rootId=partId disabled=isPlayMode}}
<a class="control" data-action="toggleSheet" data-tooltip="CTHULHUETERNAL.ToggleSheet"
data-tooltip-direction="UP">
<i class="fa-solid fa-user-{{ifThen isPlayMode 'lock' 'pen'}}"></i>
</a>
</div>
<div class="protagonist-infos">
<div class="protagonist-hp">
<div class="protagonist-hp-value">
{{formField systemFields.hp.fields.value value=system.hp.value}}
</div>
<div class="hp-separator">/</div>
<div class="protagonist-hp-max">
{{formInput systemFields.hp.fields.max value=system.hp.max rootId=partId disabled=isPlayMode}}
</div>
</div>
</div>
</div>
</div>
</fieldset>
<fieldset class="protagonist-characteristics protagonist-characteristics-{{ifThen isPlayMode 'play' 'edit'}}">
<legend>{{localize "CTHULHUETERNAL.Label.characteristics"}}</legend>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="save">
<i class="fa fa-question-circle" aria-hidden="true" data-tooltip="{{tooltipsCharacteristic.str}}"
style="font-size: small;"></i>
{{formField systemFields.characteristics.fields.str.fields.value value=system.characteristics.str.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.str}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="save">
<i class="fa fa-question-circle" aria-hidden="true" data-tooltip="{{tooltipsCharacteristic.dex}}"
style="font-size: small;"></i>
{{formField systemFields.characteristics.fields.dex.fields.value value=system.characteristics.dex.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.dex}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="save">
<i class="fa fa-question-circle" aria-hidden="true" data-tooltip="{{tooltipsCharacteristic.dex}}"
style="font-size: small;"></i>
{{formField systemFields.characteristics.fields.con.fields.value value=system.characteristics.con.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.con}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="save">
<i class="fa fa-question-circle" aria-hidden="true" data-tooltip="{{tooltipsCharacteristic.int}}"
style="font-size: small;"></i>
{{formField systemFields.characteristics.fields.int.fields.value value=system.characteristics.int.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.int}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="save">
<i class="fa fa-question-circle" aria-hidden="true" data-tooltip="{{tooltipsCharacteristic.pow}}"
style="font-size: small;"></i>
{{formField systemFields.characteristics.fields.pow.fields.value value=system.characteristics.pow.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.pow}}
</div>
<div class="protagonist-characteristic" data-drag="true" data-drag-type="save">
<i class="fa fa-question-circle" aria-hidden="true" data-tooltip="{{tooltipsCharacteristic.cha}}"
style="font-size: small;"></i>
{{formField systemFields.characteristics.fields.cha.fields.value value=system.characteristics.cha.value
rootId=partId disabled=isPlayMode classes="rollable" dataset=rollType.cha}}
</div>
</fieldset>
<fieldset class="protagonist-resources protagonist-resources-{{ifThen isPlayMode 'play' 'edit'}}">
</fieldset>
</section>