@@ -175,8 +175,8 @@ class Paths
175175 inline static public function getSparrowAtlas (key : String , ? library : String , ? ext : String )
176176 return FlxAtlasFrames .fromSparrow (image (key , library , ext ), file (' images/ $key .xml' , library ));
177177
178- inline static public function getAnimateAtlasAlt (key : String )
179- return FlxAnimateFrames .fromAnimate (key );
178+ inline static public function getAnimateAtlasAlt (key : String , ? settings : FlxAnimateSettings )
179+ return FlxAnimateFrames .fromAnimate (key , null , null , null , false , settings );
180180
181181 inline static public function getSparrowAtlasAlt (key : String , ? ext : String )
182182 return FlxAtlasFrames .fromSparrow (' $key . ${ext != null ? ext : Flags .IMAGE_EXT }' , ' $key .xml' );
@@ -201,15 +201,15 @@ class Paths
201201 * @param key Path to the frames
202202 * @param library (Additional) library to load the frames from.
203203 */
204- public static function getFrames (key : String , assetsPath : Bool = false , ? library : String , ? ext : String = null ) {
204+ public static function getFrames (key : String , assetsPath : Bool = false , ? library : String , ? ext : String = null , ? animateSettings : FlxAnimateSettings ) {
205205 if (tempFramesCache .exists (key )) {
206206 var frames = tempFramesCache [key ];
207207 if (frames != null && frames .parent != null && frames .parent .bitmap != null && frames .parent .bitmap .readable )
208208 return frames ;
209209 else
210210 tempFramesCache .remove (key );
211211 }
212- return tempFramesCache [key ] = loadFrames (assetsPath ? key : Paths .image (key , library , true , ext ), false , null , false , ext );
212+ return tempFramesCache [key ] = loadFrames (assetsPath ? key : Paths .image (key , library , true , ext ), false , null , false , ext , animateSettings );
213213 }
214214
215215 /**
@@ -246,7 +246,7 @@ class Paths
246246 * @param Ext Extension of the image.
247247 * @return FlxFramesCollection Frames
248248 */
249- static function loadFrames (path : String , Unique : Bool = false , Key : String = null , SkipAtlasCheck : Bool = false , SkipMultiCheck : Bool = false , ? Ext : String = null ): FlxFramesCollection {
249+ static function loadFrames (path : String , Unique : Bool = false , Key : String = null , SkipAtlasCheck : Bool = false , SkipMultiCheck : Bool = false , ? Ext : String = null , ? animateSettings : FlxAnimateSettings ): FlxFramesCollection {
250250 var noExt = Path .withoutExtension (path );
251251 var ext = Ext != null ? Ext : Flags .IMAGE_EXT ;
252252
@@ -268,7 +268,7 @@ class Paths
268268 }
269269 return finalFrames ;
270270 } else if (Assets .exists (' $noExt /Animation.json' )) {
271- return Paths .getAnimateAtlasAlt (noExt );
271+ return Paths .getAnimateAtlasAlt (noExt , animateSettings );
272272 } else if (Assets .exists (' $noExt .xml' )) {
273273 return Paths .getSparrowAtlasAlt (noExt , ext );
274274 } else if (Assets .exists (' $noExt .txt' )) {
0 commit comments