mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Clean up boop dialog
This commit is contained in:
@@ -60,13 +60,13 @@ function getEmojiFileName(emoji) {
|
||||
* @param {number} frameCount
|
||||
* @param {string} loopStyle
|
||||
*/
|
||||
function generateEmojiStyle(url, fps, frameCount, loopStyle) {
|
||||
function generateEmojiStyle(url, fps, frameCount, loopStyle, size) {
|
||||
let framesPerLine = 2;
|
||||
if (frameCount > 4) framesPerLine = 4;
|
||||
if (frameCount > 16) framesPerLine = 8;
|
||||
const animationDurationMs = (1000 / fps) * frameCount;
|
||||
const frameSize = 1024 / framesPerLine;
|
||||
const scale = 100 / (frameSize / 200);
|
||||
const scale = 100 / (frameSize / size);
|
||||
const animStyle = loopStyle === 'pingpong' ? 'alternate' : 'none';
|
||||
const style = `
|
||||
transform: scale(${scale / 100});
|
||||
|
||||
Reference in New Issue
Block a user