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