Skip to content

Commit

Permalink
Use staxie's slice width and height for vio updater frame sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
kettek committed Dec 15, 2024
1 parent 76d176c commit 1158784
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/sections/VioUpdater.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,18 @@
origSubset: subset,
}
animation.frames[staxieAnimationFrame][staxieSliceIndex] = slice
frameSizeCounts[`${frame.width}x${frame.height}`] = (frameSizeCounts[`${frame.width}x${frame.height}`] || 0) + 1
//frameSizeCounts[`${frame.width}x${frame.height}`] = (frameSizeCounts[`${frame.width}x${frame.height}`] || 0) + 1
}
}
}
vioImport.stacks.push(stack)
}
let bestFrameSize = Object.keys(frameSizeCounts).sort((a, b) => frameSizeCounts[b] - frameSizeCounts[a])[0]
/*let bestFrameSize = Object.keys(frameSizeCounts).sort((a, b) => frameSizeCounts[b] - frameSizeCounts[a])[0]
vioImport.frameWidth = parseInt(bestFrameSize.split('x')[0])
vioImport.frameHeight = parseInt(bestFrameSize.split('x')[1])
vioImport.frameHeight = parseInt(bestFrameSize.split('x')[1])*/
vioImport.frameWidth = file.frameWidth
vioImport.frameHeight = file.frameHeight
}
function fileToVio(): VioSprite {
Expand Down

0 comments on commit 1158784

Please sign in to comment.