@@ -14,7 +14,7 @@ import { tl } from './util/intl'
1414import { format , safeFunctionName } from './util/replace'
1515import { isSceneBased } from './util/hasSceneAsParent'
1616import { CustomError } from './util/customError'
17- store . set ( 'static_animation_uuid ' , '138747e7-2de0-4130-b900-9275ca0e6333' )
17+ store . set ( 'staticAnimationUuid ' , '138747e7-2de0-4130-b900-9275ca0e6333' )
1818
1919function setAnimatorTime ( time ) {
2020 Timeline . setTime ( time , false )
@@ -159,7 +159,7 @@ const Cache = new (class {
159159 settings . watch ( 'animatedJava.cacheMode' , ( ) => {
160160 this . initDiskCache ( )
161161 } )
162- settings . watch ( 'animatedJava.use_cache ' , ( ) => {
162+ settings . watch ( 'animatedJava.useCache ' , ( ) => {
163163 this . clear ( )
164164 } )
165165 this . initDiskCache ( )
@@ -242,11 +242,11 @@ async function renderAnimation(options) {
242242
243243 if ( options . generate_static_animation ) {
244244 static_animation = new Animation ( {
245- name : 'animatedJava.static_animation ' ,
245+ name : 'animatedJava.staticSnimation ' ,
246246 snapping : 20 ,
247247 length : 0 ,
248248 } ) . add ( false )
249- static_animation . uuid = store . get ( 'static_animation_uuid ' )
249+ static_animation . uuid = store . get ( 'staticAnimationUuid ' )
250250 }
251251
252252 const totalAnimationLength = Animator . animations . reduce (
@@ -255,7 +255,7 @@ async function renderAnimation(options) {
255255 )
256256 // Accumulated animation length
257257 let accAnimationLength = 0
258- const tldMessage = tl ( 'animatedJava.progress.animationRendering.text ' )
258+ const tldMessage = tl ( 'animatedJava.progress.animationRendering' )
259259 const progressUpdaterID = setInterval ( ( ) => {
260260 console . log ( accAnimationLength , totalAnimationLength )
261261 Blockbench . setStatusBarText (
@@ -290,21 +290,21 @@ async function renderAnimation(options) {
290290 throw new CustomError ( 'Invalid Snapping Value Error' , {
291291 intentional : true ,
292292 dialog : {
293- id : 'animatedJava_exporter_animationExporter.popup.warning.invalidSnappingValue ' ,
293+ id : 'animatedJava.invalidAnimationSnappingValue ' ,
294294 title : tl (
295- 'animatedJava_exporter_animationExporter.popup.warning.invalidSnappingValue .title'
295+ 'animatedJava.dialogs.errors.invalidAnimationSnappingValue .title'
296296 ) ,
297- lines : format (
297+ lines : [
298298 tl (
299- 'animatedJava_exporter_animationExporter.popup.warning.invalidSnappingValue.body'
299+ 'animatedJava.dialogs.errors.invalidAnimationSnappingValue.body' ,
300+ {
301+ animationName : animation . name ,
302+ snapping : animation . snapping ,
303+ }
300304 ) ,
301- {
302- animationName : animation . name ,
303- snapping : animation . snapping
304- }
305- )
306- . split ( '\n' )
307- . map ( ( line ) => `<p>${ line } </p>` ) ,
305+ ] ,
306+ width : 512 + 256 ,
307+ singleButton : true
308308 } ,
309309 } )
310310 }
@@ -314,7 +314,10 @@ async function renderAnimation(options) {
314314 let maxDistance = - Infinity
315315 const frames = [ ]
316316 animation . select ( )
317- const animLength = animation . loop === 'loop' ? animation . length : animation . length + 0.05
317+ const animLength =
318+ animation . loop === 'loop'
319+ ? animation . length
320+ : animation . length + 0.05
318321
319322 for ( let i = 0 ; i <= animLength ; i += 0.05 ) {
320323 accAnimationLength += 0.05
0 commit comments