148 - Character Setup (#151)

* Added a character setup dialog

* Added optional equipment tab

* Removed temp button to open character setup

* Cleaned up footer from commented code
This commit is contained in:
WBHarry 2025-06-18 20:57:32 +02:00 committed by GitHub
parent a0a5196825
commit f6e077b290
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 1560 additions and 142 deletions

View file

@ -2489,6 +2489,345 @@ div.daggerheart.views.multiclass {
.item-button .item-icon.checked {
opacity: 1;
}
.daggerheart.dh-style.dialog.character-creation .window-content {
gap: 16px;
}
.daggerheart.dh-style.dialog.character-creation .tab-navigation nav {
flex: 1;
}
.daggerheart.dh-style.dialog.character-creation .tab-navigation nav a {
flex: 1;
text-align: center;
display: flex;
justify-content: center;
position: relative;
}
.daggerheart.dh-style.dialog.character-creation .tab-navigation nav a.disabled {
opacity: 0.4;
}
.daggerheart.dh-style.dialog.character-creation .tab-navigation nav a .nav-section-text {
position: relative;
display: flex;
align-items: center;
}
.daggerheart.dh-style.dialog.character-creation .tab-navigation nav a .finish-marker {
position: absolute;
align-self: center;
top: -8px;
padding: 4px;
border: 1px solid;
border-radius: 50%;
height: 16px;
width: 16px;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--color-cool-4);
content: '';
}
.daggerheart.dh-style.dialog.character-creation .tab-navigation nav a .finish-marker.active {
background-color: var(--color-warm-2);
}
.daggerheart.dh-style.dialog.character-creation .tab-navigation nav a .descriptor {
position: absolute;
bottom: -8px;
font-size: 12px;
border-radius: 8px;
width: 56px;
text-align: center;
line-height: 1;
border: 1px solid light-dark(#18162e, #f3c267);
border-radius: 6px;
color: light-dark(#efe6d8, #222);
background-image: url(../assets/parchments/dh-parchment-light.png);
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container {
display: flex;
flex-direction: column;
gap: 4px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .selections-container {
width: 140px;
display: flex;
flex-direction: column;
text-align: center;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .selections-container .card-preview-container {
border-color: light-dark(#18162e, #f3c267);
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .selections-outer-container {
display: flex;
justify-content: space-evenly;
height: 210px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .section-container {
border-radius: 8px;
border-color: light-dark(#18162e, #f3c267);
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .section-container legend {
margin-left: auto;
margin-right: auto;
font-size: 28px;
font-weight: bold;
padding: 0 8px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .section-container .section-inner-container {
position: relative;
border-radius: 8px;
border-color: light-dark(#18162e, #f3c267);
display: flex;
justify-content: center;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .section-container .section-inner-container legend {
font-size: 20px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .section-container .section-inner-container .action-button {
position: absolute;
bottom: -8px;
height: 16px;
width: 110px;
min-height: unset;
border: 1px solid light-dark(#18162e, #f3c267);
color: light-dark(#222, #efe6d8);
background-color: var(--color-warm-3);
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .section-container .section-inner-container .action-button:hover {
background-color: var(--color-warm-2);
filter: drop-shadow(0 0 3px var(--color-warm-2));
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .traits-container {
text-align: center;
display: flex;
gap: 16px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .traits-container .suggested-traits-container {
display: flex;
flex-wrap: wrap;
width: 176px;
gap: 4px;
margin-bottom: 8px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .traits-container .suggested-traits-container .suggested-trait-container {
width: 56px;
white-space: nowrap;
border: 1px solid light-dark(#18162e, #f3c267);
border-radius: 6px;
color: light-dark(#efe6d8, #222);
background-image: url('../assets/parchments/dh-parchment-light.png');
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .traits-container .traits-inner-container {
display: flex;
justify-content: space-evenly;
gap: 8px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .traits-container .traits-inner-container .trait-container {
border: 1px solid light-dark(#18162e, #f3c267);
padding: 0 4px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .experiences-inner-container {
display: flex;
justify-content: space-evenly;
text-align: center;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .experiences-inner-container .experience-container {
position: relative;
display: flex;
align-items: center;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .experiences-inner-container .experience-container .experience-description {
border-color: light-dark(#18162e, #f3c267);
padding-right: 24px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .experiences-inner-container .experience-container .experience-value {
position: absolute;
right: 0;
width: 22px;
border-left: 1px solid light-dark(#18162e, #f3c267);
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer {
display: flex;
align-items: center;
gap: 32px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer .footer-section {
display: flex;
align-items: center;
gap: 32px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer .footer-section nav {
flex: 1;
gap: 8px;
border: 0;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer .footer-section nav a {
flex: 1;
text-align: center;
display: flex;
justify-content: center;
position: relative;
border: 1px solid light-dark(#18162e, #f3c267);
border-radius: 6px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer .footer-section nav a .nav-section-text {
position: relative;
display: flex;
align-items: center;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer .footer-section nav a .finish-marker {
position: absolute;
align-self: center;
top: -10px;
padding: 4px;
border: 1px solid;
border-radius: 50%;
height: 20px;
width: 20px;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--color-cool-4);
content: '';
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer .footer-section nav a .finish-marker.finished {
background-color: var(--color-warm-2);
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer .footer-section nav a .descriptor {
position: absolute;
bottom: -8px;
font-size: 12px;
border-radius: 8px;
width: 56px;
text-align: center;
line-height: 1;
border: 1px solid light-dark(#18162e, #f3c267);
border-radius: 6px;
color: light-dark(#efe6d8, #222);
background-image: url(../assets/parchments/dh-parchment-light.png);
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .creation-action-footer .footer-section button {
flex: 1;
height: 100%;
white-space: nowrap;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .main-equipment-selection {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 16px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .main-equipment-selection.triple {
grid-template-columns: 1fr 1fr 1fr;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
border: 2px solid light-dark(#18162e, #f3c267);
border-radius: 8px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection legend {
margin-left: auto;
margin-right: auto;
font-size: 28px;
font-weight: bold;
padding: 0 8px;
white-space: nowrap;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .equipment-subsection {
display: flex;
align-items: start;
gap: 32px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .equipment-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .simple-equipment-container {
display: flex;
flex-direction: column;
justify-content: space-evenly;
gap: 8px;
height: 100%;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .simple-equipment-container .simple-equipment {
border: 1px solid light-dark(#18162e, #f3c267);
border-radius: 8px;
position: relative;
display: flex;
justify-content: center;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .simple-equipment-container .simple-equipment.selectable {
cursor: pointer;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .simple-equipment-container .simple-equipment.inactive {
opacity: 0.4;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .simple-equipment-container .simple-equipment label {
position: absolute;
top: -8px;
font-size: 12px;
white-space: nowrap;
border: 1px solid light-dark(#18162e, #f3c267);
border-radius: 6px;
color: light-dark(#efe6d8, #222);
background-image: url('../assets/parchments/dh-parchment-light.png');
padding: 0 2px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .simple-equipment-container .simple-equipment img {
width: 60px;
height: 60px;
border-radius: 8px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .suggestion-container {
position: relative;
display: flex;
justify-content: center;
height: min-content;
border: 2px solid light-dark(#18162e, #f3c267);
border-radius: 8px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .suggestion-container legend {
margin-left: auto;
margin-right: auto;
font-size: 12px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .suggestion-container .suggestion-inner-container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 6px;
cursor: grab;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .suggestion-container .suggestion-inner-container.taken {
opacity: 0.4;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .suggestion-container .suggestion-inner-container label {
position: absolute;
top: -2px;
font-size: 12px;
}
.daggerheart.dh-style.dialog.character-creation .main-selections-container .equipment-selection .suggestion-container .suggestion-inner-container img {
width: 120px;
}
.daggerheart.dh-style.dialog.character-creation .creation-action-footer {
display: flex;
align-items: center;
gap: 32px;
}
.daggerheart.dh-style.dialog.character-creation .creation-action-footer button {
flex: 1;
height: 100%;
white-space: nowrap;
}
.theme-light .daggerheart.levelup .tiers-container .tier-container {
background-image: url('../assets/parchments/dh-parchment-light.png');
}