Get new animation working
This commit is contained in:
parent
2e5bf62fb1
commit
4ce60ad422
1
SpriteLibrary/SpriteEntryForm.Designer.cs
generated
1
SpriteLibrary/SpriteEntryForm.Designer.cs
generated
@ -392,6 +392,7 @@
|
|||||||
this.btnNewAnimation.TabIndex = 21;
|
this.btnNewAnimation.TabIndex = 21;
|
||||||
this.btnNewAnimation.Text = "New Anim";
|
this.btnNewAnimation.Text = "New Anim";
|
||||||
this.btnNewAnimation.UseVisualStyleBackColor = true;
|
this.btnNewAnimation.UseVisualStyleBackColor = true;
|
||||||
|
this.btnNewAnimation.Click += new System.EventHandler(this.btnNewAnimation_Click);
|
||||||
//
|
//
|
||||||
// pbPreview
|
// pbPreview
|
||||||
//
|
//
|
||||||
|
@ -325,10 +325,10 @@ namespace SpriteLibrary
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnApply_Click(object sender, EventArgs e)
|
void ApplyChanges()
|
||||||
{
|
{
|
||||||
FormToSpriteInformation();
|
FormToSpriteInformation();
|
||||||
if(CurrentSIIndex >0 && CurrentSIIndex < SpriteInformation.Count)
|
if (CurrentSIIndex > 0 && CurrentSIIndex < SpriteInformation.Count)
|
||||||
{
|
{
|
||||||
SpriteInformation[CurrentSIIndex].CopyFrom(TempInformation);
|
SpriteInformation[CurrentSIIndex].CopyFrom(TempInformation);
|
||||||
}
|
}
|
||||||
@ -340,6 +340,11 @@ namespace SpriteLibrary
|
|||||||
UpdateMenu();
|
UpdateMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void btnApply_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ApplyChanges();
|
||||||
|
}
|
||||||
|
|
||||||
private void WeHaveNewItem()
|
private void WeHaveNewItem()
|
||||||
{
|
{
|
||||||
TempInformation.CopyFrom(SpriteInformation[CurrentSIIndex]);
|
TempInformation.CopyFrom(SpriteInformation[CurrentSIIndex]);
|
||||||
@ -383,5 +388,15 @@ namespace SpriteLibrary
|
|||||||
SpriteInformationToForm();
|
SpriteInformationToForm();
|
||||||
UpdateMenu();
|
UpdateMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void btnNewAnimation_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ApplyChanges();
|
||||||
|
AnimationInfo AI = TempInformation.Animations[CurrentSIAnimation].Clone();
|
||||||
|
TempInformation.Animations.Add(AI);
|
||||||
|
CurrentSIAnimation++;
|
||||||
|
SpriteInformationToForm();
|
||||||
|
UpdateMenu();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user