PDA

View Full Version : Beautiful sort ID feature



shinriyo
8 Feb 2012, 12:43 AM
Sencha Animator always export ugly ID of JS below.


scenes: [{id: 0, animationCount: 26, duration: 2305, dimensions: {height: 320, width: 320, expanded: false, fit: false}
// do something
,{id: 9, animationCount: 93, duration: 1380, dimensions: {height: 320, width: 320, expanded: false, fit: false}
// do something
,{id: 2, animationCount: 14, duration: 1790, dimensions: {height: 320, width: 320, expanded: false, fit: false},
// do something


it is ugly and not user-friendly :(
id0 -> id9 -> id2

I want the good sorting feature! ;)
id0 -> id1 -> id2

arnebech
8 Feb 2012, 7:21 AM
The ID is generate when you create a scene, and is unique to that scene, since you might need to refer to it later. So when you delete and move around scenes, the scene id will not be incremental in the export.

shinriyo
8 Feb 2012, 4:40 PM
I know it is unique and increment
But, I want the resort feature. =P~
Or, if I have a time I'll create resort tool:))