Biographie
This commit is contained in:
1 parent
a903476a72
commit
0da6fa67ac
3 files changed
+17
-9
No files matched your search
+2
-1
@@ -93,7 +93,8 @@
|
|||||||
"items": "Gegenstände",
|
"items": "Gegenstände",
|
||||||
"effects": "Effekte",
|
"effects": "Effekte",
|
||||||
"zauber": "Zauber",
|
"zauber": "Zauber",
|
||||||
"description": "Beschreibung"
|
"biographie": "Biographie",
|
||||||
|
"hintergrund": "Hintergrund"
|
||||||
},
|
},
|
||||||
"spezialisierung": "Spezialisierung"
|
"spezialisierung": "Spezialisierung"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -61,6 +61,10 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
|||||||
id: "hintergrund",
|
id: "hintergrund",
|
||||||
icon: "fa-feather-pointed"
|
icon: "fa-feather-pointed"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "biographie",
|
||||||
|
icon: "fa-feather-pointed"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "effects",
|
id: "effects",
|
||||||
icon: "fa-bolt"
|
icon: "fa-bolt"
|
||||||
@@ -97,6 +101,10 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
|||||||
template: systemPath("templates/actor/hintergrund.hbs"),
|
template: systemPath("templates/actor/hintergrund.hbs"),
|
||||||
scrollable: [""]
|
scrollable: [""]
|
||||||
},
|
},
|
||||||
|
biographie: {
|
||||||
|
template: systemPath("templates/actor/biographie.hbs"),
|
||||||
|
scrollable: [""]
|
||||||
|
},
|
||||||
effects: {
|
effects: {
|
||||||
template: systemPath("templates/shared/effects.hbs"),
|
template: systemPath("templates/shared/effects.hbs"),
|
||||||
scrollable: [""]
|
scrollable: [""]
|
||||||
@@ -185,6 +193,9 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
|||||||
break;
|
break;
|
||||||
case "hintergrund":
|
case "hintergrund":
|
||||||
context.fields = await this._getFields();
|
context.fields = await this._getFields();
|
||||||
|
context.tab = context.tabs[partId];
|
||||||
|
break;
|
||||||
|
case "biographie":
|
||||||
context.enrichedBeschreibung =
|
context.enrichedBeschreibung =
|
||||||
await foundry.applications.ux.TextEditor.implementation.enrichHTML(
|
await foundry.applications.ux.TextEditor.implementation.enrichHTML(
|
||||||
this.actor.system.biographie.beschreibung,
|
this.actor.system.biographie.beschreibung,
|
||||||
@@ -198,6 +209,9 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
context.tab = context.tabs[partId];
|
context.tab = context.tabs[partId];
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
context.tab = context.tabs[partId];
|
||||||
}
|
}
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,12 +4,8 @@
|
|||||||
data-tab="{{tab.id}}"
|
data-tab="{{tab.id}}"
|
||||||
data-group="{{tab.group}}"
|
data-group="{{tab.group}}"
|
||||||
>
|
>
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
{{! Editors must receive enriched text data from getData to properly handle rolls, UUID links, etc. }}
|
|
||||||
<div class="col-12">
|
|
||||||
<fieldset style="height:100%">
|
<fieldset style="height:100%">
|
||||||
<legend>{{localize "Midgard6.Item.Description"}}</legend>
|
<legend>{{localize "Midgard6.Sheets.Tabs.biographie"}}</legend>
|
||||||
{{#if editable}}
|
{{#if editable}}
|
||||||
<prose-mirror
|
<prose-mirror
|
||||||
style="height:100%"
|
style="height:100%"
|
||||||
@@ -25,7 +21,4 @@
|
|||||||
{{{enrichedBeschreibung}}}
|
{{{enrichedBeschreibung}}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
Reference in new issue
Block a user