Exemplo n.º 1
0
        private void CameraMove(object sender, SplineEventArgs e)
        {
            // Get the sender as a spline tab
            SplineTab tab = sender as SplineTab;

            // Assure tab isn't null
            if (tab != null)
            {
                // Set cameras position into textboxes
                nudCamX.Value = (decimal)tab.Camera.x;
                nudCamY.Value = (decimal)tab.Camera.y;
            }
        }
Exemplo n.º 2
0
        private void Knot_Insert_Remove(object sender, SplineEventArgs e)
        {
            // Get the sender as a spline tab
            SplineTab tab = sender as SplineTab;

            // Assure tab isn't null
            if (tab != null)
            {
                // Set maximum value of timer to splines segments
                nudTimer.Maximum = tab.Segments();

                // Set timers value
                nudTimer.Value = (decimal)tab.InterpolationTime;
            }
        }