Debug Item entry and forward / back buttons
This commit is contained in:
parent
8e502e3b1e
commit
273c381389
@ -328,6 +328,7 @@ namespace SpriteLibrary
|
||||
}
|
||||
else
|
||||
{
|
||||
string Try = SpriteDatabase.WriteToXMLString<SpriteInfo>(TempInformation);
|
||||
SpriteInformation.Add(TempInformation);
|
||||
CurrentSIIndex = SpriteInformation.IndexOf(TempInformation);
|
||||
}
|
||||
@ -339,6 +340,8 @@ namespace SpriteLibrary
|
||||
if (SpriteInformation.Count == 0) return; //nothing to do
|
||||
CurrentSIIndex++;
|
||||
if (CurrentSIIndex >= SpriteInformation.Count) CurrentSIIndex = 0;
|
||||
if (TempInformation == null) TempInformation = new SpriteInfo();
|
||||
TempInformation.CopyFrom(SpriteInformation[CurrentSIIndex]);
|
||||
SpriteInformationToForm();
|
||||
UpdateMenu();
|
||||
}
|
||||
@ -348,6 +351,8 @@ namespace SpriteLibrary
|
||||
if (SpriteInformation.Count == 0) return; //nothing to do
|
||||
CurrentSIIndex--;
|
||||
if (CurrentSIIndex < 0) CurrentSIIndex = SpriteInformation.Count - 1;
|
||||
if (TempInformation == null) TempInformation = new SpriteInfo();
|
||||
TempInformation.CopyFrom(SpriteInformation[CurrentSIIndex]);
|
||||
SpriteInformationToForm();
|
||||
UpdateMenu();
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ using System.Resources;
|
||||
|
||||
namespace SpriteLibrary
|
||||
{
|
||||
internal enum AnimationType { SpriteDefinition=0, Rotation=1, Mirror=2 }
|
||||
internal class AnimationInfo
|
||||
public enum AnimationType { SpriteDefinition=0, Rotation=1, Mirror=2 }
|
||||
public class AnimationInfo
|
||||
{
|
||||
public AnimationType FieldsToUse = AnimationType.SpriteDefinition;
|
||||
public int AnimationToUse = 0;
|
||||
@ -36,9 +36,9 @@ namespace SpriteLibrary
|
||||
|
||||
public class SpriteInfo
|
||||
{
|
||||
internal string SpriteName = "";
|
||||
internal int ViewPercent = 100; //The percent size of the sprite. 100 is full. 50 is half-size
|
||||
internal List<AnimationInfo> Animations = new List<AnimationInfo>();
|
||||
public string SpriteName = "";
|
||||
public int ViewPercent = 100; //The percent size of the sprite. 100 is full. 50 is half-size
|
||||
public List<AnimationInfo> Animations = new List<AnimationInfo>();
|
||||
|
||||
/// <summary>
|
||||
/// A generic cloning method that works when everything is public
|
||||
|
Loading…
Reference in New Issue
Block a user