예제 #1
0
        /// <summary>
        /// cTor.
        /// </summary>
        /// <param name="f"></param>
        internal SceneData(sevi f)
        {
            InitializeComponent();
            _f = f;

            _t1.Interval = SpecialEffectsViewerPreferences.that.SceneDataDelay;
            _t1.Tick    += OnTick;

            bool locset = false;
            int  x      = SpecialEffectsViewerPreferences.that.SceneData_x;

            if (x > -1)
            {
                int y = SpecialEffectsViewerPreferences.that.SceneData_y;
                if (y > -1 && util.checklocation(x, y))
                {
                    locset = true;
                    SetDesktopLocation(x, y);
                }
                ClientSize = new Size(SpecialEffectsViewerPreferences.that.SceneData_w,
                                      SpecialEffectsViewerPreferences.that.SceneData_h);
            }

            if (!locset)
            {
                SetDesktopLocation(_f.Left + 20, _f.Top + 20);
            }

            Show(_f);
//			ClearDatatext();	// -> don't do that, the data is incomplete. Press [F5] if you want to
        }                                                       // see scene-data that's still available after the effect finishes rendering.
 /// <summary>
 /// Handler that launches SpecialEffectsViewer from the toolset's
 /// Plugins menu.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void launch(object sender, EventArgs e)
 {
     var f = new sevi();
 }