diff --git a/lang/de.json b/lang/de.json index 59dac3a..a062873 100644 --- a/lang/de.json +++ b/lang/de.json @@ -93,7 +93,8 @@ "items": "Gegenstände", "effects": "Effekte", "zauber": "Zauber", - "description": "Beschreibung" + "biographie": "Biographie", + "hintergrund": "Hintergrund" }, "spezialisierung": "Spezialisierung" }, diff --git a/src/sheets/character-sheet.mjs b/src/sheets/character-sheet.mjs index 2ca863d..05a81de 100644 --- a/src/sheets/character-sheet.mjs +++ b/src/sheets/character-sheet.mjs @@ -61,6 +61,10 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe id: "hintergrund", icon: "fa-feather-pointed" }, + { + id: "biographie", + icon: "fa-feather-pointed" + }, { id: "effects", icon: "fa-bolt" @@ -97,6 +101,10 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe template: systemPath("templates/actor/hintergrund.hbs"), scrollable: [""] }, + biographie: { + template: systemPath("templates/actor/biographie.hbs"), + scrollable: [""] + }, effects: { template: systemPath("templates/shared/effects.hbs"), scrollable: [""] @@ -185,6 +193,9 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe break; case "hintergrund": context.fields = await this._getFields(); + context.tab = context.tabs[partId]; + break; + case "biographie": context.enrichedBeschreibung = await foundry.applications.ux.TextEditor.implementation.enrichHTML( this.actor.system.biographie.beschreibung, @@ -198,6 +209,9 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe } ); context.tab = context.tabs[partId]; + break; + default: + context.tab = context.tabs[partId]; } return context; } diff --git a/src/templates/actor/biographie.hbs b/src/templates/actor/biographie.hbs index 898130a..8d8eecc 100644 --- a/src/templates/actor/biographie.hbs +++ b/src/templates/actor/biographie.hbs @@ -4,28 +4,21 @@ data-tab="{{tab.id}}" data-group="{{tab.group}}" > -
-
- {{! Editors must receive enriched text data from getData to properly handle rolls, UUID links, etc. }} -
-
- {{localize "Midgard6.Item.Description"}} - {{#if editable}} - - {{{enrichedBeschreibung}}} - - {{else}} - {{{enrichedBeschreibung}}} - {{/if}} -
-
-
-
+
+ {{localize "Midgard6.Sheets.Tabs.biographie"}} + {{#if editable}} + + {{{enrichedBeschreibung}}} + + {{else}} + {{{enrichedBeschreibung}}} + {{/if}} +
\ No newline at end of file