pogress on rotation / mirror

This commit is contained in:
Tim Young 2017-09-20 10:46:26 -05:00
parent 08641c7174
commit 8ee0e43528

View File

@ -68,6 +68,10 @@ namespace SpriteLibrary
myToolTip.AutoPopDelay = 5000;
myToolTip.AutomaticDelay = 500;
rbFromImage.Click += UpdateMenuClick;
rbMirror.Click += UpdateMenuClick;
rbRotation.Click += UpdateMenuClick;
PopulateMenu();
UpdateMenu();
SpriteInformationToForm();
@ -164,6 +168,11 @@ namespace SpriteLibrary
ResumeLayout();
}
private void UpdateMenuClick(object sender, EventArgs e)
{
UpdateMenu();
}
private void UpdateChosenAreaLabel()
{
lblChosenArea.Text = ChosenArea.X + "," + ChosenArea.Y + "," + ChosenArea.Width + "," + ChosenArea.Height;
@ -284,6 +293,7 @@ namespace SpriteLibrary
TempInformation.Animations.Add(new AnimationInfo());
AI = TempInformation.Animations[CurrentSIAnimation];
tbAmimationSpeed.Text = AI.AnimSpeed.ToString();
tbRotation.Text = AI.RotationDegrees.ToString();
cbStartingImage.Text = AI.ImageName;
cbMirrorH.Checked = AI.MirrorHorizontally;
cbMirrorV.Checked = AI.MirrorVertically;
@ -324,6 +334,8 @@ namespace SpriteLibrary
AI.MirrorHorizontally = cbMirrorH.Checked;
AI.MirrorVertically = cbMirrorV.Checked;
int.TryParse(tbRotation.Text, out AI.RotationDegrees);
int.TryParse(cbAnimation.Text, out AI.AnimationToUse);
int.TryParse(tbNumFrames.Text, out AI.NumFrames);