diff --git a/css/fvtt-cthulhu-eternal.css b/css/fvtt-cthulhu-eternal.css index da66df6..5dd016f 100644 --- a/css/fvtt-cthulhu-eternal.css +++ b/css/fvtt-cthulhu-eternal.css @@ -423,11 +423,24 @@ i.fvtt-cthulhu-eternal { .fvtt-cthulhu-eternal .protagonist-biography .field-label { margin-left: 8px; } +.fvtt-cthulhu-eternal .protagonist-biography .features, .fvtt-cthulhu-eternal .protagonist-biography .biodata { display: grid; - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat(2, 1fr); gap: 8px; } +.fvtt-cthulhu-eternal .protagonist-biography .features label, +.fvtt-cthulhu-eternal .protagonist-biography .biodata label { + min-width: 3rem; +} +.fvtt-cthulhu-eternal .protagonist-biography .features .feature, +.fvtt-cthulhu-eternal .protagonist-biography .biodata .feature { + display: flex; + align-items: center; + gap: 4px; + min-width: 18rem; + max-width: 18rem; +} .fvtt-cthulhu-eternal .protagonist-biography .motivations { display: grid; grid-template-columns: repeat(2, 1fr); diff --git a/lang/en.json b/lang/en.json index 2c276a2..02b46c7 100644 --- a/lang/en.json +++ b/lang/en.json @@ -35,6 +35,9 @@ "Protagonist": { "FIELDS": { "biodata": { + "feature": { + "label": "Feature" + }, "harshness": { "label": "Harshness" }, @@ -256,6 +259,7 @@ "veryHarsh": "Very Harsh" }, "Label": { + "distinguishingFeatures": "Distinguishing Features", "titleSkill": "Skill", "titleWeapon": "Weapon", "biodata": "Biodata", diff --git a/styles/protagonist.less b/styles/protagonist.less index 2736d5a..aa39b0a 100644 --- a/styles/protagonist.less +++ b/styles/protagonist.less @@ -203,11 +203,24 @@ .field-label { margin-left: 8px; } + + .features, .biodata { display: grid; - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat(2, 1fr); gap: 8px; + label { + min-width: 3.0rem; + } + .feature { + display: flex; + align-items: center; + gap: 4px; + min-width: 18rem; + max-width: 18rem; + } } + .motivations { display: grid; grid-template-columns: repeat(2, 1fr); diff --git a/templates/protagonist-biography.hbs b/templates/protagonist-biography.hbs index c80ff85..e8a551f 100644 --- a/templates/protagonist-biography.hbs +++ b/templates/protagonist-biography.hbs @@ -14,6 +14,36 @@ +
+ {{localize "CTHULHUETERNAL.Label.distinguishingFeatures"}} +
+
+ + {{formInput systemFields.characteristics.fields.str.fields.feature value=system.characteristics.str.feature localize=true}} +
+
+ + {{formInput systemFields.characteristics.fields.dex.fields.feature value=system.characteristics.dex.feature localize=true}} +
+
+ + {{formInput systemFields.characteristics.fields.con.fields.feature value=system.characteristics.con.feature localize=true}} +
+
+ + {{formInput systemFields.characteristics.fields.int.fields.feature value=system.characteristics.int.feature localize=true}} +
+
+ + {{formInput systemFields.characteristics.fields.pow.fields.feature value=system.characteristics.pow.feature localize=true}} +
+
+ + {{formInput systemFields.characteristics.fields.cha.fields.feature value=system.characteristics.cha.feature localize=true}} +
+
+
+
{{localize "CTHULHUETERNAL.Label.description"}} diff --git a/templates/protagonist-main.hbs b/templates/protagonist-main.hbs index fc627fe..28faf10 100644 --- a/templates/protagonist-main.hbs +++ b/templates/protagonist-main.hbs @@ -78,7 +78,7 @@ {{localize "CTHULHUETERNAL.Label.characteristics"}}
-
-
-
-
-
-