mirror of
https://github.com/workinghard/Cube4Fun.git
synced 2025-12-13 20:32:09 +00:00
a
This commit is contained in:
@@ -226,9 +226,13 @@ class Animations: NSObject {
|
|||||||
myData.length = myLength - 64 // remove one frame
|
myData.length = myLength - 64 // remove one frame
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
func insertDisplFrame() {
|
func insertDisplFrame() {
|
||||||
// Get Array
|
// Get Array
|
||||||
let myData = self.getAnimDataSelected()
|
// var myData = self.getAnimDataSelected()
|
||||||
|
var myData: NSMutableData = (self.getAnimation(_animationSelected)).objectForKey(AnimFrames) as! NSMutableData
|
||||||
|
|
||||||
|
//var myData: [UInt8] = [UInt8]()
|
||||||
// Get startPositions of the selected frame
|
// Get startPositions of the selected frame
|
||||||
var frameStartPos = (self.getAnimationFrameID()-1)*64
|
var frameStartPos = (self.getAnimationFrameID()-1)*64
|
||||||
// Insert empty frame at this position
|
// Insert empty frame at this position
|
||||||
@@ -245,6 +249,8 @@ class Animations: NSObject {
|
|||||||
myData.removeAtIndex(frameStartPos)
|
myData.removeAtIndex(frameStartPos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
func animationSpeedInt() -> Int {
|
func animationSpeedInt() -> Int {
|
||||||
let frameSpeed: Int = (self.getAnimation(_animationSelected)).objectForKey(AnimSpeed) as! Int
|
let frameSpeed: Int = (self.getAnimation(_animationSelected)).objectForKey(AnimSpeed) as! Int
|
||||||
|
|||||||
Reference in New Issue
Block a user