Integrate changes from the Prof

Received as-is changes from the Prof.
This commit is contained in:
supervj 2021-05-21 14:58:11 -04:00
parent ea0a874e38
commit 8b60052f65
17 changed files with 488 additions and 30 deletions

View file

@ -53,10 +53,10 @@
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
<h1 class="attribute-name rollable">{{ localize "SW5E.ShieldPoints" }}</h1>
<div class="attribute-value multiple">
<input name="data.attributes.hp.temp" type="text" value="{{data.attributes.hp.temp}}"
<input name="data.attributes.hp.temp" type="text" value="{{round data.attributes.hp.temp}}"
data-dtype="Number" placeholder="0" class="value-number" />
<span class="value-separator">/</span>
<input name="data.attributes.hp.tempmax" type="text" value="{{data.attributes.hp.tempmax}}"
<input name="data.attributes.hp.tempmax" type="text" value="{{round data.attributes.hp.tempmax}}"
data-dtype="Number" placeholder="0" class="value-number" />
</div>
<footer class="attribute-footer" style="line-height: 12px; height: 12px; text-align: center; font-family: 'Russo One';">
@ -140,7 +140,10 @@
<section class="panel resources">
<h1>Resources and Traits</h1>
<div class="traits">
<!-- <label>
<table style="border: none; background: none;">
<tr>
<td>
<!-- <label>
{{localize "SW5E.Size"}}
<select class="actor-size" name="data.traits.size">
{{#select data.traits.size}}
@ -163,27 +166,79 @@
</select>
</label>
<br /> -->
<label>
{{localize "SW5E.DmgRed"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.dr" value="{{data.attributes.dr}}" placeholder="0" />
</label>
<label>
{{localize "SW5E.VehicleCargoCapacity"}}: {{data.attributes.cargcap}} tons
</label>
<br />
<label>
{{localize "SW5E.CrewCap"}}: {{data.attributes.crewcap}}
</label>
<br />
<label>
{{localize "SW5E.DmgRed"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.dr" value="{{data.attributes.dr}}" placeholder="0" />
</label>
<label>
{{localize "SW5E.VehicleCargoCapacity"}}: {{data.attributes.cargcap}} tons
</label>
</td>
<td>
<label>
{{localize "SW5E.CrewCap"}}: {{data.attributes.crewcap}}
</label>
</td>
</tr>
<tr>
<td>
<label>
{{localize "SW5E.FuelCostPerUnit"}}: {{data.attributes.fuel.cost}} cr/unit
</label>
</td>
<td>
<button type="button" class="rest long-rest burnfuel" style="width:40%;" title="Burn 1 Unit of Fuel">{{ localize "SW5E.BurnFuel" }}</button>&nbsp;&nbsp;
<button type="button" class="rest long-rest refuel" style="width:40%;" title="Refuel">{{ localize "SW5E.Refuel" }}</button>
</td>
</tr>
</table>
<label>
{{localize "SW5E.FuelCapacity"}}
</label>
{{#with data.attributes.fuel}}
<div class="fuel-wrapper" title="Fuel">
<div class="fuel {{#if fueled}}fueled{{/if}}">
<span class="fuel-bar" style="width:{{pct}}%"></span>
<i class="fuel-breakpoint fuel-20 arrow-up"></i>
<i class="fuel-breakpoint fuel-20 arrow-down"></i>
<i class="fuel-breakpoint fuel-40 arrow-up"></i>
<i class="fuel-breakpoint fuel-40 arrow-down"></i>
<i class="fuel-breakpoint fuel-60 arrow-up"></i>
<i class="fuel-breakpoint fuel-60 arrow-down"></i>
<i class="fuel-breakpoint fuel-80 arrow-up"></i>
<i class="fuel-breakpoint fuel-80 arrow-down"></i>
</div>
<span class="fuel-label">{{value}} / {{cap}} units</span>
</div>
{{/with}}
<!-- <label>
{{localize "SW5E.CentStorageCapacity"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.cscap" value="{{data.attributes.cscap}}" placeholder="0" />
</label>
<label>
{{localize "SW5E.SysStorageCapacity"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.sscap" value="{{data.attributes.sscap}}" placeholder="0" />
</label> -->
</div>
<h1>{{localize "SW5E.PowerRouting"}}</h1>
<div class="traits">
<label>
</div>
<h1>{{localize "SW5E.PowerRouting"}}</h1>
<div class="traits">
<table style="border:none;">
<tr>
<td align="center"><strong>{{localize "SW5E.EnginePl"}}</strong></td>
<td rowspan=3><input type="range" orient="vertical" id="engineslidervalue" class="vertslider" value="1" step="1" min="0" max="2" oninput="engineSliderUpdate(value)"></td>
<td align="center"><strong>{{localize "SW5E.EquipmentShieldProficiency"}}</strong></td>
<td rowspan=3><input type="range" orient="vertical" id="shieldslidervalue" class="vertslider" value="1" step="1" min="0" max="2" oninput="shieldSliderUpdate(value)"></td>
<td align="center"><strong>{{localize "SW5E.ItemTypeWeaponPl"}}</strong></td>
<td rowspan=3><input type="range" orient="vertical" id="weaponslidervalue" class="vertslider" value="1" step="1" min="0" max="2" oninput="weaponSliderUpdate(value)"></td>
</tr>
<tr>
<td rowspan=2 align="center"><strong><output for=value id="engineslideroutput">=</output></td>
<td rowspan=2 align="center"><strong><output for=value id="shieldslideroutput">=</output></td>
<td rowspan=2 align="center"><strong><output for=value id="weaponslideroutput">=</output></td>
</tr>
<tr></tr>
</table>
<!-- <label>
{{localize "SW5E.EnginePl"}}:
<select name="data.attributes.engpow">
{{#select data.attributes.engpow}}
@ -213,7 +268,7 @@
{{/select}}
</select>
</label>
<br />
<br /> -->
<table style="border: none; width: 400px;">
<tr><th colspan=3 align="left">{{localize "SW5E.PowerDieAlloc"}}</th><th colspan=3 align="right">
{{localize "SW5E.PowerDie"}}:
@ -273,7 +328,10 @@
<label>
{{localize "SW5E.HardpointSizeMod"}}: {{data.attributes.hsm}}
</label>
</div>
<label>
{{localize "SW5E.DmgRed"}}: {{data.attributes.dr}}
</label>
</div>
</section>
</section>
{{!-- Cargo & Crew --}}