wow short shower

This commit is contained in:
lunarcleint
2024-04-14 18:49:23 -07:00
parent 44f542d839
commit eaab7744ae
2 changed files with 9 additions and 2 deletions
@@ -10,7 +10,7 @@ class CharacterAnimButton extends UIButton {
this.anim = anim;
super(x,y, '$anim (${offset.x}, ${offset.y})', function () {
CharacterEditor.instance.playAnimation(this.anim);
}, Std.int(500-32));
}, Std.int(500-16));
autoAlpha = false;
}
@@ -2,6 +2,13 @@ package funkin.editors.character;
class CharacterAnimsWindow extends UIButtonList<CharacterAnimButton> {
public function new(x:Float, y:Float, animations:Array<String>) {
super(x, y, Std.int(500-16), 300, "Character Animations", FlxPoint.get(500-16, 32));
super(x, y, Std.int(500-16), 419, "", FlxPoint.get(500-16, 32));
cameraSpacing = 0;
frames = Paths.getFrames('editors/ui/inputbox');
for (anim in animations)
add(new CharacterAnimButton(0,0, anim, FlxPoint.get()));
}
}