Get new animation working
This commit is contained in:
@ -325,10 +325,10 @@ namespace SpriteLibrary
|
||||
|
||||
}
|
||||
|
||||
private void btnApply_Click(object sender, EventArgs e)
|
||||
void ApplyChanges()
|
||||
{
|
||||
FormToSpriteInformation();
|
||||
if(CurrentSIIndex >0 && CurrentSIIndex < SpriteInformation.Count)
|
||||
if (CurrentSIIndex > 0 && CurrentSIIndex < SpriteInformation.Count)
|
||||
{
|
||||
SpriteInformation[CurrentSIIndex].CopyFrom(TempInformation);
|
||||
}
|
||||
@ -340,6 +340,11 @@ namespace SpriteLibrary
|
||||
UpdateMenu();
|
||||
}
|
||||
|
||||
private void btnApply_Click(object sender, EventArgs e)
|
||||
{
|
||||
ApplyChanges();
|
||||
}
|
||||
|
||||
private void WeHaveNewItem()
|
||||
{
|
||||
TempInformation.CopyFrom(SpriteInformation[CurrentSIIndex]);
|
||||
@ -383,5 +388,15 @@ namespace SpriteLibrary
|
||||
SpriteInformationToForm();
|
||||
UpdateMenu();
|
||||
}
|
||||
|
||||
private void btnNewAnimation_Click(object sender, EventArgs e)
|
||||
{
|
||||
ApplyChanges();
|
||||
AnimationInfo AI = TempInformation.Animations[CurrentSIAnimation].Clone();
|
||||
TempInformation.Animations.Add(AI);
|
||||
CurrentSIAnimation++;
|
||||
SpriteInformationToForm();
|
||||
UpdateMenu();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user