System development, WIP

This commit is contained in:
2026-05-05 13:55:42 +02:00
commit c0223977d2
250 changed files with 10362 additions and 0 deletions
+82
View File
@@ -0,0 +1,82 @@
<section class="mgne-sheet">
<div class="sheet-header">
<img class="actor-portrait" src="{{actor.img}}" data-edit="img" data-action="editImage" alt="{{actor.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
<div class="resource-bar">
<div class="resource-box">
<label>{{localize "MGNE.Common.HP"}}</label>
<div class="resource-inline">
<input type="number" name="system.hp.value" value="{{source.system.hp.value}}" />
<span>/</span>
<input type="number" name="system.hp.max" value="{{source.system.hp.max}}" />
</div>
</div>
<div class="resource-box">
<label>{{localize "MGNE.Common.Morale"}}</label>
<select name="system.morale">
{{#each selectOptions.moraleValues}}
<option value="{{value}}" {{#if (isEqual ../source.system.morale value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="resource-box">
<label>{{localize "MGNE.Common.ArmorDie"}}</label>
<select name="system.armor.die">
{{#each selectOptions.armorDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.armor.die value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
</div>
</div>
</div>
<div class="ability-grid">
{{#each abilityList}}
<div class="ability-card">
<label class="rollable" data-roll-type="ability" data-ability-id="{{id}}">{{label}}</label>
<select name="system.abilities.{{id}}.value">
{{#each @root.selectOptions.abilityValues}}
<option value="{{value}}" {{#if (isEqual ../value value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
{{/each}}
</div>
<fieldset>
<legend>{{localize "MGNE.Common.Attack"}}</legend>
<div class="grid three">
<div>
<label>{{localize "MGNE.Common.Label"}}</label>
<input type="text" name="system.attack.label" value="{{source.system.attack.label}}" />
</div>
<div>
<label>{{localize "MGNE.Common.Damage"}}</label>
<input type="text" name="system.attack.damage" value="{{source.system.attack.damage}}" />
</div>
<div class="inline-buttons">
<button type="button" class="rollable" data-roll-type="profile-attack">{{localize "MGNE.Common.Attack"}}</button>
<button type="button" class="rollable" data-roll-type="profile-damage">{{localize "MGNE.Common.Damage"}}</button>
<button type="button" class="rollable" data-roll-type="morale">{{localize "MGNE.Common.Morale"}}</button>
</div>
</div>
</fieldset>
<div class="grid two">
<fieldset>
<legend>{{localize "MGNE.Common.Description"}}</legend>
{{formInput systemFields.description enriched=(lookup enrichedFields "description") value=system.description name="system.description" toggled=true}}
</fieldset>
<fieldset>
<legend>{{localize "MGNE.Creature.Special"}}</legend>
{{formInput systemFields.special enriched=(lookup enrichedFields "special") value=system.special name="system.special" toggled=true}}
</fieldset>
</div>
<fieldset>
<legend>{{localize "MGNE.Common.Notes"}}</legend>
{{formInput systemFields.notes enriched=(lookup enrichedFields "notes") value=system.notes name="system.notes" toggled=true}}
</fieldset>
</section>