Skip to content

Commit

Permalink
override draw function so that atlasCharacter is drawn
Browse files Browse the repository at this point in the history
  • Loading branch information
lemz1 committed Nov 1, 2024
1 parent 09abe61 commit 6500f17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/funkin/ui/debug/char/CharCreatorCharacter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ class CharCreatorCharacter extends Bopper
}
}

override public function draw():Void
{
if (atlasCharacter != null) atlasCharacter.draw();
else
super.draw();
}

public function addAnimation(name:String, prefix:String, offsets:Array<Float>, indices:Array<Int>, frameRate:Int = 24, looped:Bool = false,
flipX:Bool = false, flipY:Bool = false)
{
Expand Down

0 comments on commit 6500f17

Please sign in to comment.