Added mods: ChangeFrameDelay, MoveSprite(NC), RenameAnimation, RenameFrame, ReorderSprite, ReplaceFrame, SetSpritePosition(NC); Changed: Removed opening conditionals from several mods

This commit is contained in:
quinnvoker
2018-12-29 17:31:39 -08:00
parent e2702bb932
commit 73bbbf9dda
16 changed files with 734 additions and 173 deletions
@@ -31,20 +31,17 @@ namespace AnimationEditor.Modifications
public void Do()
{
if (removeIndex > -1 && removeIndex < animations.Count)
removedAnim = animations[removeIndex];
if (animations.Count == 1)
{
removedAnim = animations[removeIndex];
if (animations.Count == 1)
animations[removeIndex] = new Animation();
}
else
{
animations.RemoveAt(removeIndex);
if (animationBox.SelectedIndex > animations.Count - 1)
{
animations[removeIndex] = new Animation();
}
else
{
animations.RemoveAt(removeIndex);
if (animationBox.SelectedIndex > animations.Count - 1)
{
animationBox.SelectedIndex--;
}
animationBox.SelectedIndex--;
}
}
}