Add power-user option to toggle card filenames.

Rephrased 'resize' option so It's Not Talking Like This.
This commit is contained in:
50h100a
2023-06-26 21:45:15 -04:00
parent 553a95fd39
commit 06f580ed29
3 changed files with 18 additions and 4 deletions

View File

@ -226,6 +226,7 @@ export {
extension_prompt_types,
updateVisibleDivs,
mesForShowdownParse,
printCharacters,
}
// API OBJECT FOR EXTERNAL WIRING
@ -803,7 +804,9 @@ async function printCharacters() {
template.find('img').attr('src', this_avatar);
template.find('.avatar').attr('title', item.avatar);
template.find('.ch_name').text(item.name);
template.find('.ch_avatar_url').text(item.avatar);
if (power_user.show_card_avatar_urls) {
template.find('.ch_avatar_url').text(item.avatar);
}
template.find('.ch_fav_icon').css("display", 'none');
template.toggleClass('is_fav', item.fav || item.fav == 'true');
template.find('.ch_fav').val(item.fav);