CSS/Font enhancements

This commit is contained in:
2025-10-26 15:08:45 +01:00
parent 216360e0d8
commit f5d84832f3
81 changed files with 1948 additions and 1658 deletions

View File

@@ -324,7 +324,7 @@
<li class="item flexrow " data-item-id="{{don._id}}" data-item-type="don">
<img class="item-name-img" src="{{don.img}}" />
<span class="item-name-label competence-name">{{don.name}}</span>
<span class="item-field-label-short">{{don.system.allegeance}}</span>
<span class="item-field-label-short">&nbsp;{{upperFirst don.system.allegeance}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
@@ -352,7 +352,7 @@
<li class="item flexrow " data-item-id="{{pacte._id}}" data-item-type="pacte">
<img class="item-name-img" src="{{pacte.img}}" />
<span class="item-name-label competence-name">{{pacte.name}}</span>
<span class="item-field-label-short">{{pacte.system.allegeance}}</span>
<span class="item-field-label-short">{{upperFirst pacte.system.allegeance}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
@@ -370,7 +370,7 @@
<h3><label class="items-title-text">{{localize "MNBL.runes"}}</label></h3>
</span>
<span class="item-field-label-long">
<label class="short-label">{{localize "MNBL.highlanguage"}}</label>
<label class="short-label">{{upperFirst (localize "MNBL.highlanguage")}}</label>
</span>
<span class="item-field-label-short">
<label class="short-label">{{localize "MNBL.difficulty"}}</label>

View File

@@ -18,64 +18,64 @@
<div>
<ul>
<li class="mournblade-roll">{{localize "MNBL.attribut"}} {{attr.label}}</li>
<li class="mournblade-roll"><strong>{{localize "MNBL.attribut"}}</strong> : {{attr.label}}</li>
{{#if arme}}
<li>{{localize "MNBL.weapon"}} : {{arme.name}} (+{{arme.system.bonusmaniementoff}})</li>
<li><strong>{{localize "MNBL.weapon"}}</strong> : {{arme.name}} (+{{arme.system.bonusmaniementoff}})</li>
{{#if defender}}
<li>{{localize "MNBL.target"}} : {{defender.name}}</li>
<li><strong>{{localize "MNBL.target"}}</strong> : {{defender.name}}</li>
{{/if}}
{{#if typeAttaque}}
<li>{{localize "MNBL.attack"}} : {{lookup config.attaques typeAttaque}}</li>
<li><strong>{{localize "MNBL.attack"}}</strong> : {{lookup config.attaques typeAttaque}}</li>
{{/if}}
{{/if}}
{{#if competence}}
<li>{{localize "MNBL.skill"}} : {{competence.name}}</li>
<li><strong>{{localize "MNBL.skill"}}</strong> : {{competence.name}}</li>
{{/if}}
{{#if predilectionUsed}}
<li>{{localize "MNBL.usedpredilection"}} : {{predilectionUsed.name}}</li>
<li><strong>{{localize "MNBL.usedpredilection"}}</strong> : {{predilectionUsed.name}}</li>
{{/if}}
{{#if rune}}
<li>Rune : {{rune.name}}</li>
<li>{{localize "MNBL.mode"}} : {{runemode}}</li>
<li>{{localize "MNBL.soulpoints"}} : {{runeame}}</li>
<li>{{localize "MNBL.duration"}} : {{runeduree}} actions complexes</li>
<li><strong>Rune</strong> : {{rune.name}}</li>
<li><strong>{{localize "MNBL.mode"}}</strong> : {{runemode}}</li>
<li><strong>{{localize "MNBL.soulpoints"}}</strong> : {{runeame}}</li>
<li><strong>{{localize "MNBL.duration"}}</strong> : {{runeduree}} actions complexes</li>
{{/if}}
{{#if bonusRoll}}
<li>{{textBonus}} : {{bonusRoll.total}}</li>
<li><strong>{{textBonus}}</strong> : {{bonusRoll.total}}</li>
{{/if}}
<li>{{localize "MNBL.formula"}} : {{diceFormula}}</li>
<li>{{localize "MNBL.dice"}} : {{diceResult}}</li>
<li><strong>{{localize "MNBL.formula"}}</strong> : {{diceFormula}}</li>
<li><strong>{{localize "MNBL.dice"}}</strong> : {{diceResult}}</li>
{{#if difficulte}}
<li>{{localize "MNBL.difficulty"}} : {{difficulte}}
<li><strong>{{localize "MNBL.difficulty"}}</strong> : {{difficulte}}
{{#if (and arm.system.isMelee armeDefense)}}
({{armeDefense.name}})
{{/if}}
</li>
{{/if}}
<li></li>
<li>Total : {{finalResult}}</li>
<li><strong>{{localize "MNBL.total"}}</strong> : {{finalResult}}</li>
{{#if difficulte}}
{{#if isSuccess}}
<li>{{localize "MNBL.success"}}!!!</li>
<li class="roll-success">{{localize "MNBL.success"}}!!!</li>
{{else}}
<li>{{localize "MNBL.failure"}} ...</li>
<li class="roll-failure">{{localize "MNBL.failure"}} ...</li>
{{/if}}
{{/if}}
{{#if isHeroique}}
<li>{{localize "MNBL.heroicsuccess"}}!!!</li>
<li class="roll-heroic">{{localize "MNBL.heroicsuccess"}}!!!</li>
{{/if}}
{{#if isDramatique}}
<li>{{localize "MNBL.dramaticfailure"}}!!!</li>
<li class="roll-dramatic">{{localize "MNBL.dramaticfailure"}}!!!</li>
{{/if}}
<div class="action-section">
@@ -99,27 +99,27 @@
{{#if (eq typeAttaque "assomer")}}
{{#if isSucess}}
{{#if isHeroique}}
<li>La cible {{defender.name}} est assomée pour [[/r 1d20]] minutes.</li>
<li>La cible {{defender.name}} est assomée pour [[/r 1d20]] minutes.</li>
{{else}}
<li>La cible {{defender.name}} subit un malus de -5 à sa prochaine action (auto).</li>
<li>La cible {{defender.name}} subit un malus de -5 à sa prochaine action (auto).</li>
{{/if}}
{{/if}}
{{/if}}
{{#if (eq typeAttaque "fuir")}}
{{#if iSuccess}}
<li>Vous parvenez à vous désengager et le corps-à-corps cesse.</li>
<li>Vous parvenez à vous désengager et le corps-à-corps cesse.</li>
{{else}}
<li>Vous ne parvenez pas à vous dégager, et vous subissez un malus de -5 à votre défense pour ce tout et le suivant (auto).</li>
<li>Vous ne parvenez pas à vous dégager, et vous subissez un malus de -5 à votre défense pour ce tout et le suivant (auto).</li>
{{/if}}
{{/if}}
{{#if (eq typeAttaque "immobiliser")}}
{{#if isPureSuccess}}
<li>Vous maitrisez partiellement votre adversaire. Il subit une pénalité de -5 pour sa prochaine action (auto).</li>
<li>Vous maitrisez partiellement votre adversaire. Il subit une pénalité de -5 pour sa prochaine action (auto).</li>
{{/if}}
{{#if isHeroique}}
<li>Votre adversaire est immobilisé ! Vous devez désormais faire un jet en opposition Puissance+Mêlée/Puissance+Mêlée chaque tour (action complexe).</li>
<li>Votre adversaire est immobilisé ! Vous devez désormais faire un jet en opposition Puissance+Mêlée/Puissance+Mêlée chaque tour (action complexe).</li>
{{/if}}
{{/if}}

View File

@@ -7,12 +7,17 @@
</header>
<div class="flexcol">
<div class="flexrow">
{{#if (eq attrKey "tochoose")}}
<span class="roll-dialog-label">{{localize "MNBL.attribute"}}</span>
<select class="status-small-label color-class-common" id="attrKey" type="text" name="attrKey" value="attrKey"
data-dtype="string">
<select
class="status-small-label color-class-common"
id="attrKey"
type="text"
name="attrKey"
value="attrKey"
data-dtype="string"
>
{{selectOptions config.attributs selected=attrKey}}
</select>
{{else}}
@@ -26,121 +31,227 @@
<span class="roll-dialog-label">{{competence.name}}</span>
<span class="small-label">{{competence.system.niveau}}</span>
</div>
{{/if}}
{{#if rune}}
{{/if}} {{#if rune}}
<div class="flexrow">
<span class="roll-dialog-label">{{rune.name}}</span>
<span class="small-label">{{rune.system.formule}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Lancement</span>
<select class="roll-dialog-label" id="runemode" type="text" name="runemode" value="{{runemode}}"
data-dtype="String">
<select
class="roll-dialog-label"
id="runemode"
type="text"
name="runemode"
value="{{runemode}}"
data-dtype="String"
>
{{selectOptions config.lancementRuneOptions selected=runemode}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.soulpoints"}}</span>
<select class="roll-dialog-label" id="runeame" type="text" name="runeame" value="{{runeame}}" data-dtype="Number">
<select
class="roll-dialog-label"
id="runeame"
type="text"
name="runeame"
value="{{runeame}}"
data-dtype="Number"
>
{{selectOptions config.pointsAmeOptions selected=runeame}}
</select>
</div>
{{/if}}
{{#if arme}}
{{/if}} {{#if arme}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.weapon"}} : </span>
<span class="roll-dialog-label">{{arme.name}} (+{{arme.system.bonusmaniementoff}})</span>
<span class="roll-dialog-label"
>{{arme.name}} (+{{arme.system.bonusmaniementoff}})</span
>
</div>
{{#if arme.system.isMelee}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.attack"}} : </span>
<select class="roll-dialog-label" id="typeAttaque" type="text" name="typeAttaque" value="{{typeAttaque}}"
data-dtype="String">
<select
class="roll-dialog-label"
id="typeAttaque"
type="text"
name="typeAttaque"
value="{{typeAttaque}}"
data-dtype="String"
>
{{selectOptions config.attaques selected=typeAttaque }}
</select>
</div>
{{#if isMonte}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.attackmountbonus"}} ? : </span>
<input class="" type="checkbox" id="isMonte" name="isMonte" {{checked isMonte}} />
</div>
{{/if}}
{{/if}}
{{/if}}
{{#if difficulte}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.targetdefense"}} : </span>
<span class="roll-dialog-label"
>{{localize "MNBL.attackmountbonus"}} ? :
</span>
<input
class=""
type="checkbox"
id="isMonte"
name="isMonte"
{{checked
isMonte}}
/>
</div>
{{/if}} {{/if}} {{/if}} {{#if difficulte}}
<div class="flexrow">
<span class="roll-dialog-label"
>{{localize "MNBL.targetdefense"}} :
</span>
<span class="roll-dialog-label"><strong>{{difficulte}}</strong> </span>
</div>
{{/if}} {{#if arme}} {{#if arme.system.isDistance}}
<div class="flexrow">
<span class="roll-dialog-label"
><strong>{{localize "MNBL.shootmodifier"}}</strong></span
>
</div>
<div class="flexrow">
<span class="roll-dialog-label"
>{{localize "MNBL.aimingbonus"}} ? :
</span>
<input
class=""
type="checkbox"
id="visee"
name="visee"
{{checked
visee}}
/>
</div>
{{#if defender}}
<div class="flexrow">
<span class="roll-dialog-label"
>{{localize "MNBL.targetseeshoot"}}
(-{{defender.system.attributs.adr.value}})? :
</span>
<input
class=""
type="checkbox"
id="cibleconsciente"
name="cibleconsciente"
{{checked
cibleconsciente}}
/>
</div>
{{else}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.notarget"}} ! </span>
</div>
{{/if}}
{{#if arme}}
{{#if arme.system.isDistance}}
<div class="flexrow">
<span class="roll-dialog-label"><strong>{{localize "MNBL.shootmodifier"}}</strong></span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.aimingbonus"}} ? : </span>
<input class="" type="checkbox" id="visee" name="visee" {{checked visee}} />
</div>
{{#if defender}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.targetseeshoot"}} (-{{defender.system.attributs.adr.value}})? : </span>
<input class="" type="checkbox" id="cibleconsciente" name="cibleconsciente" {{checked cibleconsciente}} />
</div>
{{else}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.notarget"}} ! </span>
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.runningtarget"}} ? : </span>
<input class="" type="checkbox" id="ciblecourt" name="ciblecourt" {{checked ciblecourt}} />
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.hascover"}} ? : </span>
<select class="roll-dialog-label" id="typeCouvert" type="text" name="typeCouvert" value="{{typeCouvert}}"
data-dtype="String">
{{selectOptions config.couverts labelAttr="name" selected=typeCouvert}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.range"}} </span>
<select class="roll-dialog-label" id="difficulte" type="text" name="difficulte" value="{{difficulte}}"
data-dtype="Number">
{{selectOptions config.listePortees selected=difficulte}}
</select>
</div>
{{/if}}
{{/if}}
{{#if hasDesavantageBonus}}
<div class="flexrow">
<span class="roll-dialog-label"><strong>{{localize "MNBL.disadvantagepositions"}}</strong></span>
<span class="roll-dialog-label"
>{{localize "MNBL.runningtarget"}} ? :
</span>
<input
class=""
type="checkbox"
id="ciblecourt"
name="ciblecourt"
{{checked
ciblecourt}}
/>
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.targetground"}} ? : </span>
<input class="" type="checkbox" id="cibleausol" name="cibleausol" {{checked cibleausol}} />
<span class="roll-dialog-label">{{localize "MNBL.hascover"}} ? : </span>
<select
class="roll-dialog-label"
id="typeCouvert"
type="text"
name="typeCouvert"
value="{{typeCouvert}}"
data-dtype="String"
>
{{selectOptions config.couverts labelAttr="name" selected=typeCouvert}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.unarmedtarget"}} ? : </span>
<input class="" type="checkbox" id="cibledesarmee" name="cibledesarmee" {{checked cibledesarmee}} />
<span class="roll-dialog-label">{{localize "MNBL.range"}} </span>
<select
class="roll-dialog-label"
id="difficulte"
type="text"
name="difficulte"
value="{{difficulte}}"
data-dtype="Number"
>
{{selectOptions config.listePortees selected=difficulte}}
</select>
</div>
{{/if}} {{/if}} {{#if hasDesavantageBonus}}
<div class="flexrow">
<span class="roll-dialog-label"
><strong>{{localize "MNBL.disadvantagepositions"}}</strong></span
>
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.smallroomtarget"}} ? : </span>
<input class="" type="checkbox" id="ciblerestreint" name="ciblerestreint" {{checked ciblerestreint}} />
<span class="roll-dialog-label"
>{{localize "MNBL.targetground"}} ? :
</span>
<input
class=""
type="checkbox"
id="cibleausol"
name="cibleausol"
{{checked
cibleausol}}
/>
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.targetcantmove"}} ? : </span>
<input class="" type="checkbox" id="cibleimmobilisée" name="cibleimmobilisée" {{checked cibleimmobilisée}} />
<span class="roll-dialog-label"
>{{localize "MNBL.unarmedtarget"}} ? :
</span>
<input
class=""
type="checkbox"
id="cibledesarmee"
name="cibledesarmee"
{{checked
cibledesarmee}}
/>
</div>
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.targetbelow"}} ? : </span>
<input class="" type="checkbox" id="ciblesurplomb" name="ciblesurplomb" {{checked ciblesurplomb}} />
<span class="roll-dialog-label"
>{{localize "MNBL.smallroomtarget"}} ? :
</span>
<input
class=""
type="checkbox"
id="ciblerestreint"
name="ciblerestreint"
{{checked
ciblerestreint}}
/>
</div>
<div class="flexrow">
<span class="roll-dialog-label"
>{{localize "MNBL.targetcantmove"}} ? :
</span>
<input
class=""
type="checkbox"
id="cibleimmobilisée"
name="cibleimmobilisée"
{{checked
cibleimmobilisée}}
/>
</div>
<div class="flexrow">
<span class="roll-dialog-label"
>{{localize "MNBL.targetbelow"}} ? :
</span>
<input
class=""
type="checkbox"
id="ciblesurplomb"
name="ciblesurplomb"
{{checked
ciblesurplomb}}
/>
</div>
{{/if}}
@@ -155,44 +266,70 @@
</div>
{{#if (count modifiers)}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.registeredmodifiers"}} : </span>
</div>
{{#each modifiers as |modifier idx|}}
<div class="flexrow">
<span class="roll-dialog-label">{{modifier.name}} : </span>
<span class="roll-dialog-label">{{modifier.system.value}}</span>
<input class="apply-modifier" data-modifier-idx="{{idx}}" id="apply-modifier" type="checkbox" name="apply-modifier" value="{{modifier.system.apply}}" {{checked modifier.system.apply}} />
</div>
{{/each}}
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label"
>{{localize "MNBL.registeredmodifiers"}} :
</span>
</div>
{{#each modifiers as |modifier idx|}}
<div class="flexrow">
<span class="roll-dialog-label">{{modifier.name}} : </span>
<span class="roll-dialog-label">{{modifier.system.value}}</span>
<input
class="apply-modifier"
data-modifier-idx="{{idx}}"
id="apply-modifier"
type="checkbox"
name="apply-modifier"
value="{{modifier.system.apply}}"
{{checked
modifier.system.apply}}
/>
</div>
{{/each}} {{/if}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.modifier"}} : </span>
<select class="roll-dialog-label" id="modificateur" type="text" name="modificateur" value="{{modificateur}}"
data-dtype="Number">
{{selectOptions config.modificateurOptions valueAttr="key" nameAttr="key" labelAttr="label" selected=modificateur }}
<select
class="roll-dialog-label"
id="modificateur"
type="text"
name="modificateur"
value="{{modificateur}}"
data-dtype="Number"
>
{{selectOptions config.modificateurOptions valueAttr="key"
nameAttr="key" labelAttr="label" selected=modificateur }}
</select>
</div>
{{#if selectDifficulte}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.difficulty"}} : </span>
<select class="roll-dialog-label" id="difficulte" type="text" name="difficulte" value="{{difficulte}}"
data-dtype="Number">
{{selectOptions config.difficulteOptions selected=difficulte}}
</select>
</div>
{{/if}}
{{#if canEclatDoubleD20}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.difficulty"}} : </span>
<select
class="roll-dialog-label"
id="difficulte"
type="text"
name="difficulte"
value="{{difficulte}}"
data-dtype="Number"
>
{{selectOptions config.difficulteOptions selected=difficulte}}
</select>
</div>
{{/if}} {{#if canEclatDoubleD20}}
<div class="flexrow">
<span class="roll-dialog-label">{{localize "MNBL.doubleD20"}}</span>
<input class="" id="doubleD20" type="checkbox" name="doubleD20" value="{{doubleD20}}" {{checked doubleD20}} />
<input
class=""
id="doubleD20"
type="checkbox"
name="doubleD20"
value="{{doubleD20}}"
{{checked
doubleD20}}
/>
</div>
{{/if}}
</div>
</form>
</form>