fvtt-pegasus-rpg/templates/partial-vehicle-stat-block.html

82 lines
4.0 KiB
HTML
Raw Normal View History

2022-09-05 08:57:02 +02:00
<li class="item flexrow list-item color-class-{{lower stat.abbrev}} item-stat-roll-vehicle" data-attr-key="{{key}}">
<div class="flexcol">
<div class="flexrow">
<span class="stat-icon">
2022-09-08 21:26:45 +02:00
<img class="stat-icon" src="systems/fvtt-pegasus-rpg/images/icons/icon_vehicle_{{stat.abbrev}}.webp">
2022-09-05 08:57:02 +02:00
</span>
<span class="stat-label stat-margin" name="{{key}}">
<h4 class="stat-text-white stat-margin"><a class="roll-stat stat-margin"
2022-09-08 21:26:45 +02:00
data-stat-key="{{key}}">{{upper stat.abbrev}}</a></h4>
2022-09-05 08:57:02 +02:00
</span>
<select class="status-small-label color-class-common" type="text" name="system.statistics.{{key}}.level"
2022-09-16 17:36:58 +02:00
value="{{stat.level}}" data-dtype="Number" disabled>
2022-09-05 08:57:02 +02:00
{{#select stat.level}}
{{{@root.optionsDiceList}}}
{{/select}}
</select>
</div>
2022-09-08 21:26:45 +02:00
<div class="flexrow stat-text-white">
2022-09-05 08:57:02 +02:00
<span class="stat-label stat-margin" name="{{key}}">Current level</span>
<select class="status-small-label color-class-common" type="text" name="system.statistics.{{key}}.currentlevel"
value="{{stat.currentlevel}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat.currentlevel}}
2022-09-16 17:36:58 +02:00
{{{@root.optionsDiceList}}}
2022-09-05 08:57:02 +02:00
{{/select}}
</select>
</div>
2022-09-08 21:26:45 +02:00
{{#if (eq key "man")}}
<div class="flexrow stat-text-white">
<span class="stat-label stat-margin" name="{{key}}">45° Turning Arcs</span>
<select class="status-small-label color-class-common" type="text" name="system.statistics.{{key}}.turningarc45"
value="{{stat.turningarc45}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat.turningarc45}}
2022-09-16 17:36:58 +02:00
{{{@root.optionsDiceList}}}
2022-09-08 21:26:45 +02:00
{{/select}}
</select>
</div>
{{/if}}
2022-09-09 08:33:28 +02:00
{{#if (eq key "hr")}}
2022-09-08 21:26:45 +02:00
<div class="flexrow stat-text-white">
<span class="stat-label stat-margin" name="{{key}}">Size</span>
<input type="text" class="input-numeric-short" name="system.statistics.{{key}}.size" value="{{stat.size}}" data-dtype="Number" />
</div>
{{/if}}
{{#if (eq key "pc")}}
<div class="flexrow stat-text-white">
<span class="stat-label stat-margin" name="{{key}}">Cur NRG</span>
<input type="text" class="input-numeric-short" name="system.statistics.{{key}}.curnrg" value="{{stat.curnrg}}" data-dtype="Number" />
2022-09-16 17:36:58 +02:00
<span class="padd-right status-small-label no-grow">
<a class="vehicle-current-nrg-plus plus-minus-button">+</a>
<a class="vehicle-current-nrg-minus plus-minus-button">&nbsp;-</a>
</span>
2022-09-18 17:30:15 +02:00
<span class="stat-label stat-margin" name="{{key}}">Av NRG</span>
<input type="text" class="input-numeric-short" name="system.statistics.{{key}}.avgnrg" value="{{stat.avgnrg}}" data-dtype="Number" />
<span class="stat-label stat-margin" name="{{key}}">Max NRG</span>
<input type="text" class="input-numeric-short" name="system.statistics.{{key}}.maxnrg" value="{{stat.maxnrg}}" data-dtype="Number" />
2022-09-08 21:26:45 +02:00
</div>
{{/if}}
{{#if (eq key "ad")}}
<div class="flexrow stat-text-white">
<span class="stat-label stat-margin" name="{{key}}">Acc Mode</span>
<select class="status-small-label color-class-common" type="text" name="system.statistics.{{key}}.accmode"
value="{{stat.accmode}}" data-dtype="String" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat.accmode}}
<option value="acc">ACC</option>
<option value="dec">DEC</option>
{{/select}}
</select>
<span class="stat-label stat-margin" name="{{key}}">Curr. speed</span>
2022-09-09 08:33:28 +02:00
<select class="status-small-label color-class-common current-speed-change" type="text" name="system.statistics.{{key}}.currentspeed"
2022-09-08 21:26:45 +02:00
value="{{stat.currentspeed}}" data-dtype="String" {{#unless @root.editScore}}disabled{{/unless}}>
{{#select stat.currentspeed}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html}}
{{/select}}
</select>
</div>
{{/if}}
2022-09-05 08:57:02 +02:00
</div>
</li>