Esempio n. 1
0
		private void bEditAnimation_Click(object sender, EventArgs e) {
			using (FrmAnimationEditor form = new FrmAnimationEditor()) {
				form.TileableTexture = this.Template.Texture;
				form.Animations.AddRange(this.Template.Animations);

				if (form.ShowDialog() == DialogResult.OK) {
					Template.Animations.Clear();
					Template.Animations.AddRange(form.Animations);
				}
			}
		}
Esempio n. 2
0
 private void bEntityAnimation_Click(object sender, EventArgs e)
 {
     using (FrmAnimationEditor frm = new FrmAnimationEditor()) {
         frm.Animations      = this.entityControl.Template.Animations;
         frm.TileableTexture = this.entityControl.Template.Texture;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             this.entityControl.Template.Animations = frm.Animations;
         }
     }
 }
        private void bEditAnimation_Click(object sender, EventArgs e)
        {
            using (FrmAnimationEditor form = new FrmAnimationEditor()) {
                form.TileableTexture = this.Template.Texture;
                form.Animations.AddRange(this.Template.Animations);

                if (form.ShowDialog() == DialogResult.OK)
                {
                    Template.Animations.Clear();
                    Template.Animations.AddRange(form.Animations);
                }
            }
        }