Skip to content

Commit

Permalink
atlas character somewhat works
Browse files Browse the repository at this point in the history
  • Loading branch information
lemz1 committed Nov 1, 2024
1 parent cf7eae8 commit 8b1aa76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions source/funkin/ui/debug/char/CharCreatorCharacter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class CharCreatorCharacter extends Bopper
atlasCharacter.antialiasing = this.antialiasing;
atlasCharacter.pixelPerfectRender = this.pixelPerfectRender;
atlasCharacter.pixelPerfectPosition = this.pixelPerfectPosition;
atlasCharacter.update(elapsed);
}
}

Expand All @@ -141,6 +142,10 @@ class CharCreatorCharacter extends Bopper

if (!animation.getNameList().contains(name)) return false;
}
else
{
if (!atlasCharacter.hasAnimation(prefix)) return false;
}

animations.push(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class AddAnimDialog extends DefaultPageDialog
}
else
{
for (symbolName in char.atlasCharacter.anim.symbolDictionary.keys())
for (fname in char.atlasCharacter.listAnimations())
{
if (symbolName != null) charAnimFrameList.dataSource.add({name: symbolName});
if (fname != null) charAnimFrameList.dataSource.add({name: fname});
}
}

Expand Down

0 comments on commit 8b1aa76

Please sign in to comment.