lots of stuff

This commit is contained in:
Spel0
2021-07-13 13:37:30 +03:00
parent 9edadeca27
commit 00687fb1b6
6 changed files with 20 additions and 48 deletions

View File

@@ -53,7 +53,7 @@ class Paths
return 'assets/$file';
}
inline static public function file(file:String, type:AssetType = TEXT, ?library:String)
inline static public function file(file:String, ?library:String, type:AssetType = TEXT)
{
return getPath(file, type, library);
}
@@ -142,7 +142,7 @@ class Paths
return null;
#end
else
return FlxAtlasFrames.fromSparrow(image('characters/$key'), file('images/characters/$key.xml'));
return FlxAtlasFrames.fromSparrow(image('characters/$key', library), file('images/characters/$key.xml', library));
return FlxAtlasFrames.fromSparrow(image(key, library), file('images/$key.xml', library));
}
@@ -169,7 +169,7 @@ class Paths
return null;
#end
else
return FlxAtlasFrames.fromSpriteSheetPacker(image('characters/$key'), file('images/characters/$key.txt'));
return FlxAtlasFrames.fromSpriteSheetPacker(image('characters/$key'), file('images/characters/$key.txt', library));
return FlxAtlasFrames.fromSpriteSheetPacker(image(key, library), file('images/$key.txt', library));
}
}