Able to add a new animation.
This commit is contained in:
parent
fac2461875
commit
2e5bf62fb1
@ -209,6 +209,8 @@ namespace SpriteLibrary
|
|||||||
if (CurrentSIAnimation >= TempInformation.Animations.Count) CurrentSIAnimation = TempInformation.Animations.Count -1;
|
if (CurrentSIAnimation >= TempInformation.Animations.Count) CurrentSIAnimation = TempInformation.Animations.Count -1;
|
||||||
if (CurrentSIAnimation < TempInformation.Animations.Count)
|
if (CurrentSIAnimation < TempInformation.Animations.Count)
|
||||||
{
|
{
|
||||||
|
if (CurrentSIAnimation >= TempInformation.Animations.Count)
|
||||||
|
TempInformation.Animations.Add(new AnimationInfo());
|
||||||
AI = TempInformation.Animations[CurrentSIAnimation];
|
AI = TempInformation.Animations[CurrentSIAnimation];
|
||||||
tbAmimationSpeed.Text = AI.AnimSpeed.ToString();
|
tbAmimationSpeed.Text = AI.AnimSpeed.ToString();
|
||||||
cbStartingImage.Text = AI.ImageName;
|
cbStartingImage.Text = AI.ImageName;
|
||||||
|
Loading…
Reference in New Issue
Block a user