- 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:
RossAsscends
2023-03-18 12:34:18 +09:00
parent 07c6f09be2
commit de27382e50
4 changed files with 116 additions and 40 deletions

View File

@ -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);
}
}