adds languages and scripts to talent import, also prevents breaks inside a talent group on the character sheet

pull/58/head
macniel 2025-10-13 23:44:32 +02:00
parent 416830a56e
commit 8fc2d37942
19 changed files with 92 additions and 25 deletions

View File

@ -27,6 +27,7 @@ async function preloadHandlebarsTemplates() {
// ui partials. // ui partials.
'systems/DSA_4-1/templates/ui/partial-rollable-button.hbs', 'systems/DSA_4-1/templates/ui/partial-rollable-button.hbs',
'systems/DSA_4-1/templates/ui/partial-rollable-weaponskill-button.hbs', 'systems/DSA_4-1/templates/ui/partial-rollable-weaponskill-button.hbs',
'systems/DSA_4-1/templates/ui/partial-rollable-language-button.hbs',
'systems/DSA_4-1/templates/ui/partial-attribute-button.hbs', 'systems/DSA_4-1/templates/ui/partial-attribute-button.hbs',
'systems/DSA_4-1/templates/ui/partial-talent-editable.hbs', 'systems/DSA_4-1/templates/ui/partial-talent-editable.hbs',
'systems/DSA_4-1/templates/ui/partial-die.hbs', 'systems/DSA_4-1/templates/ui/partial-die.hbs',

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Asdharia", "name": "Lesen/Schreiben Asdharia",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Chrmk", "name": "Lesen/Schreiben Chrmk",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Geheiligte Glyphen von Unau", "name": "Lesen/Schreiben Geheiligte Glyphen von Unau",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Hjaldingsche Runen", "name": "Lesen/Schreiben Hjaldingsche Runen",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Isdira", "name": "Lesen/Schreiben Isdira",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Kusliker Zeichen", "name": "Lesen/Schreiben Kusliker Zeichen",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Nanduria", "name": "Lesen/Schreiben Nanduria",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Rogolan", "name": "Lesen/Schreiben Rogolan",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Tulamidya", "name": "Lesen/Schreiben Tulamidya",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Ur-Tulamidya", "name": "Lesen/Schreiben Urtulamidya",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -1,5 +1,5 @@
{ {
"name": "Lesen und Schreiben Zhayad", "name": "Lesen/Schreiben Zhayad",
"gruppe": "Sprachen", "gruppe": "Sprachen",
"probe": [ "probe": [
"KL", "KL",

View File

@ -411,7 +411,7 @@
left: 136px left: 136px
} }
&.torso { &.brust {
top: 86px; top: 86px;
left: 110px; left: 110px;
} }
@ -461,7 +461,7 @@
left: 136px left: 136px
} }
&.torso { &.brust {
top: 120px; top: 120px;
left: 110px; left: 110px;
} }

View File

@ -1,15 +1,27 @@
$nachteil-color: #555753ff; $nachteil-color: #555753ff;
$nachteil-text-color: #FFFF;
$liturgie-color: #edd400ff; $liturgie-color: #edd400ff;
$liturgie-text-color: #000F;
$zauber-color: #3465a4ff; $zauber-color: #3465a4ff;
$zauber-text-color: #000F;
$talent-color: #f57900ff; $talent-color: #f57900ff;
$talent-text-color: #000F;
$kampftalent-color: #cc0000ff; $kampftalent-color: #cc0000ff;
$kampftalent-text-color: #FFFF;
$talent-body-color: #16bd6c; $talent-body-color: #16bd6c;
$talent-body-text-color: #000;
$talent-nature-color: #46800d; $talent-nature-color: #46800d;
$talent-nature-text-color: #000;
$talent-social-color: #ae9809; $talent-social-color: #ae9809;
$talent-social-text-color: #000;
$talent-knowledge-color: #d319ba; $talent-knowledge-color: #d319ba;
$talent-knowledge-text-color: #000;
$talent-language-color: #573bbc; $talent-language-color: #573bbc;
$talent-language-text-color: #fff;
$talent-crafting-color: #ae6813; $talent-crafting-color: #ae6813;
$talent-crafting-text-color: #000;
$harm-fill-color: #ff0000ff; $harm-fill-color: #ff0000ff;
$harm-border-color: #3c0000ff; $harm-border-color: #3c0000ff;

View File

@ -5,6 +5,10 @@
columns: 2; columns: 2;
column-gap: 20px; column-gap: 20px;
.talent-group {
break-inside: avoid-column;
}
ul { ul {
list-style-type: none; list-style-type: none;
padding-left: 0; padding-left: 0;

View File

@ -3,7 +3,6 @@
@use "_colours" as colour; @use "_colours" as colour;
@use "_numbers" as numbers; @use "_numbers" as numbers;
$rollable_colours: ( $rollable_colours: (
"nachteil": colour.$nachteil-color, "nachteil": colour.$nachteil-color,
"talent": colour.$talent-color, "talent": colour.$talent-color,
@ -17,6 +16,20 @@ $rollable_colours: (
"liturgie": colour.$liturgie-color, "liturgie": colour.$liturgie-color,
"zauber": colour.$zauber-color, "zauber": colour.$zauber-color,
); );
$rollable_colours_font: (
"nachteil": colour.$nachteil-text-color,
"talent": colour.$talent-text-color,
"Körperlich": colour.$talent-body-text-color,
"Natur": colour.$talent-nature-text-color,
"Gesellschaft": colour.$talent-social-text-color,
"Wissen": colour.$talent-knowledge-text-color,
"Sprachen": colour.$talent-language-text-color,
"Handwerk": colour.$talent-crafting-text-color,
"kampf": colour.$kampftalent-text-color,
"liturgie": colour.$liturgie-text-color,
"zauber": colour.$zauber-text-color,
);
.dsa41.sheet.actor.character { .dsa41.sheet.actor.character {
.block.rollable { .block.rollable {
@ -152,10 +165,16 @@ $rollable_colours: (
@mixin coloring($name) { @mixin coloring($name) {
$color: map.get($rollable_colours, $name); $color: map.get($rollable_colours, $name);
$font_color: map.get($rollable_colours_font, $name);
.#{$name}.rollable { .#{$name}.rollable {
.die { .die {
stroke-width: 0.5; stroke-width: 0.5;
span.value {
color: $font_color;
}
.border { .border {
fill: colour.$rollable-die-border-color; fill: colour.$rollable-die-border-color;
stroke: colour.$rollable-die-border-color; stroke: colour.$rollable-die-border-color;

View File

@ -393,7 +393,7 @@
</div> </div>
<div class="tab skills" data-group="primary" data-tab="skills"> <div class="tab skills" data-group="primary" data-tab="skills">
<div> <div class="talent-group">
<h2>Kampftalente</h2> <h2>Kampftalente</h2>
<ul> <ul>
{{#each skills.Kampf}} {{#each skills.Kampf}}
@ -403,7 +403,7 @@
{{/each}} {{/each}}
</ul> </ul>
</div> </div>
<div> <div class="talent-group">
<h2>Körperliche Talente</h2> <h2>Körperliche Talente</h2>
<ul> <ul>
<li> <li>
@ -414,7 +414,7 @@
{{/each}} {{/each}}
</ul> </ul>
</div> </div>
<div> <div class="talent-group">
<h2>Gesellschaftliche Talente</h2> <h2>Gesellschaftliche Talente</h2>
<ul> <ul>
<li> <li>
@ -425,7 +425,7 @@
{{/each}} {{/each}}
</ul> </ul>
</div> </div>
<div> <div class="talent-group">
<h2>Natur Talente</h2> <h2>Natur Talente</h2>
<ul> <ul>
<li> <li>
@ -436,7 +436,7 @@
{{/each}} {{/each}}
</ul> </ul>
</div> </div>
<div> <div class="talent-group">
<h2>Wissenstalente</h2> <h2>Wissenstalente</h2>
<ul> <ul>
<li> <li>
@ -447,23 +447,23 @@
{{/each}} {{/each}}
</ul> </ul>
</div> </div>
<div> <div class="talent-group">
<h2>Schriften & Sprachen</h2> <h2>Schriften & Sprachen</h2>
<ul> <ul>
<li> <li>
{{#each skills.Schriften}} {{#each skills.Schriften}}
<li> <li>
{{> "systems/DSA_4-1/templates/ui/partial-rollable-button.hbs" this}} {{> "systems/DSA_4-1/templates/ui/partial-rollable-language-button.hbs" this}}
</li> </li>
{{/each}} {{/each}}
{{#each skills.Schriften}} {{#each skills.Sprachen}}
<li> <li>
{{> "systems/DSA_4-1/templates/ui/partial-rollable-button.hbs" this}} {{> "systems/DSA_4-1/templates/ui/partial-rollable-language-button.hbs" this}}
</li> </li>
{{/each}} {{/each}}
</ul> </ul>
</div> </div>
<div> <div class="talent-group">
<h2>Handwerkliche Talente</h2> <h2>Handwerkliche Talente</h2>
<ul> <ul>
<li> <li>

View File

@ -0,0 +1,29 @@
<div class="block rollable {{this.type}} {{this.gruppe}}" data-item-id="{{this.id}}" data-id="{{this.id}}"
data-taw="{{this.taw}}"
data-name="{{this.name}}" data-eigenschaft1="{{this.eigenschaft1}}" data-eigenschaft2="{{this.eigenschaft2}}"
data-eigenschaft3="{{this.eigenschaft3}}" data-rollEigenschaft1="{{this.rollEigenschaft1}}"
data-rollEigenschaft2="{{this.rollEigenschaft2}}" data-rollEigenschaft3="{{this.rollEigenschaft3}}">
<div class="die">
{{> 'systems/DSA_4-1/templates/ui/partial-die.hbs' }}
<span class="value">{{#if this.taw}}
{{this.taw}}
{{else}}
{{#if this.liturgiekenntnis}}
<img src="{{this.liturgiekenntnis}}"/>
{{/if}}
{{/if}}
</span>
</div>
<div class="container">
<span class="name" data-id="{{this.id}}">{{this.name}}</span>
<div class="werte">
<div class="eigenschaft"><span class="name">Komp</span><span
class="value">{{this.komplexität}}</span></div>
{{#each this.werte}}
<div class="eigenschaft"><span class="name">{{this.name}}</span><span
class="value">{{this.value}}</span></div>
{{/each}}
</div>
</div>
</div>

View File

@ -19,7 +19,9 @@
<div class="werte"> <div class="werte">
<div class="eigenschaft"><span class="name">AT</span><span class="value">{{this.at}}</span></div> <div class="eigenschaft"><span class="name">AT</span><span class="value">{{this.at}}</span></div>
<div class="eigenschaft"><span class="name">PA</span><span class="value">{{this.pa}}</span></div> {{#if this.pa}}
<div class="eigenschaft"><span class="name">PA</span><span class="value">{{this.pa}}</span></div>
{{/if}}
</div> </div>
</div> </div>
</div> </div>