@@ -454,6 +454,7 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
454
454
#displayActivityIcon = defaults . displayActivityIcon ;
455
455
#showOnlyPrepared = defaults . showOnlyPrepared ;
456
456
#showPreparedness = defaults . showPreparedness ;
457
+ #tooltipsSetting;
457
458
458
459
#findGroup( data = { } ) {
459
460
if ( data ?. nestId ) {
@@ -481,6 +482,7 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
481
482
this . #displayActivityIcon = getSetting ( settings . displayActivityIcon ) ;
482
483
this . #showOnlyPrepared = getSetting ( settings . showOnlyPrepared ) ;
483
484
this . #showPreparedness = getSetting ( settings . showPreparedness ) ;
485
+ this . #tooltipsSetting = game . settings . get ( "token-action-hud-core" , "tooltips" ) ;
484
486
485
487
if ( this . actor ) {
486
488
const physicalItems = this . actor . items . filter ( i => i . system . isPhysical ) ;
@@ -1229,9 +1231,10 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
1229
1231
}
1230
1232
1231
1233
#getTooltip( item ) {
1232
- if ( this . tooltipsSetting === "none" ) return "" ;
1234
+ debugger ;
1235
+ if ( this . #tooltipsSetting === "none" ) return "" ;
1233
1236
1234
- if ( this . tooltipsSetting === "full" && foundry . utils . getType ( item . system . richTooltip ) === "function" ) {
1237
+ if ( this . # tooltipsSetting === "full" && foundry . utils . getType ( item . system . richTooltip ) === "function" ) {
1235
1238
const tooltip = { } ;
1236
1239
tooltip . content = `<section class="loading" data-uuid="${ item . uuid } "><i class="fas fa-spinner fa-spin-pulse"></i></section>` ;
1237
1240
tooltip . class = "black-flag black-flag-tooltip item-tooltip" ;
@@ -1304,11 +1307,11 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
1304
1307
}
1305
1308
1306
1309
#getConditionTooltipData( id , name ) {
1307
- if ( this . tooltipsSetting === "none" ) return "" ;
1310
+ if ( this . # tooltipsSetting === "none" ) return "" ;
1308
1311
1309
1312
const condition = CONFIG . BlackFlag . conditions [ id ] ;
1310
1313
1311
- if ( this . tooltipsSetting === "nameOnly" || ! condition ?. reference ) return name ;
1314
+ if ( this . # tooltipsSetting === "nameOnly" || ! condition ?. reference ) return name ;
1312
1315
1313
1316
const tooltip = { } ;
1314
1317
tooltip . content = `<section class="loading" data-uuid="${ condition . reference } "><i class="fas fa-spinner fa-spin-pulse"></i></section>` ;
0 commit comments