mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
- made right swipe highlight when next swipe will generate
- added a swipe counter below right swipe (could add a toggle for displaying it later) - removed spammy console.logs from expressions index.js - swipes no longer trigger under the following conditions: - - when an input it focused - - when character_popup or history popup are visible - - when send_textarea has something typed into it (I think this a bit too restrictive, may seek a smarter way to handle it) ISSUE: Pyg repeating gens cause swipes animation to lag/freeze not sure what is the cause, but should seek to remedy somehow.
This commit is contained in:
@ -180,14 +180,14 @@ async function setExpression(character, expression) {
|
||||
const debugImageStatus = document.querySelector(`#image_list li[id="${filename}"]`);
|
||||
|
||||
if (debugImageStatus && !debugImageStatus.classList.contains('failure')) {
|
||||
console.log('setting expression from character images folder');
|
||||
//console.log('setting expression from character images folder');
|
||||
const imgUrl = `/characters/${character}/${filename}`;
|
||||
$('img.expression').prop('src', imgUrl);
|
||||
} else {
|
||||
if (showDefault) {
|
||||
console.log('no character images, trying default expressions');
|
||||
//console.log('no character images, trying default expressions');
|
||||
const defImgUrl = `/img/default-expressions/${filename}`;
|
||||
console.log(defImgUrl);
|
||||
//console.log(defImgUrl);
|
||||
$('img.expression').prop('src', defImgUrl);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user