Format TexturePacker atlas changes
This commit is contained in:
@@ -371,7 +371,10 @@ Future<GamePackage> _createTextureAtlasPackage(String name) async {
|
||||
final hashAtlas = RuntimeTextureAtlas.fromJsonString(
|
||||
File('${root.path}/assets/ui.json').readAsStringSync(),
|
||||
);
|
||||
expect(hashAtlas.frames['button_idle.png']?.rect, Rect.fromLTWH(2, 3, 40, 20));
|
||||
expect(
|
||||
hashAtlas.frames['button_idle.png']?.rect,
|
||||
Rect.fromLTWH(2, 3, 40, 20),
|
||||
);
|
||||
final arrayAtlas = RuntimeTextureAtlas.fromJsonString('''
|
||||
{
|
||||
"frames": [
|
||||
@@ -384,7 +387,8 @@ Future<GamePackage> _createTextureAtlasPackage(String name) async {
|
||||
]
|
||||
}
|
||||
''');
|
||||
final mergedAtlas = '''
|
||||
final mergedAtlas =
|
||||
'''
|
||||
{
|
||||
"frames": {
|
||||
"button_idle.png": {
|
||||
|
||||
Reference in New Issue
Block a user