hide the mirror or rotation fields we are not using

This commit is contained in:
Tim Young 2017-09-20 10:55:00 -05:00
parent c15bba62fb
commit 6e08d0d6f5

View File

@ -166,6 +166,18 @@ namespace SpriteLibrary
if (!TCTabPages.TabPages.Contains(tpMirrorRotate)) if (!TCTabPages.TabPages.Contains(tpMirrorRotate))
TCTabPages.TabPages.Add(tpMirrorRotate); TCTabPages.TabPages.Add(tpMirrorRotate);
} }
if(rbMirror.Checked)
{
cbMirrorH.Visible = true;
cbMirrorV.Visible = true;
tbRotation.Visible = false;
}
if (rbRotation.Checked)
{
cbMirrorH.Visible = false;
cbMirrorV.Visible = false;
tbRotation.Visible = true;
}
UpdateChosenAreaLabel(); UpdateChosenAreaLabel();
ResumeLayout(); ResumeLayout();
} }