diff --git a/css/fvtt-hellborn.css b/css/fvtt-hellborn.css index 528725b..c547ad3 100644 --- a/css/fvtt-hellborn.css +++ b/css/fvtt-hellborn.css @@ -707,6 +707,29 @@ i.fvtt-hellborn { height: 24px; margin: 4px 0 0 0; } +.fvtt-hellborn .tab.character-biography .main-div .aliases { + display: flex; + flex-direction: row; + align-items: center; + margin-bottom: 4px; + margin-left: 4px; +} +.fvtt-hellborn .tab.character-biography .main-div .aliases .form-group { + display: flex; + flex-direction: row; + align-items: center; + gap: 4px; + margin-left: 4px; +} +.fvtt-hellborn .tab.character-biography .main-div .aliases .form-group label { + min-width: 6rem; + max-width: 6rem; +} +.fvtt-hellborn .tab.character-biography .main-div .aliases input { + text-align: left; + min-width: 41rem; + max-width: 41rem; +} .fvtt-hellborn .tab.character-biography .main-div .biodata { display: grid; grid-template-columns: repeat(3, 1fr); @@ -2423,6 +2446,20 @@ i.fvtt-hellborn { font-family: var(--font-primary); font-size: calc(var(--font-size-standard) * 1); } +.flavor-text-damage { + font-family: var(--font-secondary); + font-size: calc(var(--font-size-standard) * 1.2); + color: var(--color-dark-2); + margin-top: 5px; +} +.flavor-text-damage h2 { + margin-top: 10px; + margin-left: 10px; + margin-bottom: 4px; + font-family: var(--font-title); + font-size: calc(var(--font-size-standard) * 1.2); + color: var(--title-color); +} .dice-roll { flex-direction: column; } @@ -2445,6 +2482,14 @@ i.fvtt-hellborn { display: flex; flex-direction: row; } +.dice-roll .intro-chat h2 { + margin-top: 10px; + margin-left: 10px; + margin-bottom: 4px; + font-family: var(--font-title); + font-size: calc(var(--font-size-standard) * 1.4); + color: var(--title-color); +} .dice-roll .intro-chat .intro-img { padding: 4px; max-width: 80px; diff --git a/lang/en.json b/lang/en.json index 782418a..33ee25d 100644 --- a/lang/en.json +++ b/lang/en.json @@ -64,6 +64,9 @@ "age": { "label": "Age" }, + "aliases": { + "label": "Aliases" + }, "birthplace": { "label": "Birthplace" }, diff --git a/module/documents/roll.mjs b/module/documents/roll.mjs index 2a77da7..cd72718 100644 --- a/module/documents/roll.mjs +++ b/module/documents/roll.mjs @@ -99,7 +99,7 @@ export default class HellbornRoll extends Roll { let damageRoll = new Roll(formula) await damageRoll.evaluate() await damageRoll.toMessage({ - flavor: `${options.rollItem.name} - Damage Roll - ${options.rollItem.system.damageType}`, + flavor: `

Damage Roll : ${options.rollItem.name}


${options.rollItem.system.damageType}
`, }); return } diff --git a/styles/character.less b/styles/character.less index 8247d25..3690f8a 100644 --- a/styles/character.less +++ b/styles/character.less @@ -76,7 +76,7 @@ align-items: center; margin-bottom: 4px; } - .splitted { + .splitted { display: flex; flex-direction: row; gap: 4px; @@ -189,15 +189,15 @@ align-items: center; gap: 4px; margin-left: 4px; - .characteristics-label{ + .characteristics-label { color: grey; - font-size:small; + font-size: small; } label { min-width: 4rem; max-width: 4rem; } - .spaced-left{ + .spaced-left { margin-left: 0.8rem; } input { @@ -591,6 +591,29 @@ } } } + .aliases { + display: flex; + flex-direction: row; + align-items: center; + margin-bottom: 4px; + margin-left: 4px; + .form-group { + label { + min-width: 6rem; + max-width: 6rem; + } + display: flex; + flex-direction: row; + align-items: center; + gap: 4px; + margin-left: 4px; + } + input { + text-align: left; + min-width: 41rem; + max-width: 41rem; + } + } .biodata { display: grid; grid-template-columns: repeat(3, 1fr); diff --git a/styles/roll.less b/styles/roll.less index f90d0cc..70f4af6 100644 --- a/styles/roll.less +++ b/styles/roll.less @@ -57,7 +57,7 @@ .item-to-chat { h2 { margin-top: 10px; - margin-left:10px; + margin-left: 10px; margin-bottom: 4px; font-family: var(--font-title); font-size: calc(var(--font-size-standard) * 1.4); @@ -77,6 +77,21 @@ } } +.flavor-text-damage { + font-family: var(--font-secondary); + font-size: calc(var(--font-size-standard) * 1.2); + color: var(--color-dark-2); + margin-top: 5px; + h2 { + margin-top: 10px; + margin-left: 10px; + margin-bottom: 4px; + font-family: var(--font-title); + font-size: calc(var(--font-size-standard) * 1.2); + color: var(--title-color); + } +} + &.dice-roll { flex-direction: column; @@ -98,10 +113,19 @@ border-radius: 20px; display: flex; flex-direction: row; + h2 { + margin-top: 10px; + margin-left: 10px; + margin-bottom: 4px; + font-family: var(--font-title); + font-size: calc(var(--font-size-standard) * 1.4); + color: var(--title-color); + } + .intro-img { padding: 4px; max-width: 80px; - min-width : 80px; + min-width: 80px; align-self: top; text-align: center; } @@ -158,6 +182,7 @@ } } } + .result { display: flex; flex-direction: column; diff --git a/templates/character-biography.hbs b/templates/character-biography.hbs index b3409ac..190735e 100644 --- a/templates/character-biography.hbs +++ b/templates/character-biography.hbs @@ -17,38 +17,42 @@ -
+
{{localize "HELLBORN.Label.biodata"}} -
- {{formField systemFields.biodata.fields.gender value=system.biodata.gender rootId=partId disabled=isPlayMode}} +
+ {{formField systemFields.biodata.fields.aliases value=system.biodata.aliases rootId=partId disabled=isPlayMode}}
-
- {{formField systemFields.biodata.fields.age value=system.biodata.age rootId=partId disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.gender value=system.biodata.gender rootId=partId disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.age value=system.biodata.age rootId=partId disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.height value=system.biodata.height rootId=partId disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.weight value=system.biodata.weight rootId=partId disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.eyes value=system.biodata.eyes rootId=partId disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.hair value=system.biodata.hair rootId=partId disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.home value=system.biodata.home rootId=partId disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace rootId=partId + disabled=isPlayMode}} +
+
+ {{formField systemFields.biodata.fields.dod value=system.biodata.dod rootId=partId + disabled=isPlayMode}} +
-
- {{formField systemFields.biodata.fields.height value=system.biodata.height rootId=partId disabled=isPlayMode}} -
-
- {{formField systemFields.biodata.fields.weight value=system.biodata.weight rootId=partId disabled=isPlayMode}} -
-
- {{formField systemFields.biodata.fields.eyes value=system.biodata.eyes rootId=partId disabled=isPlayMode}} -
-
- {{formField systemFields.biodata.fields.hair value=system.biodata.hair rootId=partId disabled=isPlayMode}} -
-
- {{formField systemFields.biodata.fields.home value=system.biodata.home rootId=partId disabled=isPlayMode}} -
-
- {{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace rootId=partId - disabled=isPlayMode}} -
-
- {{formField systemFields.biodata.fields.dod value=system.biodata.dod rootId=partId - disabled=isPlayMode}} -
-
diff --git a/templates/chat-message.hbs b/templates/chat-message.hbs index 631b187..90b69c8 100644 --- a/templates/chat-message.hbs +++ b/templates/chat-message.hbs @@ -5,21 +5,23 @@ {{actorName}}
+ + {{#if (eq rollType "stat")}} +

{{localize "HELLBORN.Label.statRoll"}}

+ {{/if}} + {{#if weapon}} +

Weapon : {{weapon.name}}

+ {{/if}} +
    - {{#if (eq rollType "stat")}} -
  • {{localize "HELLBORN.Label.statRoll"}}
  • - {{/if}} - - - {{#if weapon}} -
  • Weapon : {{weapon.name}}
  • Properties : {{weapon.system.properties}}
  • - {{/if}} - -
  • {{localize rollItem.label}} : {{rollItem.value}}
  • - -
  • {{localize "HELLBORN.Label.difficulty"}} : {{difficulty}}
  • +
  • + + {{localize rollItem.label}} : {{rollItem.value}} + {{localize "HELLBORN.Label.difficulty"}} : {{difficulty}} + +
  • {{#if (gt nbAdvantages 0)}}
  • With Advantage !
  • diff --git a/templates/chat-perk.hbs b/templates/chat-perk.hbs index 89695c3..35ea6ec 100644 --- a/templates/chat-perk.hbs +++ b/templates/chat-perk.hbs @@ -2,7 +2,7 @@

    {{name}}

      -
    • {{system.flavorText}}
    • +
    • {{system.flavorText}}
    • Role : {{upperFirst system.role}}
    • Level : {{getRomanLevel system.level}}
    • {{{system.description}}}