making the anim box slightly bigger fr

This commit is contained in:
lunarcleint
2023-07-10 22:10:37 -07:00
parent de02ccc18c
commit e5880d403a
2 changed files with 6 additions and 4 deletions
@@ -56,11 +56,11 @@ class CharacterAnimScreen extends UISubstateWindow {
add(nameTextBox);
addLabelOn(nameTextBox, "Name");
animTextBox = new UITextBox(nameTextBox.x + 160 + 26, nameTextBox.y, animData.anim, 180);
animTextBox = new UITextBox(nameTextBox.x + 160 + 26, nameTextBox.y, animData.anim, 200);
add(animTextBox);
addLabelOn(animTextBox, "Animation");
fpsStepper = new UINumericStepper(animTextBox.x + 180 + 26, animTextBox.y, animData.fps, 0.1, 2, 1, 100, 82);
fpsStepper = new UINumericStepper(animTextBox.x + 200 + 26, animTextBox.y, animData.fps, 0.1, 2, 1, 100, 82);
add(fpsStepper);
addLabelOn(fpsStepper, "FPS");
@@ -382,10 +382,12 @@ class CharacterEditor extends UIState {
var oldID:Int = character.animation.getNameList().indexOf(name);
var oldAnimData:AnimData = character.animDatas.get(name);
if (character.animation.exists(name)) {
if (character.animation.exists(name))
character.animation.remove(name);
if (character.animOffsets.exists(name))
character.animOffsets.remove(name);
}
if (character.animDatas.exists(name))
character.animDatas.remove(name);
characterAnimsWindow.removeButton(name);
if (addtoUndo)