update the selected box from the SpriteInfo

This commit is contained in:
Tim Young 2017-09-17 17:10:03 -05:00
parent 7dea96b266
commit 30a3d1e4b3

View File

@ -178,7 +178,9 @@ namespace SpriteLibrary
cbMirrorV.Checked = AI.MirrorVertically;
cbAnimation.Text = AI.AnimationToUse.ToString();
tbNumFrames.Text = AI.NumFrames.ToString();
lblChosenArea.Text = AI.Width + "x" + AI.Height;
//lblChosenArea.Text = AI.Width + "x" + AI.Height;
ChosenArea = new Rectangle(AI.StartPoint.X, AI.StartPoint.Y, AI.Width, AI.Height);
UpdateChosenAreaLabel();
//Radio buttons
if (AI.FieldsToUse == AnimationType.SpriteDefinition) rbFromImage.Checked = true;
if (AI.FieldsToUse == AnimationType.Mirror) rbMirror.Checked = true;