public override void Execute() { base.Execute(); AnimGroup.AddAnimation(new Animation(CurrentAnimation.PixelTexture)); AnimGroup.AddNewTextField(new Vector2(36, 152 + ((AnimGroup.TextFont.LineSpacing + 2) * AnimGroup.Animations.Length)), "animation" + AnimGroup.Animations.Length); //animGroupTextFields = AddNewTextField(animGroupTextFields, new Vector2(36, 152 + ((consolas.LineSpacing + 2) * animGroup.Animations.Length)), "animation" + animGroup.Animations.Length); }
public override void Execute() { base.Execute(); AnimGroup.RemoveAnimation(AnimGroup.Animations[AnimGroup.Animations.Length - 1]); AnimGroup.RemoveTextField(); if (AnimGroup.Animations.Length <= 0) { AnimGroup.AddAnimation(new Animation(CurrentAnimation.PixelTexture)); AnimGroup.AddNewTextField(new Vector2(36, 152 + ((AnimGroup.TextFont.LineSpacing + 2) * AnimGroup.Animations.Length)), "animation" + AnimGroup.Animations.Length); } }
public override void Execute() { base.Execute(); Animation newAnim = new Animation(CurrentAnimation.PixelTexture); newAnim.Bounds = new Rectangle(AnimGroup.CurrentAnimation.Bounds.X, AnimGroup.CurrentAnimation.Bounds.Y, AnimGroup.CurrentAnimation.Bounds.Width, AnimGroup.CurrentAnimation.Bounds.Height); foreach (Frame frame in AnimGroup.CurrentAnimation.Frames) { newAnim.AddFrame(new Frame(frame, false, newAnim.Bounds.Center)); } AnimGroup.AddAnimation(newAnim); AnimGroup.AddNewTextField(new Vector2(36, 152 + ((AnimGroup.TextFont.LineSpacing + 2) * AnimGroup.Animations.Length)), "animation" + AnimGroup.Animations.Length); }