There was a request for this script a while back and it completely slipped my mind to write it. DamonReborn reminded me, so here I went ahead and knocked it out. It's completely automatic, just install it and face down cards will have their tooltips hidden while face up ones will have them revealed. Code: on('ready',()=>{
const checkInstall = () => {
let cards = findObjs({type:'graphic', subtype:'card'});
const burndown = ()=>{
let c = cards.shift();
if(c) {
if( 0 === c.get('currentSide')){
c.set({show_tooltip: true});
} else {
c.set({show_tooltip: true});
c.set({show_tooltip: false});
}
setTimeout(burndown,0);
}
}
burndown();
};
const showHideTooltip = function(o,p){
if(o.get('currentSide') !== (p||{}).currentSide) {
if( 0 === o.get('currentSide') ) {
o.set({show_tooltip: true});
} else {
o.set({show_tooltip: true});
o.set({show_tooltip: false});
}
}
};
checkInstall();
on('add:card',showHideTooltip);
on('change:card',showHideTooltip);
if('undefined' !== typeof TokenMod && TokenMod.ObserveTokenChange){
TokenMod.ObserveTokenChange(showHideTooltip);
}
});
(Coders note: Yes, I'm setting show_tooltip to true before then setting it to false. This is a hack to work around the fact that merely setting it to false does not cause the setting to be updated.)