Fix #39 - Display cured/uncured for mental disorder

This commit is contained in:
LeRatierBretonnien 2025-02-06 21:35:22 +01:00
parent e6e6de35df
commit a75a3bf157
10 changed files with 86 additions and 80 deletions

View File

@ -462,6 +462,10 @@ i.fvtt-cthulhu-eternal {
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .char-text { .fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .char-text {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .d100 {
flex: 0;
max-width: 0.6rem;
}
.fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group { .fvtt-cthulhu-eternal .protagonist-main .protagonist-characteristics .protagonist-characteristic .form-group {
flex: 0; flex: 0;
padding-left: 5px; padding-left: 5px;
@ -523,31 +527,6 @@ i.fvtt-cthulhu-eternal {
min-width: 18rem; min-width: 18rem;
max-width: 18rem; max-width: 18rem;
} }
.fvtt-cthulhu-eternal .protagonist-biography .motivations {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4px;
}
.fvtt-cthulhu-eternal .protagonist-biography .motivations .motivation {
display: flex;
align-items: center;
gap: 4px;
min-width: 14rem;
max-width: 14rem;
}
.fvtt-cthulhu-eternal .protagonist-biography .motivations .motivation .controls {
min-width: 2rem;
max-width: 2rem;
}
.fvtt-cthulhu-eternal .protagonist-biography .motivations .motivation .name {
min-width: 8rem;
max-width: 8rem;
}
.fvtt-cthulhu-eternal .protagonist-biography .motivations .motivation .item-img {
width: 32px;
height: 32px;
margin: 4px 0 0 0;
}
.fvtt-cthulhu-eternal .tab.protagonist-skills { .fvtt-cthulhu-eternal .tab.protagonist-skills {
background-color: var(--color-light-1); background-color: var(--color-light-1);
display: grid; display: grid;
@ -566,8 +545,9 @@ i.fvtt-cthulhu-eternal {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 4px;
min-width: 10rem; margin-left: 4px;
max-width: 10rem; min-width: 12rem;
max-width: 12rem;
} }
.fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .rollable:hover, .fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .rollable:hover,
.fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .rollable:focus { .fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .rollable:focus {
@ -579,8 +559,8 @@ i.fvtt-cthulhu-eternal {
max-width: 2rem; max-width: 2rem;
} }
.fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .name { .fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .name {
min-width: 8rem; min-width: 11rem;
max-width: 8rem; max-width: 11rem;
} }
.fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .item-img { .fvtt-cthulhu-eternal .tab.protagonist-skills .skills .skill .item-img {
width: 24px; width: 24px;
@ -629,6 +609,31 @@ i.fvtt-cthulhu-eternal {
height: 24px; height: 24px;
margin: 4px 0 0 0; margin: 4px 0 0 0;
} }
.fvtt-cthulhu-eternal .tab.protagonist-status .motivations {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4px;
}
.fvtt-cthulhu-eternal .tab.protagonist-status .motivations .motivation {
display: flex;
align-items: center;
gap: 4px;
min-width: 14rem;
max-width: 14rem;
}
.fvtt-cthulhu-eternal .tab.protagonist-status .motivations .motivation .controls {
min-width: 2rem;
max-width: 2rem;
}
.fvtt-cthulhu-eternal .tab.protagonist-status .motivations .motivation .name {
min-width: 12rem;
max-width: 12rem;
}
.fvtt-cthulhu-eternal .tab.protagonist-status .motivations .motivation .item-img {
width: 24px;
height: 24px;
margin: 4px 0 0 0;
}
.fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders { .fvtt-cthulhu-eternal .tab.protagonist-status .mentaldisorders {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);

View File

@ -115,13 +115,13 @@ export default class CthulhuEternalProtagonistSheet extends CthulhuEternalActorS
context.injuries.sort((a, b) => a.name.localeCompare(b.name)) context.injuries.sort((a, b) => a.name.localeCompare(b.name))
context.mentaldisorders = doc.itemTypes.mentaldisorder context.mentaldisorders = doc.itemTypes.mentaldisorder
context.mentaldisorders.sort((a, b) => a.name.localeCompare(b.name)) context.mentaldisorders.sort((a, b) => a.name.localeCompare(b.name))
context.motivations = doc.itemTypes.motivation
context.motivations.sort((a, b) => a.name.localeCompare(b.name))
context.bonds = doc.itemTypes.bond context.bonds = doc.itemTypes.bond
context.bonds.sort((a, b) => a.name.localeCompare(b.name)) context.bonds.sort((a, b) => a.name.localeCompare(b.name))
break break
case "biography": case "biography":
context.tab = context.tabs.biography context.tab = context.tabs.biography
context.motivations = doc.itemTypes.motivation
context.motivations.sort((a, b) => a.name.localeCompare(b.name))
context.enrichedDescription = await TextEditor.enrichHTML(doc.system.description, { async: true }) context.enrichedDescription = await TextEditor.enrichHTML(doc.system.description, { async: true })
context.enrichedNotes = await TextEditor.enrichHTML(doc.system.notes, { async: true }) context.enrichedNotes = await TextEditor.enrichHTML(doc.system.notes, { async: true })
break break

View File

@ -1 +1 @@
MANIFEST-000104 MANIFEST-000112

View File

@ -1,8 +1,3 @@
2025/02/06-20:25:16.737126 7ffae77fe6c0 Recovering log #102 2025/02/06-21:12:01.561879 7ffae7fff6c0 Recovering log #110
2025/02/06-20:25:16.746805 7ffae77fe6c0 Delete type=3 #100 2025/02/06-21:12:01.618398 7ffae7fff6c0 Delete type=3 #108
2025/02/06-20:25:16.746880 7ffae77fe6c0 Delete type=0 #102 2025/02/06-21:12:01.618459 7ffae7fff6c0 Delete type=0 #110
2025/02/06-21:09:49.042911 7ffae6bff6c0 Level-0 table #107: started
2025/02/06-21:09:49.042956 7ffae6bff6c0 Level-0 table #107: 0 bytes OK
2025/02/06-21:09:49.048918 7ffae6bff6c0 Delete type=0 #105
2025/02/06-21:09:49.049103 7ffae6bff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
2025/02/06-21:09:49.049145 7ffae6bff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2025/02/01-21:14:17.990919 7fd1caffd6c0 Recovering log #98 2025/02/06-21:10:37.808165 7ffae77fe6c0 Recovering log #106
2025/02/01-21:14:18.007782 7fd1caffd6c0 Delete type=3 #96 2025/02/06-21:10:37.818622 7ffae77fe6c0 Delete type=3 #104
2025/02/01-21:14:18.007839 7fd1caffd6c0 Delete type=0 #98 2025/02/06-21:10:37.818703 7ffae77fe6c0 Delete type=0 #106
2025/02/01-21:17:36.962718 7fd1c93ff6c0 Level-0 table #103: started 2025/02/06-21:11:20.037362 7ffae6bff6c0 Level-0 table #111: started
2025/02/01-21:17:36.962748 7fd1c93ff6c0 Level-0 table #103: 0 bytes OK 2025/02/06-21:11:20.037398 7ffae6bff6c0 Level-0 table #111: 0 bytes OK
2025/02/01-21:17:36.968886 7fd1c93ff6c0 Delete type=0 #101 2025/02/06-21:11:20.043269 7ffae6bff6c0 Delete type=0 #109
2025/02/01-21:17:36.975842 7fd1c93ff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end) 2025/02/06-21:11:20.043465 7ffae6bff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
2025/02/01-21:17:36.986064 7fd1c93ff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end) 2025/02/06-21:11:20.043496 7ffae6bff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

@ -223,6 +223,10 @@
.char-text { .char-text {
margin-left: 0.5rem; margin-left: 0.5rem;
} }
.d100 {
flex: 0;
max-width: 0.6rem;
}
.form-group { .form-group {
flex: 0; flex: 0;
padding-left: 5px; padding-left: 5px;
@ -290,32 +294,6 @@
max-width: 18rem; max-width: 18rem;
} }
} }
.motivations {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4px;
.motivation {
display: flex;
align-items: center;
gap: 4px;
min-width: 14rem;
max-width: 14rem;
.controls {
min-width: 2rem;
max-width: 2rem;
}
.name {
min-width: 8rem;
max-width: 8rem;
}
.item-img {
width: 32px;
height: 32px;
margin: 4px 0 0 0;
}
}
}
} }
.tab.protagonist-skills { .tab.protagonist-skills {
@ -336,8 +314,9 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 4px;
min-width: 10rem; margin-left: 4px;
max-width: 10rem; min-width: 12rem;
max-width: 12rem;
.rollable:hover, .rollable:hover,
.rollable:focus { .rollable:focus {
text-shadow: 0 0 8px var(--color-shadow-primary); text-shadow: 0 0 8px var(--color-shadow-primary);
@ -348,8 +327,8 @@
max-width: 2rem; max-width: 2rem;
} }
.name { .name {
min-width: 8rem; min-width: 11rem;
max-width: 8rem; max-width: 11rem;
} }
.item-img { .item-img {
width: 24px; width: 24px;
@ -405,6 +384,32 @@
} }
} }
.motivations {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4px;
.motivation {
display: flex;
align-items: center;
gap: 4px;
min-width: 14rem;
max-width: 14rem;
.controls {
min-width: 2rem;
max-width: 2rem;
}
.name {
min-width: 12rem;
max-width: 12rem;
}
.item-img {
width: 24px;
height: 24px;
margin: 4px 0 0 0;
}
}
}
.mentaldisorders { .mentaldisorders {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);

View File

@ -32,8 +32,9 @@
<fieldset class="san"> <fieldset class="san">
<legend>{{localize "CTHULHUETERNAL.Label.SAN"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.SAN"}}</legend>
<div class="flexrow"> <div class="flexrow">
<img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />
<label class="label-field rollable" data-roll-type="san" >{{localize "CTHULHUETERNAL.Label.current"}}</label> <label class="label-field rollable" data-roll-type="san" ><img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />
{{localize "CTHULHUETERNAL.Label.current"}}</label>
{{formInput systemFields.san.fields.value value=system.san.value}} {{formInput systemFields.san.fields.value value=system.san.value}}
<span class="label-field label-recovery">{{localize "CTHULHUETERNAL.Label.recovery"}}</span> <span class="label-field label-recovery">{{localize "CTHULHUETERNAL.Label.recovery"}}</span>