Files
CodenameEngine/source/funkin/editors/character/CharacterPropertiesWindow.hx
T
2023-07-15 18:23:40 -07:00

35 lines
1.1 KiB
Haxe

package funkin.editors.character;
import flixel.util.FlxColor;
class CharacterPropertiesWindow extends UIWindow {
public var newButton:UIButton;
public var editButton:UIButton;
public var characterInfo:UIText;
public function new() {
super(800-23,23 + 23, 450 + 23, 140, "Character Properties");
newButton = new UIButton( x +(450 + 23)- 25 - 3 - 200, y + 12 + 31, "New Character", null, 200);
members.push(newButton);
newButton.color = FlxColor.GREEN;
editButton = new UIButton(newButton.x, newButton.y + 12 + 30 + 4, "Edit Character Info", function () {
CharacterEditor.instance.editInfoWithUI();
}, 200);
members.push(editButton);
characterInfo = new UIText(x + 450 + 20 - 42 - 400, y + 36 + 10, 400, "() Animations:\nFlipped:\nSprite:\nAnim:\nOffset: (,)");
characterInfo.alignment = LEFT;
members.push(characterInfo);
}
public override function update(elapsed:Float) {
super.update(elapsed);
__rect.x = x; __rect.y = y+23;
__rect.width = bWidth; __rect.height = bHeight-23;
hovered = UIState.state.isOverlapping(this, __rect);
}
}