Debug Item entry and forward / back buttons
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user