[Feature] Manual Character Editing (#490)

* Initial

* Added Character-Settings

* Finalized Character-Settings

* Hide CharacterSetup if any part is done manually

* Fixed class/subclass drag-drop

* Fixed relinking of Features from items created on Character

* Adding features on CharacterItems now adds them on the Character and relinks

* Made suggested items inactive in the Class sheet if rendered from inside a Character

* Added hope to CharacterSetting

* add style to textarea element, add spellcasting and domain class into char sheet and move rest buttons to another place

* Fixed characterCreation experience description

---------

Co-authored-by: moliloo <dev.murilobrito@gmail.com>
This commit is contained in:
WBHarry 2025-08-01 17:16:35 +02:00 committed by GitHub
parent 263dfa69ae
commit e1d8f8784a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 1205 additions and 386 deletions

View file

@ -263,24 +263,36 @@
gap: 8px;
.experience-container {
position: relative;
display: flex;
align-items: center;
flex-direction: column;
gap: 5px;
.experience-description {
border-color: light-dark(@dark-blue, @golden);
padding-right: 24px;
}
.experience-value {
position: absolute;
right: 0;
width: 22px;
border-left: 1px solid light-dark(@dark-blue, @golden);
height: 100%;
.experience-inner-container {
position: relative;
display: flex;
align-items: center;
justify-content: center;
.experience-description {
border-color: light-dark(@dark-blue, @golden);
padding-right: 24px;
}
.experience-value {
position: absolute;
right: 0;
width: 22px;
border-left: 1px solid light-dark(@dark-blue, @golden);
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
}
textarea {
width: 100%;
resize: none;
border-color: light-dark(@dark-blue, @golden);
}
}
}

View file

@ -24,3 +24,5 @@
@import './dice-roll/roll-selection.less';
@import './damage-reduction/damage-reduction-container.less';
@import './damage-reduction/sheets.less';
@import './multiclass-choice/sheet.less';

View file

@ -104,4 +104,10 @@
}
}
}
.levelup-footer {
display: flex;
gap: 8px;
margin-top: 8px;
}
}

View file

@ -0,0 +1,76 @@
.theme-light .daggerheart.dh-style.dialog.multiclass-choice {
.multiclass-container .domain-choice-container button label {
background-image: url(../assets/parchments/dh-parchment-light.png);
}
}
.daggerheart.dh-style.dialog.multiclass-choice {
.multiclass-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
.multiclass-explanation {
margin-top: 0;
font-style: italic;
}
.multiclass-domains-container {
display: flex;
gap: 16px;
.domain-choice-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
button {
position: relative;
display: flex;
justify-content: center;
width: 120px;
height: 120px;
background: light-dark(@dark-blue-10, @golden-10);
color: light-dark(@dark-blue, @golden);
&.selected {
background: light-dark(@dark-blue-40, @golden-40);
}
label {
position: absolute;
top: 4px;
font-family: @font-body;
border-radius: 6px;
border: 2px solid;
padding: 0 2px;
background-image: url(../assets/parchments/dh-parchment-dark.png);
color: light-dark(@dark, @beige);
}
}
.domain-description {
width: 240px;
display: flex;
flex-wrap: wrap;
font-style: italic;
border: 1px solid light-dark(@dark-blue, @golden);
border-radius: 6px;
padding: 4px 4px;
}
}
}
footer {
width: 100%;
display: flex;
gap: 8px;
button {
flex: 1;
}
}
}
}