Fix #19 : Mental disorder description
This commit is contained in:
parent
b600148247
commit
33c11e2c05
@ -382,13 +382,21 @@ i.fvtt-cthulhu-eternal {
|
|||||||
text-shadow: 0 0 8px var(--color-shadow-primary);
|
text-shadow: 0 0 8px var(--color-shadow-primary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .rollable {
|
||||||
|
min-width: 3rem;
|
||||||
|
max-width: 3rem;
|
||||||
|
}
|
||||||
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .char-text {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group {
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group {
|
||||||
flex: 1;
|
flex: 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group .form-fields {
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group .form-fields {
|
||||||
|
font-size: 1.1rem;
|
||||||
flex: none;
|
flex: none;
|
||||||
width: 70px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristic-play {
|
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristic-play {
|
||||||
min-width: 225px;
|
min-width: 225px;
|
||||||
|
@ -18,4 +18,12 @@ export default class CthulhuEternalMentalDisorderSheet extends CthulhuEternalIte
|
|||||||
template: "systems/fvtt-cthulhu-eternal/templates/mentaldisorder.hbs",
|
template: "systems/fvtt-cthulhu-eternal/templates/mentaldisorder.hbs",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
async _prepareContext() {
|
||||||
|
const context = await super._prepareContext()
|
||||||
|
context.enrichedDescription = await TextEditor.enrichHTML(this.document.system.description, { async: true })
|
||||||
|
return context
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -164,12 +164,20 @@
|
|||||||
text-shadow: 0 0 8px var(--color-shadow-primary);
|
text-shadow: 0 0 8px var(--color-shadow-primary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.rollable {
|
||||||
|
min-width: 3rem;
|
||||||
|
max-width: 3rem;
|
||||||
|
}
|
||||||
|
.char-text {
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
.form-group {
|
.form-group {
|
||||||
flex: 1;
|
flex: 0;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
.form-fields {
|
.form-fields {
|
||||||
|
font-size: 1.1rem;
|
||||||
flex: none;
|
flex: none;
|
||||||
width: 70px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{{formField systemFields.biodata.fields.height value=system.biodata.height name="system.biodata.height" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.height value=system.biodata.height name="system.biodata.height" localize=true classes="field-label"}}
|
||||||
{{formField systemFields.biodata.fields.eyes value=system.biodata.eyes name="system.biodata.eyes" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.eyes value=system.biodata.eyes name="system.biodata.eyes" localize=true classes="field-label"}}
|
||||||
{{formField systemFields.biodata.fields.hair value=system.biodata.hair name="system.biodata.hair" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.hair value=system.biodata.hair name="system.biodata.hair" localize=true classes="field-label"}}
|
||||||
{{formField systemFields.biodata.fields.gender value=system.biodata.gender name="system.biodata.gender" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.home value=system.biodata.home name="system.biodata.home" localize=true classes="field-label"}}
|
||||||
{{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace name="system.biodata.birthplace" localize=true classes="field-label"}}
|
{{formField systemFields.biodata.fields.birthplace value=system.biodata.birthplace name="system.biodata.birthplace" localize=true classes="field-label"}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
@ -81,42 +81,42 @@
|
|||||||
"CTHULHUETERNAL.Label.strShort"}}</label>
|
"CTHULHUETERNAL.Label.strShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.str.fields.value value=system.characteristics.str.value
|
{{formField systemFields.characteristics.fields.str.fields.value value=system.characteristics.str.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.str.value 5}}
|
<label class="char-text">{{mul system.characteristics.str.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic">
|
<div class="protagonist-characteristic">
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="dex">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="dex">{{localize
|
||||||
"CTHULHUETERNAL.Label.dexShort"}}</label>
|
"CTHULHUETERNAL.Label.dexShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.dex.fields.value value=system.characteristics.dex.value
|
{{formField systemFields.characteristics.fields.dex.fields.value value=system.characteristics.dex.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.dex.value 5}}
|
<label class="char-text">{{mul system.characteristics.dex.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" >
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="con">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="con">{{localize
|
||||||
"CTHULHUETERNAL.Label.conShort"}}</label>
|
"CTHULHUETERNAL.Label.conShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.con.fields.value value=system.characteristics.con.value
|
{{formField systemFields.characteristics.fields.con.fields.value value=system.characteristics.con.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.con.value 5}}
|
<label class="char-text">{{mul system.characteristics.con.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" >
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="int">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="int">{{localize
|
||||||
"CTHULHUETERNAL.Label.intShort"}}</label>
|
"CTHULHUETERNAL.Label.intShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.int.fields.value value=system.characteristics.int.value
|
{{formField systemFields.characteristics.fields.int.fields.value value=system.characteristics.int.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.int.value 5}}
|
<label class="char-text">{{mul system.characteristics.int.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" >
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="pow">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="pow">{{localize
|
||||||
"CTHULHUETERNAL.Label.powShort"}}</label>
|
"CTHULHUETERNAL.Label.powShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.pow.fields.value value=system.characteristics.pow.value
|
{{formField systemFields.characteristics.fields.pow.fields.value value=system.characteristics.pow.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.pow.value 5}}
|
<label class="char-text">{{mul system.characteristics.pow.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="protagonist-characteristic" >
|
<div class="protagonist-characteristic" >
|
||||||
<label class="rollable" data-roll-type="char" data-char-id="cha">{{localize
|
<label class="rollable" data-roll-type="char" data-char-id="cha">{{localize
|
||||||
"CTHULHUETERNAL.Label.chaShort"}}</label>
|
"CTHULHUETERNAL.Label.chaShort"}}</label>
|
||||||
{{formField systemFields.characteristics.fields.cha.fields.value value=system.characteristics.cha.value
|
{{formField systemFields.characteristics.fields.cha.fields.value value=system.characteristics.cha.value
|
||||||
rootId=partId disabled=isPlayMode }}
|
rootId=partId disabled=isPlayMode }}
|
||||||
{{mul system.characteristics.cha.value 5}}
|
<label class="char-text">{{mul system.characteristics.cha.value 5}}</label>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user