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

94 lines
4.3 KiB
HTML
Raw Permalink 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}}">
2022-09-26 17:35:44 +02:00
{{#if (eq key "ad")}}
<h4 class="stat-text-white stat-margin">{{upper stat.abbrev}}</h4>
{{else}}
2022-09-05 08:57:02 +02:00
<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-26 17:35:44 +02:00
{{/if}}
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}}
2022-09-25 14:45:02 +02:00
{{#if (eq key "ad")}}
{{{@root.optionsLevel}}}
{{else}}
{{{@root.optionsDiceList}}}
{{/if}}
2022-09-05 08:57:02 +02:00
{{/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>
2022-09-26 20:57:55 +02:00
<select class="status-small-label color-class-common currentlevel-change" type="text" name="system.statistics.{{key}}.currentlevel"
value="{{stat.currentlevel}}" data-stat-key="{{key}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}}>
2022-09-05 08:57:02 +02:00
{{#select stat.currentlevel}}
2022-09-25 14:45:02 +02:00
{{#if (eq key "ad")}}
{{{@root.optionsLevel}}}
{{else}}
{{{@root.optionsDiceList}}}
{{/if}}
{{/select}}
2022-09-05 08:57:02 +02:00
</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"
2022-09-26 20:57:55 +02:00
value="{{stat.turningarc45}}" data-dtype="Number" {{#unless @root.editScore}}disabled{{/unless}} disabled>
2022-09-08 21:26:45 +02:00
{{#select stat.turningarc45}}
2022-09-25 14:45:02 +02:00
{{{@root.optionsLevel}}}
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>
2022-09-21 16:54:34 +02:00
<input type="text" class="input-numeric-short" value="{{@root.avgNRG}}" data-dtype="Number" disabled/>
2022-09-18 17:30:15 +02:00
<span class="stat-label stat-margin" name="{{key}}">Max NRG</span>
2022-09-21 16:54:34 +02:00
<input type="text" class="input-numeric-short" name="system.statistics.{{key}}.maxnrg" value="{{stat.maxnrg}}" data-dtype="Number" disabled />
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>