3 Commits

Author SHA1 Message Date
bd8b098b35 Fix HP loss
All checks were successful
Release Creation / build (release) Successful in 1m20s
2025-05-02 18:24:14 +02:00
71d3f777bf Implements HP loss HUD button
All checks were successful
Release Creation / build (release) Successful in 41s
2025-04-27 22:32:32 +02:00
157163672c Implements HP loss HUD button
All checks were successful
Release Creation / build (release) Successful in 54s
2025-04-27 22:11:10 +02:00
31 changed files with 233 additions and 108 deletions

View File

@ -0,0 +1 @@
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M373.47 25.5c-33.475-.064-67.614 13.444-94.44 43.156l37.22 145.156-33.437.032 35.343 132.093-116.718-188.375 50.03 5.375L202.5 47.312C120.437-1.43 4.756 40.396 8.5 158.156c4.402 138.44 191.196 184.6 247.406 331.625 59.376-147.035 251.26-184.33 246.656-331.624-2.564-82.042-64.6-132.532-129.093-132.656z" fill="#fff" fill-opacity="1"></path></g></svg>

After

Width:  |  Height:  |  Size: 506 B

View File

@ -2070,22 +2070,39 @@ i.lethalfantasy {
font-size: calc(var(--font-size-standard) * 1);
text-shadow: 0 0 10px var(--color-shadow-primary);
}
#lethalfantasy-application-manager {
display: flex;
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 1);
color: var(--color-dark-1);
#token-hud .hp-loss-wrap {
position: absolute;
left: 75px;
display: none;
top: 50%;
width: 48px;
text-align: start;
overflow-y: auto;
}
#token-hud .hp-loss-wrap-col1 {
transform: translate(-200%, -50%);
}
#token-hud .hp-loss-wrap-col2 {
transform: translate(-300%, -50%);
}
#token-hud .hp-loss-wrap-col3 {
transform: translate(-400%, -50%);
}
#token-hud .hp-loss-hud-active {
display: block;
}
#token-hud .hp-loss-hud-disabled {
display: none;
}
#token-hud .hud-loss-hp-button-select {
max-width: 40px;
background-image: var(--background-image-base);
background-repeat: no-repeat;
background-size: 100% 100%;
}
#lethalfantasy-application-manager .lethalfantasy-table {
margin: 1rem;
background: none;
padding: 0;
padding-top: 0;
padding-bottom: 0;
width: max-content;
margin: 0;
text-align: center;
}
#lethalfantasy-application-manager .lethalfantasy-table .player {
font-size: calc(var(--font-size-standard) * 1);
#token-hud .hp-loss-wrap .hud-loss-hp-button-select {
padding-left: 8px;
font-size: 0.7rem;
}

View File

@ -89,6 +89,7 @@ Hooks.once("init", function () {
setupTextEnrichers()
LethalFantasyUtils.registerHandlebarsHelpers()
LethalFantasyUtils.setHookListeners( )
console.info("LETHAL FANTASY | System Initialized")
})
@ -117,6 +118,7 @@ Hooks.once("ready", function () {
if (!SYSTEM.DEV_MODE) {
registerWorldCount("lethalFantasy")
}
_showUserGuide()
/**

View File

@ -69,6 +69,15 @@ export default class LethalFantasyActor extends Actor {
return goodSkill
}
/* *************************************************/
async applyDamage(hpLoss) {
let hp = this.system.hp.value + hpLoss
if (hp < 0) {
hp = 0
}
this.update({ "system.hp.value": hp })
}
/* *************************************************/
async prepareRoll(rollType, rollKey, rollDice ) {
console.log("Preparing roll", rollType, rollKey, rollDice)

View File

@ -18,6 +18,51 @@ export default class LethalFantasyUtils {
options.push({ name: "Reset Progression", condition: true, icon: '<i class="fas fa-rotate-right"></i>', callback: target => { game.combat.resetProgression(target.data('combatant-id')); } })
}
/* -------------------------------------------- */
static setHookListeners() {
Hooks.on('renderTokenHUD', async (hud, html, token) => {
const lossHPButton = await renderTemplate('systems/fvtt-lethal-fantasy/templates/loss-hp-hud.hbs', {} )
html.find('div.left').append(lossHPButton);
html.find('img.lethal-hp-loss-hud').click((event) => {
event.preventDefault();
let hpMenu = html.find('.hp-loss-wrap')[0]
if (hpMenu.classList.contains("hp-loss-hud-disabled")) {
html.find('.hp-loss-wrap')[0].classList.add('hp-loss-hud-active');
html.find('.hp-loss-wrap')[0].classList.remove('hp-loss-hud-disabled');
html.find('.hp-loss-wrap')[1].classList.add('hp-loss-hud-active');
html.find('.hp-loss-wrap')[1].classList.remove('hp-loss-hud-disabled');
html.find('.hp-loss-wrap')[2].classList.add('hp-loss-hud-active');
html.find('.hp-loss-wrap')[2].classList.remove('hp-loss-hud-disabled');
} else {
html.find('.hp-loss-wrap')[0].classList.remove('hp-loss-hud-active');
html.find('.hp-loss-wrap')[0].classList.add('hp-loss-hud-disabled');
html.find('.hp-loss-wrap')[1].classList.remove('hp-loss-hud-active');
html.find('.hp-loss-wrap')[1].classList.add('hp-loss-hud-disabled');
html.find('.hp-loss-wrap')[2].classList.remove('hp-loss-hud-active');
html.find('.hp-loss-wrap')[2].classList.add('hp-loss-hud-disabled');
}
})
html.find('.loss-hp-hud-click').click((event) => {
event.preventDefault();
let hpLoss = event.currentTarget.dataset.hpValue;
if (token) {
let tokenFull = canvas.tokens.placeables.find( t => t.id === token._id);
console.log(tokenFull, token)
let actor = tokenFull.actor;
actor.applyDamage(Number(hpLoss));
html.find('.hp-loss-wrap')[0].classList.remove('hp-loss-hud-active');
html.find('.hp-loss-wrap')[0].classList.add('hp-loss-hud-disabled');
html.find('.hp-loss-wrap')[1].classList.remove('hp-loss-hud-active');
html.find('.hp-loss-wrap')[1].classList.add('hp-loss-hud-disabled');
html.find('.hp-loss-wrap')[2].classList.remove('hp-loss-hud-active');
html.find('.hp-loss-wrap')[2].classList.add('hp-loss-hud-disabled');
}
})
})
}
/* -------------------------------------------- */
static handleSocketEvent(msg = {}) {
console.log(`handleSocketEvent !`, msg)
let actor

View File

View File

@ -1 +1 @@
MANIFEST-000261
MANIFEST-000281

View File

@ -1,8 +1,8 @@
2025/04/25-21:22:26.619523 7fa7f51fa6c0 Recovering log #259
2025/04/25-21:22:26.629405 7fa7f51fa6c0 Delete type=3 #257
2025/04/25-21:22:26.629471 7fa7f51fa6c0 Delete type=0 #259
2025/04/25-21:28:11.794720 7fa7eebff6c0 Level-0 table #264: started
2025/04/25-21:28:11.794743 7fa7eebff6c0 Level-0 table #264: 0 bytes OK
2025/04/25-21:28:11.828838 7fa7eebff6c0 Delete type=0 #262
2025/04/25-21:28:11.872804 7fa7eebff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/25-21:28:11.872877 7fa7eebff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/05/02-18:08:30.093606 7fc4edbfa6c0 Recovering log #279
2025/05/02-18:08:30.104455 7fc4edbfa6c0 Delete type=3 #277
2025/05/02-18:08:30.104565 7fc4edbfa6c0 Delete type=0 #279
2025/05/02-18:21:55.109498 7fc4e73ff6c0 Level-0 table #284: started
2025/05/02-18:21:55.109535 7fc4e73ff6c0 Level-0 table #284: 0 bytes OK
2025/05/02-18:21:55.116187 7fc4e73ff6c0 Delete type=0 #282
2025/05/02-18:21:55.129360 7fc4e73ff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/05/02-18:21:55.129430 7fc4e73ff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2025/04/25-21:12:25.063567 7fa7f49f96c0 Recovering log #255
2025/04/25-21:12:25.123483 7fa7f49f96c0 Delete type=3 #253
2025/04/25-21:12:25.123549 7fa7f49f96c0 Delete type=0 #255
2025/04/25-21:21:41.663813 7fa7eebff6c0 Level-0 table #260: started
2025/04/25-21:21:41.663837 7fa7eebff6c0 Level-0 table #260: 0 bytes OK
2025/04/25-21:21:41.670063 7fa7eebff6c0 Delete type=0 #258
2025/04/25-21:21:41.683068 7fa7eebff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/25-21:21:41.683094 7fa7eebff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/28-21:05:33.969865 7fa7f49f96c0 Recovering log #275
2025/04/28-21:05:33.982957 7fa7f49f96c0 Delete type=3 #273
2025/04/28-21:05:33.983066 7fa7f49f96c0 Delete type=0 #275
2025/04/29-00:08:44.421059 7fa7eebff6c0 Level-0 table #280: started
2025/04/29-00:08:44.421086 7fa7eebff6c0 Level-0 table #280: 0 bytes OK
2025/04/29-00:08:44.492658 7fa7eebff6c0 Delete type=0 #278
2025/04/29-00:08:44.570180 7fa7eebff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/29-00:08:44.570235 7fa7eebff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)

View File

View File

@ -1 +1 @@
MANIFEST-000260
MANIFEST-000280

View File

@ -1,8 +1,8 @@
2025/04/25-21:22:26.632055 7fa7ef7fe6c0 Recovering log #258
2025/04/25-21:22:26.642442 7fa7ef7fe6c0 Delete type=3 #256
2025/04/25-21:22:26.642504 7fa7ef7fe6c0 Delete type=0 #258
2025/04/25-21:28:11.762447 7fa7eebff6c0 Level-0 table #263: started
2025/04/25-21:28:11.762488 7fa7eebff6c0 Level-0 table #263: 0 bytes OK
2025/04/25-21:28:11.794608 7fa7eebff6c0 Delete type=0 #261
2025/04/25-21:28:11.872774 7fa7eebff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/25-21:28:11.872860 7fa7eebff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/05/02-18:08:30.109165 7fc4ecbf86c0 Recovering log #278
2025/05/02-18:08:30.121216 7fc4ecbf86c0 Delete type=3 #276
2025/05/02-18:08:30.121310 7fc4ecbf86c0 Delete type=0 #278
2025/05/02-18:21:55.122892 7fc4e73ff6c0 Level-0 table #283: started
2025/05/02-18:21:55.122930 7fc4e73ff6c0 Level-0 table #283: 0 bytes OK
2025/05/02-18:21:55.129027 7fc4e73ff6c0 Delete type=0 #281
2025/05/02-18:21:55.129407 7fc4e73ff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/05/02-18:21:55.129496 7fc4e73ff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2025/04/25-21:12:25.126076 7fa7ef7fe6c0 Recovering log #254
2025/04/25-21:12:25.194012 7fa7ef7fe6c0 Delete type=3 #252
2025/04/25-21:12:25.194129 7fa7ef7fe6c0 Delete type=0 #254
2025/04/25-21:21:41.677033 7fa7eebff6c0 Level-0 table #259: started
2025/04/25-21:21:41.677055 7fa7eebff6c0 Level-0 table #259: 0 bytes OK
2025/04/25-21:21:41.682956 7fa7eebff6c0 Delete type=0 #257
2025/04/25-21:21:41.683087 7fa7eebff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/25-21:21:41.683125 7fa7eebff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/28-21:05:33.988908 7fa7ef7fe6c0 Recovering log #274
2025/04/28-21:05:34.005200 7fa7ef7fe6c0 Delete type=3 #272
2025/04/28-21:05:34.005349 7fa7ef7fe6c0 Delete type=0 #274
2025/04/29-00:08:44.365001 7fa7eebff6c0 Level-0 table #279: started
2025/04/29-00:08:44.365047 7fa7eebff6c0 Level-0 table #279: 0 bytes OK
2025/04/29-00:08:44.420965 7fa7eebff6c0 Delete type=0 #277
2025/04/29-00:08:44.570160 7fa7eebff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/29-00:08:44.570222 7fa7eebff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

View File

@ -1 +1 @@
MANIFEST-000260
MANIFEST-000280

View File

@ -1,8 +1,8 @@
2025/04/25-21:22:26.603891 7fa7f49f96c0 Recovering log #258
2025/04/25-21:22:26.613982 7fa7f49f96c0 Delete type=3 #256
2025/04/25-21:22:26.614103 7fa7f49f96c0 Delete type=0 #258
2025/04/25-21:28:11.828962 7fa7eebff6c0 Level-0 table #263: started
2025/04/25-21:28:11.828987 7fa7eebff6c0 Level-0 table #263: 0 bytes OK
2025/04/25-21:28:11.872564 7fa7eebff6c0 Delete type=0 #261
2025/04/25-21:28:11.872823 7fa7eebff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/25-21:28:11.872896 7fa7eebff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/05/02-18:08:30.076028 7fc4edbfa6c0 Recovering log #278
2025/05/02-18:08:30.087953 7fc4edbfa6c0 Delete type=3 #276
2025/05/02-18:08:30.088039 7fc4edbfa6c0 Delete type=0 #278
2025/05/02-18:21:55.116367 7fc4e73ff6c0 Level-0 table #283: started
2025/05/02-18:21:55.116408 7fc4e73ff6c0 Level-0 table #283: 0 bytes OK
2025/05/02-18:21:55.122719 7fc4e73ff6c0 Delete type=0 #281
2025/05/02-18:21:55.129386 7fc4e73ff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/05/02-18:21:55.129477 7fc4e73ff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2025/04/25-21:12:25.004274 7fa7f51fa6c0 Recovering log #254
2025/04/25-21:12:25.060536 7fa7f51fa6c0 Delete type=3 #252
2025/04/25-21:12:25.060709 7fa7f51fa6c0 Delete type=0 #254
2025/04/25-21:21:41.670183 7fa7eebff6c0 Level-0 table #259: started
2025/04/25-21:21:41.670208 7fa7eebff6c0 Level-0 table #259: 0 bytes OK
2025/04/25-21:21:41.676916 7fa7eebff6c0 Delete type=0 #257
2025/04/25-21:21:41.683078 7fa7eebff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/25-21:21:41.683166 7fa7eebff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/28-21:05:33.953840 7fa7effff6c0 Recovering log #274
2025/04/28-21:05:33.964089 7fa7effff6c0 Delete type=3 #272
2025/04/28-21:05:33.964167 7fa7effff6c0 Delete type=0 #274
2025/04/29-00:08:44.318603 7fa7eebff6c0 Level-0 table #279: started
2025/04/29-00:08:44.318649 7fa7eebff6c0 Level-0 table #279: 0 bytes OK
2025/04/29-00:08:44.364829 7fa7eebff6c0 Delete type=0 #277
2025/04/29-00:08:44.570130 7fa7eebff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/29-00:08:44.570209 7fa7eebff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000260
MANIFEST-000280

View File

@ -1,8 +1,8 @@
2025/04/25-21:22:26.644388 7fa7effff6c0 Recovering log #258
2025/04/25-21:22:26.654206 7fa7effff6c0 Delete type=3 #256
2025/04/25-21:22:26.654257 7fa7effff6c0 Delete type=0 #258
2025/04/25-21:28:11.724988 7fa7eebff6c0 Level-0 table #263: started
2025/04/25-21:28:11.725025 7fa7eebff6c0 Level-0 table #263: 0 bytes OK
2025/04/25-21:28:11.762266 7fa7eebff6c0 Delete type=0 #261
2025/04/25-21:28:11.872740 7fa7eebff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/25-21:28:11.872841 7fa7eebff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/05/02-18:08:30.126416 7fc4e7fff6c0 Recovering log #278
2025/05/02-18:08:30.137455 7fc4e7fff6c0 Delete type=3 #276
2025/05/02-18:08:30.137553 7fc4e7fff6c0 Delete type=0 #278
2025/05/02-18:21:55.102804 7fc4e73ff6c0 Level-0 table #283: started
2025/05/02-18:21:55.102870 7fc4e73ff6c0 Level-0 table #283: 0 bytes OK
2025/05/02-18:21:55.109338 7fc4e73ff6c0 Delete type=0 #281
2025/05/02-18:21:55.129316 7fc4e73ff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/05/02-18:21:55.129455 7fc4e73ff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2025/04/25-21:12:25.197251 7fa7effff6c0 Recovering log #254
2025/04/25-21:12:25.252610 7fa7effff6c0 Delete type=3 #252
2025/04/25-21:12:25.252672 7fa7effff6c0 Delete type=0 #254
2025/04/25-21:21:41.657695 7fa7eebff6c0 Level-0 table #259: started
2025/04/25-21:21:41.657740 7fa7eebff6c0 Level-0 table #259: 0 bytes OK
2025/04/25-21:21:41.663703 7fa7eebff6c0 Delete type=0 #257
2025/04/25-21:21:41.683056 7fa7eebff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/25-21:21:41.683109 7fa7eebff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/28-21:05:34.008354 7fa7f51fa6c0 Recovering log #274
2025/04/28-21:05:34.023701 7fa7f51fa6c0 Delete type=3 #272
2025/04/28-21:05:34.023772 7fa7f51fa6c0 Delete type=0 #274
2025/04/29-00:08:44.492763 7fa7eebff6c0 Level-0 table #279: started
2025/04/29-00:08:44.492793 7fa7eebff6c0 Level-0 table #279: 0 bytes OK
2025/04/29-00:08:44.569850 7fa7eebff6c0 Delete type=0 #277
2025/04/29-00:08:44.570197 7fa7eebff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/29-00:08:44.570247 7fa7eebff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)

View File

@ -1,21 +0,0 @@
#lethalfantasy-application-manager {
display: flex;
font-family: var(--font-primary);
font-size: calc(var(--font-size-standard) * 1);
color: var(--color-dark-1);
background-image: var(--background-image-base);
background-repeat: no-repeat;
background-size: 100% 100%;
.lethalfantasy-table {
margin: 1rem;
background: none;
padding: 0;
margin: 0;
text-align: center;
.player {
font-size: calc(var(--font-size-standard) * 1);
}
}
}

View File

@ -18,4 +18,4 @@
}
@import "roll.less";
@import "application-manager.less";
@import "hud.less";

43
styles/hud.less Normal file
View File

@ -0,0 +1,43 @@
#token-hud .hp-loss-wrap {
position: absolute;
left: 75px;
display: none;
top: 50%;
width: 48px;
text-align: start;
overflow-y: auto;
}
#token-hud .hp-loss-wrap-col1 {
transform: translate(-200%, -50%);
}
#token-hud .hp-loss-wrap-col2 {
transform: translate(-300%, -50%);
}
#token-hud .hp-loss-wrap-col3 {
transform: translate(-400%, -50%);
}
#token-hud .hp-loss-hud-active {
display: block;
}
#token-hud .hp-loss-hud-disabled {
display: none;
}
#token-hud .hud-loss-hp-button-select {
max-width: 40px;
background-image: var(--background-image-base);
padding-top: 0;
padding-bottom: 0;
width: max-content;
margin: 0;
}
#token-hud .hp-loss-wrap .hud-loss-hp-button-select {
padding-left: 8px;
font-size: 0.7rem;
}

29
templates/loss-hp-hud.hbs Normal file
View File

@ -0,0 +1,29 @@
<div class="control-icon" data-action="lethal-loss-hp-hud">
<img class="lethal-hp-loss-hud" src="systems/fvtt-lethal-fantasy/assets/icons/broken-heart.svg"
width="36" height="36" title="Open token journal" />
<div class="hp-loss-wrap hp-loss-wrap-col1 hp-loss-hud-disabled">
{{#for -10 0 1}}
<button class="hud-loss-hp-button-select loss-hp-hud-click " data-hp-value="{{this}}" >
<span class="">{{this}}</span>
</button>
{{/for}}
</div>
<div class="hp-loss-wrap hp-loss-wrap-col2 hp-loss-hud-disabled">
{{#for -20 -10 1}}
<button class="hud-loss-hp-button-select loss-hp-hud-click " data-hp-value="{{this}}" >
<span class="">{{this}}</span>
</button>
{{/for}}
</div>
<div class="hp-loss-wrap hp-loss-wrap-col3 hp-loss-hud-disabled">
{{#for -30 -20 1}}
<button class="hud-loss-hp-button-select loss-hp-hud-click " data-hp-value="{{this}}" >
<span class="">{{this}}</span>
</button>
{{/for}}
</div>
</div>