Skip to content

Commit 7a0d0e4

Browse files
Create NewCharacterAnimationsWindow.hx
1 parent 899f9e4 commit 7a0d0e4

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package funkin.editors.character;
2+
3+
class NewCharacterAnimationsWindow extends UIWindow {
4+
5+
public var animDropdown:UIDropDown;
6+
public var addButton:UIButton;
7+
public var editButton:UIButton;
8+
9+
public function new(x:Int, y:Int, width:Int, height:Int, title:String, animations:Array<String>) {
10+
super(x, y, width, height, title);
11+
animDropdown = new UIDropDown(this.x + 15, this.y + 50, width - 10, 32, animations);
12+
this.members.push(animDropdown);
13+
14+
addButton = new UIButton(animDropdown.x, animDropdown.y + 50, "Add Animation", null, Std.int(animDropdown.bWidth / 2));
15+
this.members.push(addButton);
16+
editButton = new UIButton(addButton.x + addButton.bWidth + 10, addButton.y, "Edit Animation", null, addButton.bWidth);
17+
this.members.push(editButton);
18+
}
19+
}

0 commit comments

Comments
 (0)