more styling and release workflow
Foundry VTT System Release / build-and-release (push) Canceled after 12s
Foundry VTT System Release / build-and-release (push) Canceled after 12s
This commit is contained in:
1 parent
00473d3afc
commit
c404d9313f
29 files changed
+129
-9
No files matched your search
@@ -0,0 +1,24 @@
|
||||
{{! Beschreibung Allgemein Tab }}
|
||||
<section
|
||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
>
|
||||
<fieldset style="height:100%">
|
||||
<legend>{{localize "Midgard6.Sheets.Tabs.biographie"}}</legend>
|
||||
{{#if editable}}
|
||||
<prose-mirror
|
||||
style="height:100%"
|
||||
name="system.biographie.beschreibung"
|
||||
data-document-u-u-i-d="{{actor.uuid}}"
|
||||
value="{{system.biographie.beschreibung}}"
|
||||
collaborate="true"
|
||||
toggled="true"
|
||||
>
|
||||
{{{enrichedBeschreibung}}}
|
||||
</prose-mirror>
|
||||
{{else}}
|
||||
{{{enrichedBeschreibung}}}
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,280 @@
|
||||
<section
|
||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-7">
|
||||
{{#each skills}}
|
||||
{{#if fieldset}}
|
||||
<fieldset>
|
||||
<legend>{{localize legend}}</legend>
|
||||
{{#each fields}}
|
||||
<div class="row align-items-center">
|
||||
<div class="col-6 row align-items-center" style="width: 100%; margin-left: 0">
|
||||
<a
|
||||
class="col-8"
|
||||
data-action="rollSkill"
|
||||
data-name="{{localize localizationName}}"
|
||||
data-path="{{field.fieldPath}}"
|
||||
{{#unless @root.editable}}disabled{{/unless}}
|
||||
>
|
||||
<p>{{localize
|
||||
localizationName
|
||||
}}</p>
|
||||
</a>
|
||||
<a
|
||||
data-action="rollSkill"
|
||||
data-name="{{localize localizationName}}"
|
||||
data-path="{{field.fieldPath}}"
|
||||
{{#unless @root.editable}}disabled{{/unless}}
|
||||
>
|
||||
<i
|
||||
class="fa-solid fa-dice-d20"
|
||||
style="padding:2px 0; margin-right: -14px"
|
||||
></i>
|
||||
</a>
|
||||
<input
|
||||
class="skill"
|
||||
type="number"
|
||||
name="{{field.fieldPath}}"
|
||||
value="{{value}}"
|
||||
{{#unless @root.editable}}disabled{{/unless}}
|
||||
{{#if @root.system.locked}}disabled{{/if}}
|
||||
/>
|
||||
<a
|
||||
data-action="addSpezialisierung"
|
||||
data-name="{{field.label}}"
|
||||
data-path="{{field.fieldPath}}"
|
||||
{{#unless @root.editable}}disabled{{/unless}}
|
||||
{{#if @root.system.locked}}disabled{{/if}}
|
||||
|
||||
>+</a>
|
||||
</div>
|
||||
<div class="col d-flex flex-wrap" style="gap: 4px 8px; width: 100%">
|
||||
{{#each bonuses}}
|
||||
<a data-action="editSepzialisierung"
|
||||
data-name="{{name}}"
|
||||
data-level="{{level}}"
|
||||
data-path="{{path}}"
|
||||
style="white-space: nowrap;"
|
||||
{{#unless @root.editable}}disabled{{/unless}}
|
||||
{{#if @root.system.locked}}disabled{{/if}}
|
||||
|
||||
{{#unless @last}}style="margin-right: 4px"{{/unless}}>{{name}}: {{level}}{{#unless @last}},{{/unless}}</a>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
<div class="col-5">
|
||||
<fieldset class="">
|
||||
<legend>{{localize "Midgard6.Attribute.resistenzen"}}</legend>
|
||||
<div class="row">
|
||||
{{#each resistenzen.fields}}
|
||||
|
||||
<div class="col-4">
|
||||
<p class="resistenzenHeader">{{localize localizationName}}</p>
|
||||
<div class="d-flex justify-content-center align-items-center">
|
||||
<a
|
||||
class=""
|
||||
data-action="rollSkill"
|
||||
data-name="{{localize localizationName}}"
|
||||
data-path="{{field.fieldPath}}"
|
||||
{{#unless @root.editable}}disabled{{/unless}}
|
||||
>
|
||||
<i class="fa-solid fa-dice-d20" style=""></i>
|
||||
</a>
|
||||
<input
|
||||
class="resistenzenAttribut"
|
||||
type="number"
|
||||
name="{{field.fieldPath}}"
|
||||
value="{{value}}"
|
||||
{{#if @root.system.locked}}disabled{{/if}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="d-flex">
|
||||
<fieldset class="col highlight">
|
||||
<legend>{{localize "Midgard6.Attribute.lp"}}</legend>
|
||||
<div class="d-flex align-items-end">
|
||||
<div>
|
||||
<p class="resistenzenHeader">{{localize "Midgard6.aktuell"}}</p>
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="armor-box">
|
||||
<i class="fa-solid fa-shield"></i>
|
||||
<span class="armor-value">{{system.rüstwert.mod}}</span>
|
||||
</div>
|
||||
<input
|
||||
class="attribut"
|
||||
type="number"
|
||||
name="system.resources.leben.value"
|
||||
value="{{system.resources.leben.value}}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<p class="center">/</p>
|
||||
<div>
|
||||
<p class="resistenzenHeader">{{localize "Midgard6.maximal.short"}}</p>
|
||||
<input
|
||||
class="attribut"
|
||||
type="number"
|
||||
name="system.resources.leben.max"
|
||||
value="{{system.resources.leben.max}}"
|
||||
{{#if @root.system.locked}}disabled{{/if}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="col highlight">
|
||||
<legend>{{localize "Midgard6.Attribute.ap"}}</legend>
|
||||
<div class="d-flex align-items-end">
|
||||
<div>
|
||||
<p class="resistenzenHeader">{{localize "Midgard6.aktuell"}}</p>
|
||||
|
||||
<input
|
||||
class="attribut"
|
||||
type="number"
|
||||
name="system.resources.ausdauer.value"
|
||||
value="{{system.resources.ausdauer.value}}"
|
||||
/>
|
||||
</div>
|
||||
<p class="center">/</p>
|
||||
<div>
|
||||
<p class="resistenzenHeader">{{localize "Midgard6.maximal.short"}}</p>
|
||||
<input
|
||||
class="attribut"
|
||||
type="number"
|
||||
name="system.resources.ausdauer.max"
|
||||
value="{{system.resources.ausdauer.max}}"
|
||||
{{#if @root.system.locked}}disabled{{/if}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div>
|
||||
<fieldset class="col highlight">
|
||||
<legend>{{localize "Midgard6.Schicksalsmünzen"}}</legend>
|
||||
<div class="d-flex justify-content-start align-items-center">
|
||||
<input
|
||||
style="max-width: 3rem"
|
||||
class="attribut"
|
||||
type="number"
|
||||
name="system.schicksalsmünzen"
|
||||
value="{{system.schicksalsmünzen}}"
|
||||
/>
|
||||
<div style="margin-left: 16px">
|
||||
<ul style="margin: 0px; list-style-type: disclosure-closed;">
|
||||
<li style="font-weight:bold">Misserfolg <i class="fas fa-arrow-right" style="font-size:12px"></i> geringer Erfolg</li>
|
||||
<li style="font-weight:bold">Würfelwurf wiederholen</li>
|
||||
<li style="font-weight:bold">Geistesblitz</li>
|
||||
<li style="font-weight:bold">Mitspielende belohnen</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div>
|
||||
<fieldset class="highlight">
|
||||
<legend>{{localize "Midgard6.Item.type.weapon.plural" }}</legend>
|
||||
<div class="container">
|
||||
{{#each equippedWeapons as |weapon|}}
|
||||
<div class="item row align-items-center">
|
||||
<div class="col-10">
|
||||
<div class="d-flex justify-content-start align-items-center">
|
||||
<img class="" style="margin-right: 4px" src="{{weapon.img}}" alt="{{weapon.name}}" width="24" height="24" />
|
||||
<p>{{weapon.name}}: </p>
|
||||
<p>
|
||||
<i class="fas fa-dice-d20" style="font-size:12px; margin:0 2px 0 4px"></i>
|
||||
+ {{weapon.skillValue}} {{#if weapon.bonusValue}}+ {{weapon.bonusValue}}{{/if}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2 document-controls">
|
||||
<a
|
||||
class="item-control"
|
||||
title="{{localize 'Midgard6.Angriff'}} {{weapon.name}}"
|
||||
data-action="rollWeapon"
|
||||
data-item-id="{{weapon.id}}"
|
||||
data-skillPath="{{weapon.path}}"
|
||||
{{#unless @root.editable}}disabled{{/unless}}
|
||||
>
|
||||
<i class="fas fa-dice-d20"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div>
|
||||
<fieldset class="highlight">
|
||||
<legend>{{localize "Midgard6.Item.type.armor.plural" }}</legend>
|
||||
<div class="container">
|
||||
{{#each armor.armors as |armor|}}
|
||||
<div class="item row align-items-center">
|
||||
<div class="col-10">
|
||||
<div class="d-flex justify-content-start align-items-center">
|
||||
<img class="" style="margin-right: 4px" src="{{armor.img}}" alt="{{armor.name}}" width="24" height="24" />
|
||||
<p>{{armor.name}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="armor-box" style="position: relative; margin-left: 0px; top: 12px">
|
||||
<i class="fa-solid fa-shield"></i>
|
||||
<span class="armor-value" style="position: relative; right:-8px; top: -22px">{{armor.rüstwert}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#if armor.einschränkungen}}
|
||||
<p class="resistenzenHeader">{{localize "Midgard6.Item.einschränkung"}}</p>
|
||||
<p>{{splitArray armor.einschränkungen}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div>
|
||||
<fieldset class="highlight">
|
||||
<legend>{{localize "Midgard6.Item.type.zauber.plural" }}</legend>
|
||||
<div class="container">
|
||||
{{#each equippedSpells as |weapon|}}
|
||||
<div class="item row align-items-center">
|
||||
<div class="col-10">
|
||||
<div class="d-flex justify-content-start align-items-center">
|
||||
<img class="" style="margin-right: 4px" src="{{weapon.img}}" alt="{{weapon.name}}" width="24" height="24" />
|
||||
<p>{{weapon.name}}: </p>
|
||||
<p>
|
||||
<i class="fas fa-dice-d20" style="font-size:12px; margin:0 2px 0 4px"></i>
|
||||
+ {{weapon.skillValue}} {{#if weapon.bonusValue}}+ {{weapon.bonusValue}}{{/if}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2 document-controls">
|
||||
<a
|
||||
class="item-control"
|
||||
title="{{localize 'Midgard6.Angriff'}} {{weapon.name}}"
|
||||
data-action="rollSpell"
|
||||
data-item-id="{{weapon.id}}"
|
||||
data-skillPath="{{weapon.path}}"
|
||||
{{#unless @root.editable}}disabled{{/unless}}
|
||||
>
|
||||
<i class="fas fa-dice-d20"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,28 @@
|
||||
<header class="sheet-header">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<input {{#if @root.system.locked}}disabled{{/if}} class="text" type="text" placeholder="{{localize "Midgard6.name"}}" name="name" value="{{actor.name}}" />
|
||||
<input {{#if @root.system.locked}}disabled{{/if}} class="text" type="text" placeholder="{{localize "Midgard6.Biographie.spezies"}}" name="system.biographie.spezies" value="{{system.biographie.spezies}}" />
|
||||
<input {{#if @root.system.locked}}disabled{{/if}} class="text" type="text" placeholder="{{localize "Midgard6.Biographie.kultur"}}" name="system.biographie.kultur" value="{{system.biographie.kultur}}" />
|
||||
</div>
|
||||
<img
|
||||
class="profile-img"
|
||||
style="z-index:1"
|
||||
src="{{actor.img}}"
|
||||
alt="{{actor.name}}"
|
||||
{{#if editable}}
|
||||
data-action="editImage"
|
||||
data-edit="img"
|
||||
{{/if}}
|
||||
data-tooltip="{{actor.name}}"
|
||||
height="100" width="100"
|
||||
>
|
||||
<div class="col-6">
|
||||
<input {{#if @root.system.locked}}disabled{{/if}} class="text right" type="text" placeholder="{{localize "Midgard6.Biographie.abenteuertyp"}}" name="system.biographie.abenteuertyp" value="{{system.biographie.abenteuertyp}}" />
|
||||
<input {{#if @root.system.locked}}disabled{{/if}} class="text right" type="text" placeholder="{{localize "Midgard6.Biographie.glaube"}}" name="system.biographie.glaube" value="{{system.biographie.glaube}}" />
|
||||
<input {{#if @root.system.locked}}disabled{{/if}} class="text right" type="text" placeholder="{{localize "Midgard6.Biographie.mondgestalt"}}" name="system.biographie.mondgestalt" value="{{system.biographie.mondgestalt}}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,266 @@
|
||||
{{! Beschreibung Allgemein Tab }}
|
||||
<section
|
||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<fieldset>
|
||||
<legend>{{localize "Midgard6.Grad.grad"}}</legend>
|
||||
<div class="d-flex justify-content-center align-items-center">
|
||||
<input
|
||||
type="number"
|
||||
class="text center"
|
||||
style="max-width:3rem;"
|
||||
name="system.grad.grad"
|
||||
value="{{system.grad.grad}}"
|
||||
/>
|
||||
<p style="font-size:18px; font-weight: bold; padding: 0 8px">{{localize
|
||||
"Midgard6.Grad.erfahrung"
|
||||
}}</p>
|
||||
<div
|
||||
class="d-flex align-items-center justify-content-center flex-column"
|
||||
style="position: relative;"
|
||||
>
|
||||
<label style="position: absolute; bottom: 100%; font-size: 12px;">{{localize
|
||||
"Midgard6.Grad.frei"
|
||||
}}</label>
|
||||
<input
|
||||
type="number"
|
||||
class="text center"
|
||||
style="max-width:3rem;"
|
||||
name="system.grad.erfahrungspunkteFrei"
|
||||
value="{{system.grad.erfahrungspunkteFrei}}"
|
||||
/>
|
||||
</div>
|
||||
<p style=" font-size:32px; padding: 0 8px">+</p>
|
||||
<div
|
||||
class="d-flex align-items-center justify-content-center flex-column"
|
||||
style="position: relative;"
|
||||
>
|
||||
<label style="position: absolute; bottom: 100%; font-size: 12px;">{{localize
|
||||
"Midgard6.Grad.eingesetzt"
|
||||
}}</label>
|
||||
<input
|
||||
type="number"
|
||||
class="text center"
|
||||
style="max-width:3rem;"
|
||||
name="system.grad.erfahrungspunkteEingesetzt"
|
||||
value="{{system.grad.erfahrungspunkteEingesetzt}}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<p style=" font-size:32px; padding: 0 8px">=</p>
|
||||
<div
|
||||
class="d-flex align-items-center justify-content-center flex-column"
|
||||
style="position: relative;"
|
||||
>
|
||||
<label style="position: absolute; bottom: 100%; font-size: 12px;">{{localize
|
||||
"Midgard6.Grad.gesamt"
|
||||
}}</label>
|
||||
<input
|
||||
type="number"
|
||||
class="text center"
|
||||
style="max-width:3rem;"
|
||||
name="system.grad.erfahrungsschatz"
|
||||
value="{{system.grad.erfahrungsschatz}}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<fieldset>
|
||||
<legend>{{localize "Midgard6.Hintergrund.type.gunst.singular"}}
|
||||
&
|
||||
{{localize "Midgard6.Hintergrund.type.makel.singular"}}</legend>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
{{#with itemTypes.gunst}}
|
||||
{{#each this.items as |gunst|}}
|
||||
<div
|
||||
class="collapsible"
|
||||
data-action="collapsible"
|
||||
data-item-id="{{gunst._id}}"
|
||||
data-type="Item"
|
||||
data-document-class="Item"
|
||||
>{{gunst.name}}
|
||||
<div>
|
||||
<i class="fas fa-expand"></i>
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=gunst.name}}"
|
||||
style="z-index:9999"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
{{{gunst.system.beschreibung}}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{#with itemTypes.makel}}
|
||||
{{#each this.items as |makel|}}
|
||||
<div
|
||||
type="button"
|
||||
class="collapsible"
|
||||
data-action="collapsible"
|
||||
data-item-id="{{makel._id}}"
|
||||
data-type="Item"
|
||||
data-document-class="Item"
|
||||
>{{makel.name}}
|
||||
<div>
|
||||
<i class="fas fa-expand"></i>
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=gunst.name}}"
|
||||
style="z-index:9999"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{{makel.system.beschreibung}}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="col-6" style="height: 100%">
|
||||
<fieldset>
|
||||
<legend>{{localize "Midgard6.Hintergrund.type.legende.plural"}}</legend>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{#with itemTypes.legende}}
|
||||
<div class="itemHeader" style="margin-bottom: 8px">
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
||||
data-action="createDoc"
|
||||
data-document-class="Item"
|
||||
data-type="legende"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DOCUMENT.Create" type=this.label}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{#each this.items as |legende|}}
|
||||
<div
|
||||
class="collapsible"
|
||||
data-action="collapsible"
|
||||
data-item-id="{{legende._id}}"
|
||||
data-type="Item"
|
||||
data-document-class="Item"
|
||||
>{{legende.name}}
|
||||
<div>
|
||||
<i class="fas fa-expand"></i>
|
||||
<a
|
||||
class="item-control item-edit"
|
||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
||||
data-action="viewDoc"
|
||||
>
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=legende.name}}"
|
||||
style="z-index:9999"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
{{{legende.system.beschreibung}}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<fieldset>
|
||||
<legend>{{localize "Midgard6.Hintergrund.type.schicksalsgabe.plural"}}</legend>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{#with itemTypes.schicksalsgabe}}
|
||||
<div class="itemHeader" style="margin-bottom: 8px">
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
||||
data-action="createDoc"
|
||||
data-document-class="Item"
|
||||
data-type="schicksalsgabe"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DOCUMENT.Create" type=this.label}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{#each this.items as |schicksalsgabe|}}
|
||||
<div
|
||||
class="collapsible"
|
||||
data-action="collapsible"
|
||||
data-item-id="{{schicksalsgabe._id}}"
|
||||
data-type="Item"
|
||||
data-document-class="Item"
|
||||
>{{schicksalsgabe.name}}
|
||||
<div>
|
||||
<i class="fas fa-expand"></i>
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=schicksalsgabe.name}}"
|
||||
style="z-index:9999"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
{{{gunst.system.beschreibung}}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,237 @@
|
||||
{{! Items Tab }}
|
||||
<section class="standard-form tab scrollable {{tab.cssClass}}" data-group="primary" data-tab="items">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<fieldset >
|
||||
<legend>{{localize "Midgard6.Item.type.münze.plural" }}</legend>
|
||||
<ul class="itemTypes">
|
||||
{{#with itemTypes.geld}}
|
||||
<li class="itemHeader">
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
||||
data-action="createDoc"
|
||||
data-document-class="Item"
|
||||
data-type="geld"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DOCUMENT.Create" type=this.label}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
<ul class="items">
|
||||
{{#each this.items as |item|}}
|
||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||
<img src="{{item.img}}" alt="{{item.name}}" width="24" height="24" />
|
||||
<div class="item-name">{{item.system.anzahl}}x {{item.name}}</div>
|
||||
{{#if @root.editable}}
|
||||
<div class="document-controls">
|
||||
<a
|
||||
class="item-control"
|
||||
data-action="decreaseDoc"
|
||||
data-item-id="{{item._id}}"
|
||||
>
|
||||
<i class="fas fa-minus"></i>
|
||||
</a>
|
||||
<a
|
||||
class="item-control"
|
||||
data-action="increaseDoc"
|
||||
data-item-id="{{item._id}}"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="document-controls">
|
||||
<a
|
||||
class="item-control item-edit"
|
||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
||||
data-action="viewDoc"
|
||||
>
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=item.name}}"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/with}}
|
||||
</fieldset>
|
||||
<fieldset >
|
||||
<legend>{{localize "Midgard6.Item.type.item.plural" }}</legend>
|
||||
<ul class="itemTypes">
|
||||
{{#with itemTypes.item}}
|
||||
<li class="itemHeader">
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
||||
data-action="createDoc"
|
||||
data-document-class="Item"
|
||||
data-type="item"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DOCUMENT.Create" type=this.label}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
<ul class="items">
|
||||
{{#each this.items as |item|}}
|
||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||
<img src="{{item.img}}" alt="{{item.name}}" width="24" height="24" />
|
||||
<div class="item-name">{{item.system.anzahl}}x {{item.name}}</div>
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-edit"
|
||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
||||
data-action="viewDoc"
|
||||
>
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=item.name}}"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/with}}
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{!-- Waffen --}}
|
||||
|
||||
<fieldset class="highlight">
|
||||
<legend>{{localize "Midgard6.Item.type.weapon.plural" }}</legend>
|
||||
<ul class="itemTypes">
|
||||
{{#with itemTypes.weapon}}
|
||||
<li class="itemHeader">
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
||||
data-action="createDoc"
|
||||
data-document-class="Item"
|
||||
data-type="weapon"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DOCUMENT.Create" type=this.label}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
<ul class="items">
|
||||
{{#each this.items as |item|}}
|
||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||
<img src="{{item.img}}" alt="{{item.name}}" width="24" height="24" />
|
||||
<div class="item-name">{{item.system.anzahl}}x {{item.name}}</div>
|
||||
<a class="sword" data-action="cycleEquip" data-item-id="{{item._id}}" style="{{#if item.system.equipped}}background-color: var(--M6-text-brown){{/if}}">
|
||||
</a>
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-edit"
|
||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
||||
data-action="viewDoc"
|
||||
>
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=item.name}}"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/with}}
|
||||
</fieldset>
|
||||
|
||||
{{!-- Rüstung --}}
|
||||
|
||||
<fieldset>
|
||||
<legend>{{localize "Midgard6.Item.type.armor.plural" }}</legend>
|
||||
<ul class="itemTypes">
|
||||
{{#with itemTypes.armor}}
|
||||
<li class="itemHeader">
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
||||
data-action="createDoc"
|
||||
data-document-class="Item"
|
||||
data-type="armor"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DOCUMENT.Create" type=this.label}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
<ul class="items">
|
||||
{{#each this.items as |item|}}
|
||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||
<img src="{{item.img}}" alt="{{item.name}}" width="24" height="24" />
|
||||
<div class="item-name">{{item.system.anzahl}}x {{item.name}}</div>
|
||||
<a class="fa-solid fa-shield" data-action="cycleEquip" data-item-id="{{item._id}}" style="{{#if item.system.equipped}}color: var(--M6-text-brown){{/if}}"></a>
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-edit"
|
||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
||||
data-action="viewDoc"
|
||||
>
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=item.name}}"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/with}}
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
<div class="sticky-progress-container">
|
||||
<div class="progress-background">
|
||||
<progress
|
||||
class="progress-bar"
|
||||
value="{{gewicht.gewicht}}"
|
||||
max="{{gewicht.traglast}}"
|
||||
></progress>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,60 @@
|
||||
{{! Items Tab }}
|
||||
<section class="standard-form tab scrollable {{tab.cssClass}}" data-group="primary" data-tab="zauber">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<fieldset >
|
||||
<legend>{{localize "Midgard6.Item.type.zauber.plural" }}</legend>
|
||||
|
||||
<ul class="itemTypes">
|
||||
<li class="itemHeader">
|
||||
<div class="document-controls">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-create"
|
||||
title="{{localize 'DOCUMENT.Create' type="Zauber"}}"
|
||||
data-action="createDoc"
|
||||
data-document-class="Item"
|
||||
data-type="zauber"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DOCUMENT.Create" type="Zauber"}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
<ul class="items">
|
||||
{{#each zauber as |zauber|}}
|
||||
<li class="item row align-content-center draggable" data-item-id="{{zauber._id}}" data-type="Zauber" data-document-class="Item">
|
||||
<p class="col-3" style="padding-top: 8px">{{zauber.name}}</p>
|
||||
<p class="col-3 item-name">{{zauber.system.eigenschaften.ursprung}}</p>
|
||||
<p class="col-2 item-name">{{localize "Midgard6.Zauber.stufe"}} {{zauber.system.eigenschaften.stufe}}</p>
|
||||
<a class="align-self-center col-1 fa-solid {{#if zauber.system.equipped}}fa-book-open{{else}}fa-book{{/if}}" {{#unless @root.editable}}disabled{{/unless}} data-action="cycleEquip" data-item-id="{{zauber._id}}" style="{{#if zauber.system.equipped}}color: var(--M6-text-brown);{{/if}}"></a>
|
||||
<a class="align-self-center col-2 fa-solid fa-dice-d20" data-action="rollSpell" {{#unless @root.editable}}disabled{{/unless}} data-name="{{zauber.name}}" data-item-id="{{zauber._id}}"></a>
|
||||
<div class="col-1 d-flex document-controls" style="margin: 0.5rem 0; padding: 0">
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="item-control item-edit"
|
||||
title="{{localize 'DOCUMENT.Update' type=zauber.name}}"
|
||||
data-action="viewDoc"
|
||||
>
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a
|
||||
class="item-control item-delete"
|
||||
title="{{localize 'DOCUMENT.Delete' type=zauber.name}}"
|
||||
data-action="deleteDoc"
|
||||
>
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
</section>
|
||||
@@ -0,0 +1,37 @@
|
||||
<header class="message-header flexrow">
|
||||
<div class="portrait">
|
||||
<img src="{{portrait}}" alt="{{alias}}" inert />
|
||||
</div>
|
||||
<div class="message-names flexcol">
|
||||
<span class="message-sender">
|
||||
{{alias}}
|
||||
</span>
|
||||
<span class="whisper-to">
|
||||
{{author.name}}
|
||||
</span>
|
||||
{{#if isWhisper}}
|
||||
<span class="whisper-to">{{localize "CHAT.To"}}: {{whisperTo}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="message-metadata">
|
||||
{{!-- <time class="message-timestamp">{{timeSinceShort message.timestamp}}</time> --}}
|
||||
{{#if canDelete}}
|
||||
<a aria-label="{{localize 'Delete'}}" class="message-delete" data-action="deleteMessage">
|
||||
<i class="fa-solid fa-trash" inert></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{#if canClose}}
|
||||
<a
|
||||
aria-label="{{localize 'CHAT.Dismiss'}}"
|
||||
class="message-dismiss"
|
||||
data-action="dismissMessage"
|
||||
>
|
||||
<i class="fa-solid fa-xmark" inert></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{#if message.flavor}}
|
||||
<span class="flavor-text">{{{message.flavor}}}</span>
|
||||
{{/if}}
|
||||
</header>
|
||||
@@ -0,0 +1,69 @@
|
||||
<li class="chat-message message flexcol {{cssClass}}" data-message-id="{{message._id}}" {{#if borderColor}}style="border-color:{{borderColor}}"{{/if}}>
|
||||
{{> "systems/midgard6-lvd/templates/chat/chat-message-header.hbs"}}
|
||||
|
||||
{{!-- <hr> --}}
|
||||
{{#if isContentVisible}}
|
||||
|
||||
{{#if isSpell}}
|
||||
<div class="tags {{#unless zeigeZauberAlsTag}}hidden{{/unless}}">
|
||||
{{#each eigenschaften as |eigenschaft|}}
|
||||
{{#if eigenschaft}}
|
||||
<div class="tag">{{eigenschaft}}</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
<div
|
||||
class="collapsible {{#if zeigeZauberAlsTag}}hidden{{/if}}"
|
||||
data-action="collapsible"
|
||||
>{{localize "Midgard6.Item.merkmale"}}
|
||||
<div>
|
||||
<i class="fas fa-expand"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{#each eigenschaften as |eigenschaft|}}
|
||||
{{#if eigenschaft}}
|
||||
<p>{{localizeConcat "Midgard6.Zauber." @key}}: {{eigenschaft}}</p>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if merkmale}}
|
||||
<div class="tags">
|
||||
{{#each merkmale as |merkmal|}}
|
||||
<div class="tag">{{merkmal}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if isRoll}}
|
||||
{{#each message.content as |roll|}}
|
||||
<fieldset>
|
||||
{{#if roll.options.title}}<legend>{{roll.options.title}}</legend>{{/if}}
|
||||
{{{roll.html}}}
|
||||
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<fieldset>
|
||||
{{#if title}}<legend>{{title}}</legend>{{/if}}
|
||||
{{{message.content}}}
|
||||
</fieldset>
|
||||
{{/if}}
|
||||
|
||||
{{#if beschreibung}}
|
||||
<div
|
||||
class="collapsible beschreibung"
|
||||
data-action="collapsible"
|
||||
>{{localize "Midgard6.Item.Description"}}
|
||||
<div>
|
||||
<i class="fas fa-expand"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{{beschreibung}}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{> "systems/midgard6-lvd/templates/chat/secret-roll.hbs"}}
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -0,0 +1,13 @@
|
||||
<fieldset>
|
||||
{{#if isRoll}}
|
||||
<legend>???</legend>
|
||||
<div class="dice-roll">
|
||||
<div class="dice-result">
|
||||
<div class="dice-formula">???</div>
|
||||
<h4 class="dice-total">?</h4>
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<p>???</p>
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "Type"}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="type">
|
||||
{{selectOptions types selected=type}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,91 @@
|
||||
<section class="standard-form" style="margin-bottom: 1rem">
|
||||
<fieldset>
|
||||
<legend>Modifikation</legend>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{! <div class="d-flex align-items-center"> }}
|
||||
<div class="col-6">
|
||||
<input
|
||||
type="text"
|
||||
style="margin-left: 8px;"
|
||||
name="customRoll"
|
||||
id="rollDisplay"
|
||||
placeholder="1d20 + {{skillValue}}"
|
||||
value="{{customRoll}}"
|
||||
/>
|
||||
</div>
|
||||
<div class="d-flex col-6" style="padding-left: 8px;">
|
||||
<div class="segmented-button-row">
|
||||
<!-- Option 1 -->
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="vorteil-segment" value="-1" />
|
||||
<span class="segmented-button__content">
|
||||
<i class="icon fa-solid fa-arrow-down" style="color:red"></i>
|
||||
<i class="icon fa-solid fa-dice-d20" style=""></i>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<!-- Option 2 -->
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="vorteil-segment" value="0" checked />
|
||||
<span class="segmented-button__content">
|
||||
<i class="icon fa-solid fa-dice-d20" style=""></i>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<!-- Option 3 -->
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="vorteil-segment" value="1" />
|
||||
<span class="segmented-button__content">
|
||||
<i class="icon fa-solid fa-dice-d20" style=""></i>
|
||||
<i class="icon fa-solid fa-arrow-up" style="color:blue"></i>
|
||||
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{! </div> }}
|
||||
<div class="col-12 d-flex">
|
||||
<div class="flexrow" style="padding-left: 8px">
|
||||
<div class="segmented-button-row">
|
||||
<!-- Option 1 -->
|
||||
{{#each bonuses}}
|
||||
<label class="segmented-button">
|
||||
<input
|
||||
type="radio"
|
||||
name="spezialisierung-segment"
|
||||
value="{{level}}"
|
||||
data-name="{{name}}"
|
||||
{{#ifeq name preSelectedSpez}}checked{{/ifeq}}
|
||||
/>
|
||||
<span class="segmented-button__content">
|
||||
{{name}}:
|
||||
{{level}}
|
||||
</span>
|
||||
</label>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{#if damageRoll}}
|
||||
<div class="col-6">
|
||||
<input
|
||||
type="text"
|
||||
style="margin-left: 8px;"
|
||||
name="customRollDamage"
|
||||
id="rollDamageDisplay"
|
||||
placeholder="{{damageRoll}}"
|
||||
value="{{customDamageRoll}}"
|
||||
/>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<select style="max-width: 15rem; margin-left: 8px" name="rollMode" data-type="String">
|
||||
{{selectOptions rollModes selected=rollMode localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,46 @@
|
||||
<section class="standard-form" style="margin-bottom: 1rem">
|
||||
<fieldset>
|
||||
<legend>{{localize "Midgard6.Sheets.spezialisierung"}}</legend>
|
||||
<div class="">
|
||||
<div class="d-flex align-items-center justify-content-between">
|
||||
<input
|
||||
type="text"
|
||||
style="margin-left: 8px; max-width:10rem"
|
||||
name="spezName"
|
||||
id="spezName"
|
||||
placeholder="Spezialisierungs Name"
|
||||
value="{{spezName}}"
|
||||
/>
|
||||
<div class="flexrow" style="padding-left: 8px">
|
||||
<div class="segmented-button-row">
|
||||
<!-- Option 1 -->
|
||||
<p>{{localize "Midgard6.Stufe"}}:</p>
|
||||
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="level-segment" value="1" checked />
|
||||
<span class="segmented-button__content">
|
||||
<p>1</p>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<!-- Option 2 -->
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="level-segment" value="2" />
|
||||
<span class="segmented-button__content">
|
||||
<p>2</p>
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<!-- Option 3 -->
|
||||
<label class="segmented-button">
|
||||
<input type="radio" name="level-segment" value="3" />
|
||||
<span class="segmented-button__content">
|
||||
<p>3</p>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,25 @@
|
||||
{{! Beschreibung Allgemein Tab }}
|
||||
<section
|
||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
style="overflow: hidden"
|
||||
>
|
||||
{{! Editors must receive enriched text data from getData to properly handle rolls, UUID links, etc. }}
|
||||
<fieldset style="height:100%">
|
||||
<legend>{{localize "Midgard6.Item.Description"}}</legend>
|
||||
{{#if editable}}
|
||||
<prose-mirror
|
||||
style="height:100%"
|
||||
name="system.beschreibung"
|
||||
data-document-u-u-i-d="{{item.uuid}}"
|
||||
value="{{system.beschreibung}}"
|
||||
toggled="true"
|
||||
>
|
||||
{{{enrichedBeschreibung}}}
|
||||
</prose-mirror>
|
||||
{{else}}
|
||||
{{{enrichedBeschreibung}}}
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,46 @@
|
||||
<header class="sheet-header">
|
||||
<div class="container">
|
||||
<div class="row align-items-end" style="height: 108px" >
|
||||
<img
|
||||
class="profile-img"
|
||||
style="z-index:1"
|
||||
src="{{item.img}}"
|
||||
alt="{{item.name}}"
|
||||
{{#if editable}}
|
||||
data-action="editImage"
|
||||
data-edit="img"
|
||||
{{/if}}
|
||||
data-tooltip="{{item.name}}"
|
||||
height="100" width="100"
|
||||
>
|
||||
<div class="col-12">
|
||||
<input class="text" type="text" style="color: var(--M6-text-brown); font-weight: bold; font-size:24px; background-color: var(--Midgard6-background-grey)" placeholder="{{localize "Midgard6.name"}}" name="name" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input class="right" type="text" placeholder="{{localize "Midgard6.Hintergrund.gruppe"}}" name="system.gruppe" value="{{system.gruppe}}" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<select
|
||||
class="text right"
|
||||
style="text-align: right"
|
||||
name="system.linkId"
|
||||
value="{{system.linkId}}"
|
||||
id="linkId"
|
||||
placeholder="{{system.linkId}}"
|
||||
>
|
||||
<option {{#unless system.linkId}}selected{{/unless}}value=""></option>
|
||||
{{#each schicksalsgaben as |schicksalsgabe|}}
|
||||
<option {{#ifeq schicksalsgabe.id ../system.linkId}}selected{{/ifeq}} value="{{schicksalsgabe.id}}">
|
||||
{{schicksalsgabe.name}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,25 @@
|
||||
{{! Beschreibung Allgemein Tab }}
|
||||
<section
|
||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
style="overflow: hidden"
|
||||
>
|
||||
{{! Editors must receive enriched text data from getData to properly handle rolls, UUID links, etc. }}
|
||||
<fieldset style="height:100%">
|
||||
<legend>{{localize "Midgard6.Item.Description"}}</legend>
|
||||
{{#if editable}}
|
||||
<prose-mirror
|
||||
style="height:100%"
|
||||
name="system.beschreibung"
|
||||
data-document-u-u-i-d="{{item.uuid}}"
|
||||
value="{{system.beschreibung}}"
|
||||
toggled="true"
|
||||
>
|
||||
{{{enrichedBeschreibung}}}
|
||||
</prose-mirror>
|
||||
{{else}}
|
||||
{{{enrichedBeschreibung}}}
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,35 @@
|
||||
<header class="sheet-header">
|
||||
<div class="container">
|
||||
<div class="row align-items-end" style="height: 108px" >
|
||||
<img
|
||||
class="profile-img"
|
||||
style="z-index:1"
|
||||
src="{{item.img}}"
|
||||
alt="{{item.name}}"
|
||||
{{#if editable}}
|
||||
data-action="editImage"
|
||||
data-edit="img"
|
||||
{{/if}}
|
||||
data-tooltip="{{item.name}}"
|
||||
height="100" width="100"
|
||||
>
|
||||
<div class="col-12">
|
||||
<input class="text" type="text" style="color: var(--M6-text-brown); font-weight: bold; font-size:24px; background-color: var(--Midgard6-background-grey)" placeholder="{{localize "Midgard6.name"}}" name="name" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input class="custom-input right text" type="number" placeholder="{{localize "Midgard6.Gegenstand.anzahl"}}" name="system.anzahl" value="{{item.system.anzahl}}" />
|
||||
<i class="fa-solid fa-sack-dollar input-icon left"></i>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input class="custom-input left text" type="number" placeholder="{{localize "Midgard6.Gegenstand.wert"}}" name="system.wert" value="{{item.system.wert}}" />
|
||||
<i class="fa-solid fa-sack-dollar input-icon left"></i>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input class="custom-input right text" type="number" placeholder="{{localize "Midgard6.Gegenstand.gewicht"}}" name="system.gewicht" value="{{item.system.gewicht}}" />
|
||||
<i class="fa-solid fa-weight-hanging input-icon right"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,46 @@
|
||||
<section
|
||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
style="overflow: hidden"
|
||||
>
|
||||
<fieldset style="height:100%">
|
||||
<legend>{{localize "Midgard6.Item.Eigenschaften"}}</legend>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between">
|
||||
<p>{{localize "Midgard6.Item.rüstwert"}}</p>
|
||||
<input
|
||||
type="text"
|
||||
style=" max-width:10rem"
|
||||
name="system.rüstwert"
|
||||
id="rollDisplay"
|
||||
placeholder="0"
|
||||
value="{{system.rüstwert}}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="d-flex">
|
||||
<p>{{localize "Midgard6.Item.helm"}}</p>
|
||||
<a class="helmet" data-action="cycleHelmet" data-item-id="{{item._id}}" style="margin-left: 4px; {{#if item.system.zusätzlich}}background-color: var(--M6-text-brown){{/if}}"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="d-flex justify-content-between">
|
||||
<p>{{localize "Midgard6.Item.einschränkung"}}</p>
|
||||
<input
|
||||
style="margin-left: 8px;"
|
||||
type="text"
|
||||
data-action="splitIntoArray"
|
||||
id="system.merkmale"
|
||||
list="merkmalOptions"
|
||||
value="{{splitArray system.merkmale}}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,72 @@
|
||||
<section
|
||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
style="overflow: hidden"
|
||||
>
|
||||
<fieldset style="height:100%">
|
||||
<legend>{{localize "Midgard6.Item.Eigenschaften"}}</legend>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between">
|
||||
<p>{{localize "Midgard6.Item.schaden"}}</p>
|
||||
<input
|
||||
type="text"
|
||||
style=" max-width:10rem"
|
||||
name="system.schaden"
|
||||
id="rollDisplay"
|
||||
placeholder="1d6"
|
||||
value="{{system.schaden}}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6"></div>
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between">
|
||||
<p>{{localize "Midgard6.Item.fertigkeit"}}</p>
|
||||
<select
|
||||
type="text"
|
||||
style="margin-left: 8px; max-width:10rem"
|
||||
name="system.fertigkeit"
|
||||
id="fertigkeit"
|
||||
placeholder="Nahkampf"
|
||||
/>
|
||||
<option {{#ifeq system.fertigkeit "system.skills.kampf.fernkampf"}}selected{{/ifeq}} value="system.skills.kampf.fernkampf">{{localize
|
||||
"Midgard6.Skills.fernkampf"
|
||||
}}</option>
|
||||
<option {{#ifeq system.fertigkeit "system.skills.kampf.nahkampf"}}selected{{/ifeq}} value="system.skills.kampf.nahkampf">{{localize
|
||||
"Midgard6.Skills.nahkampf"
|
||||
}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between">
|
||||
<p>{{localize "Midgard6.Item.spezialisierung"}}</p>
|
||||
<select
|
||||
type="text"
|
||||
style="margin-left: 8px; max-width:10rem"
|
||||
name="system.spezialisierung"
|
||||
id="system.spezialisierung"
|
||||
placeholder=""
|
||||
/>
|
||||
<option {{#ifeq system.spezialisierung ""}}selected{{/ifeq}} value=""></option>
|
||||
{{#each bonuses as |bonus|}}
|
||||
<option {{#ifeq bonus.name ../system.spezialisierung}}selected{{/ifeq}} value="{{bonus.name}}">
|
||||
{{bonus.name}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="d-flex justify-content-between">
|
||||
<p>{{localize "Midgard6.Item.waffenmerkmale"}}</p>
|
||||
<input style="margin-left: 8px;" type="text" data-action="splitIntoArray" id="merkmale" name="system.merkmale" list="merkmalOptions" value="{{splitArray system.merkmale}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,59 @@
|
||||
{{! Effects Tab }}
|
||||
<section class="tab effects flexcol scrollable {{tab.cssClass}}" data-group="primary" data-tab="effects">
|
||||
<ul class="effects-list">
|
||||
{{#each effects as |section sid|}}
|
||||
<li class="effects-header flexrow draggable" data-effect-type="{{section.type}}">
|
||||
<div class="effect-label flexrow">
|
||||
{{localize section.label}}
|
||||
</div>
|
||||
<div class="effect-source">
|
||||
{{localize "EFFECT.FIELDS.origin.label"}}
|
||||
</div>
|
||||
<div class="effect-duration">{{localize "EFFECT.TABS.duration"}}</div>
|
||||
<div class="document-controls flexrow">
|
||||
<a class="effect-controls"
|
||||
data-action="createDoc" data-document-class="ActiveEffect"
|
||||
{{!-- <!-- eslint-disable-next-line @html-eslint/no-duplicate-attrs --> --}}
|
||||
{{#if (eq section.type "inactive" )}} data-disabled="true"
|
||||
{{else if (eq section.type "temporary" )}} data-duration.rounds="1" {{/if}}
|
||||
data-origin="{{@root.document.uuid}}"
|
||||
title="{{localize 'DOCUMENT.Create' type=(localize 'DOCUMENT.ActiveEffect')}}"
|
||||
data-img="icons/svg/aura.svg"
|
||||
>
|
||||
<i class="fas fa-plus"></i>
|
||||
{{localize "DOCUMENT.New" type=(localize "UTS.Effect.Label")}}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<ul class="effect-list">
|
||||
{{#each section.effects as |effect|}}
|
||||
<li class="effect flexrow draggable" data-effect-id="{{effect.id}}" data-parent-id="{{effect.parent.id}}"
|
||||
data-document-class="ActiveEffect">
|
||||
<div class="effect-label flexrow">
|
||||
<img class="effect-image" src="{{effect.img}}" alt="{{effect.name}}" height="24" width="24">
|
||||
<div class="effect-name">{{effect.name}}</div>
|
||||
</div>
|
||||
<div class="effect-source">{{effect.sourceName}}</div>
|
||||
<div class="effect-duration">{{effect.duration.label}}</div>
|
||||
<div class="document-controls flexrow">
|
||||
{{#if @root.editable}}
|
||||
<a class="effect-control" data-action="toggleEffect" title="{{localize 'UTS.Effect.Toggle'}}">
|
||||
<i class="fas {{#if effect.disabled}}fa-check{{else}}fa-times{{/if}}"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
<a class="effect-control" data-action="viewDoc" title="{{localize 'DOCUMENT.Update' type=(localize 'DOCUMENT.ActiveEffect')}}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
{{#if @root.editable}}
|
||||
<a class="effect-control" data-action="deleteDoc" title="{{localize 'DOCUMENT.Delete' type=(localize 'DOCUMENT.ActiveEffect')}}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</section>
|
||||
@@ -0,0 +1,42 @@
|
||||
<nav class="tabs" data-application-part="navigation" style="">
|
||||
{{#each tabs}}
|
||||
<a
|
||||
class="sheet-stack {{cssClass}}"
|
||||
data-tab="{{id}}"
|
||||
data-group="primary"
|
||||
data-action="tab"
|
||||
data-tooltip="{{localize label}}"
|
||||
>
|
||||
<div class="container">
|
||||
<div class="background"></div>
|
||||
<div class="border"></div>
|
||||
<span class="value">
|
||||
<i class="fa-solid {{icon}}"></i>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
{{/each}}
|
||||
{{#isdefined system.locked}}
|
||||
{{#if @root.editable}}
|
||||
<a
|
||||
class="sheet-stack {{cssClass}}"
|
||||
data-tab="lock"
|
||||
data-group="primary"
|
||||
data-action="cycleLock"
|
||||
data-tooltip="{{localize 'Midgard6.Sheets.Tabs.sperre'}}"
|
||||
>
|
||||
<div class="container">
|
||||
<div class="background"></div>
|
||||
<div class="border"></div>
|
||||
<span class="value">
|
||||
{{#if system.locked}}
|
||||
<i class="fa fa-lock"></i>
|
||||
{{else}}
|
||||
<i class="fa fa-lock-open"></i>
|
||||
{{/if}}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{/isdefined}}
|
||||
</nav>
|
||||
@@ -0,0 +1,26 @@
|
||||
{{! Beschreibung Allgemein Tab }}
|
||||
<section
|
||||
class="standard-form tab {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
style="overflow: hidden"
|
||||
>
|
||||
{{! Editors must receive enriched text data from getData to properly handle rolls, UUID links, etc. }}
|
||||
<fieldset style="height:100%">
|
||||
<legend>{{localize "Midgard6.Item.Description"}}</legend>
|
||||
{{#if editable}}
|
||||
<prose-mirror
|
||||
style="height:100%"
|
||||
name="system.beschreibung"
|
||||
data-document-u-u-i-d="{{actor.uuid}}"
|
||||
value="{{system.beschreibung}}"
|
||||
collaborate="true"
|
||||
toggled="true"
|
||||
>
|
||||
{{{enrichedBeschreibung}}}
|
||||
</prose-mirror>
|
||||
{{else}}
|
||||
{{{enrichedBeschreibung}}}
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,31 @@
|
||||
<section
|
||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
||||
data-tab="{{tab.id}}"
|
||||
data-group="{{tab.group}}"
|
||||
>
|
||||
<fieldset style="height:100%">
|
||||
<legend>{{localize "Midgard6.Item.Eigenschaften"}}</legend>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{#each zauberFields.eigenschaften.fields}}
|
||||
{{#unlesseq field.name "ursprung"}}
|
||||
{{#unlesseq field.name "stufe"}}
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between">
|
||||
<p>{{localizeConcat "Midgard6.Zauber." field.name}}</p>
|
||||
<input
|
||||
type="text"
|
||||
style="margin-bottom: 4px; max-width:10rem"
|
||||
name="{{field.fieldPath}}"
|
||||
placeholder="{{localizeConcat 'Midgard6.Zauber.' field.name}}"
|
||||
value="{{value}}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{{/unlesseq}}
|
||||
{{/unlesseq}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
@@ -0,0 +1,45 @@
|
||||
<header class="sheet-header">
|
||||
<div class="container">
|
||||
<div class="row align-items-end" style="height: 108px" >
|
||||
<div class="col-12">
|
||||
<input class="text" type="text" style="color: var(--M6-text-brown); font-weight: bold; font-size:24px; background-color: var(--Midgard6-background-grey)" placeholder="{{localize "Midgard6.name"}}" name="name" value="{{item.name}}" />
|
||||
</div>
|
||||
<div class="col-6" style="height:32px">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input class="custom-input text" type="text" placeholder="{{localize "Midgard6.Zauber.stufe"}}" name="system.eigenschaften.stufe" value="{{item.system.eigenschaften.stufe}}" />
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<select
|
||||
class="text right"
|
||||
style="text-align: right"
|
||||
name="system.eigenschaften.ursprung"
|
||||
id="ursprung"
|
||||
placeholder="Kleiner Zauber/ Zaubersalz"
|
||||
/>
|
||||
{{#each bonuses as |bonus|}}
|
||||
<option {{#ifeq bonus.name ../system.eigenschaften.ursprung}}selected{{/ifeq}} value="{{bonus.name}}">
|
||||
{{bonus.name}}
|
||||
</option>
|
||||
{{/each}}
|
||||
<option {{#ifeq system.eigenschaften.ursprung "Kleiner Zauber"}}selected{{/ifeq}} value="Kleiner Zauber">Kleiner Zauber</option>
|
||||
<option {{#ifeq system.eigenschaften.ursprung "Zaubersalz"}}selected{{/ifeq}} value="Zaubersalz">Zaubersalz</option>
|
||||
</select>
|
||||
</div>
|
||||
<img
|
||||
class="profile-img"
|
||||
style="z-index:1"
|
||||
src="{{item.img}}"
|
||||
alt="{{item.name}}"
|
||||
{{#if editable}}
|
||||
data-action="editImage"
|
||||
data-edit="img"
|
||||
{{/if}}
|
||||
data-tooltip="{{item.name}}"
|
||||
height="100" width="100"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
Reference in new issue
Block a user