Example #1
0
        private void applyScaleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Vector3 scale = ApplyScale.GetScale(out bool OKed);

            if (OKed)
            {
                string       question     = $"Are you sure you want to scale all assets by a factor of [{scale.X}, {scale.Y}, {scale.Z}]? To undo this, you must scale it by a factor of [{1 / scale.X}, {1 / scale.Y}, {1 / scale.Z}], and precision might be lost in the process, resulting in some objects slighly off from their intented placement.";
                DialogResult dialogResult = MessageBox.Show(question, "Apply Scale", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (dialogResult == DialogResult.Yes)
                {
                    archive.ApplyScale(scale);
                }
            }
        }