Esempio n. 1
0
        private void textBox3_KeyPress(object sender, KeyPressEventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (e.KeyChar == 13 && allowEdit && n != -1)
            {
                try
                {
                    BF2LevelObject lo = BF2Level.objects[n];
                    lo.position.Z = Convert.ToSingle(textBox3.Text);
                    lo.RefreshTransform();
                }
                catch { };
            }
        }
Esempio n. 2
0
        private void trackBar3_Scroll(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n == -1 || !allowEdit)
            {
                return;
            }
            BF2LevelObject lo = BF2Level.objects[n];

            if (lo.type != BF2LevelObject.BF2LOTYPE.StaticObject)
            {
                return;
            }
            lo.rotation.Z = trackBar3.Value / 10f;
            lo.RefreshTransform();
        }