fixed hover overflow + fixed stance bonus is bound to combat rolls
This commit is contained in:
@@ -4,6 +4,16 @@ This is a rewrite based on the early 2e (basic) and 1e edition that also include
|
||||
|
||||
# Release History
|
||||
|
||||
## 02.04.00 (Build 7)
|
||||
|
||||
### Sheet fixes
|
||||
|
||||
- fixed common bonus dice not tied to stance anymore
|
||||
|
||||
### CSS fixes
|
||||
|
||||
- fixed hover info word-wrapping
|
||||
|
||||
## 02.03.00 (Build 8)
|
||||
|
||||
### Features
|
||||
|
||||
@@ -243,11 +243,13 @@ import url('https://fonts.cdnfonts.com/css/aniron');
|
||||
content: "";
|
||||
}
|
||||
.charsheet .sheet-hover-info {
|
||||
display: block;
|
||||
position: absolute;
|
||||
background: white;
|
||||
z-index: 10;
|
||||
padding: 20px;
|
||||
width: 300px;
|
||||
width: 400px;
|
||||
height:fit-content;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
box-shadow: 0 3px 15px rgba(0,0,0,.1);
|
||||
@@ -255,6 +257,9 @@ import url('https://fonts.cdnfonts.com/css/aniron');
|
||||
text-align: left;
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-word;
|
||||
white-space: normal;
|
||||
text-overflow: ellipsis;
|
||||
overflow: visible;
|
||||
}
|
||||
.charsheet span.label:hover + .sheet-hover-info,
|
||||
.charsheet span.sheet-label:hover + .sheet-hover-info,
|
||||
@@ -384,6 +389,11 @@ import url('https://fonts.cdnfonts.com/css/aniron');
|
||||
font-size: large;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* needed for hover infos */
|
||||
.charsheet .sheet-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
.charsheet .bordertop{
|
||||
margin: 0px 20px 0px 20px;
|
||||
border-top: var(--solidborder);
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
<button type="roll" class="table-rolls" value="@{wisdom_roll}" name="roll_wisdomcheck"></button>
|
||||
<button type="action" class="parsed-rolls" name="act_wisdom" id="roll_wisdom"></button>
|
||||
<input type="checkbox" name="attr_wisdom_favoured">
|
||||
<label data-i18n="wisdom" data-i18n-title="wisdom-description">Wisdom</label>
|
||||
<label data-i18n="wisdom">Wisdom</label>
|
||||
<div class="sheet-hover-info" data-i18n="wisdom-description"></div>
|
||||
</span>
|
||||
<span class="diamond-small-red"><span><input name="attr_wisdom" value="0" type="number" min=1
|
||||
max=6></span></span>
|
||||
@@ -50,7 +51,8 @@
|
||||
<button type="roll" class="table-rolls" value="@{valour_roll}" name="roll_valourcheck"></button>
|
||||
<button type="action" class="parsed-rolls" name="act_valour" id="roll_valour"></button>
|
||||
<input type="checkbox" name="attr_valour_favoured">
|
||||
<label data-i18n="valour" data-i18n-title="valour-description">Valour</label>
|
||||
<label data-i18n="valour">Valour</label>
|
||||
<div class="sheet-hover-info" data-i18n="valour-description"></div>
|
||||
</span>
|
||||
<span class="diamond-small-red"><span><input name="attr_valour" value="0" type="number" min=1
|
||||
max=6></span></span></span>
|
||||
@@ -1326,7 +1328,7 @@
|
||||
}
|
||||
*/
|
||||
|
||||
modifiers = rolltype !== "custom" ? await getQuery(`?{Bonus dice|${stanceAttackBonus}}`) : 0;
|
||||
modifiers = rolltype !== "custom" ? await getQuery(`?{Bonus dice|${rolltype.startsWith("combat") ? modifiers : 0}}`) : 0;
|
||||
// add stance attack modifier
|
||||
modifiers = int(modifiers);
|
||||
let modStr = modifiers == 0 ? "" : (modifiers > 0 ? `{{modification=+${modifiers}}}` : `{{modification=${modifiers}}}`);
|
||||
|
||||
Reference in New Issue
Block a user