public Form_MAnimPlay(Form_MAnimation form_MAT)
 {
     form_MA = form_MAT;
     InitializeComponent();
     comboBox_PlayMode.SelectedIndex = 0;
     glView.MouseWheel += new MouseEventHandler(pictureBox_Preview_MouseWheel);
 }
Ejemplo n.º 2
0
 public Form_MAnimPlay(Form_MAnimation form_MAT)
 {
     form_MA = form_MAT;
     InitializeComponent();
     comboBox_PlayMode.SelectedIndex = 0;
     glView.MouseWheel += new MouseEventHandler(pictureBox_Preview_MouseWheel);
 }
        private int MouseLeftDownMoved = -1;//这个值用来记录左键按下后是否移动过,-1空状态,0,左键按下,1左键按下后移动。
        public Form_MFrameEdit(Form_MAnimation form_MAT)
        {
            this.form_MA = form_MAT;
            InitializeComponent();
            //滚动条
            hScrollBar_FrameEdit.Maximum = MAX_OFFSET * 2 + 9;
            vScrollBar_FrameEdit.Maximum = MAX_OFFSET * 2 + 9;
            //鼠标资源
            cursor_unitSelect = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_unitSelect.ico"));
            cursor_unitMove = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_unitMove.ico"));
            handCursor = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.hand.ico"));
            transCursors[0] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_rotate.ico"));
            transCursors[1] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_scale0.ico"));
            transCursors[2] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_scale1.ico"));
            transCursors[3] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_scale2.ico"));
            transCursors[4] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_scale3.ico"));
            transCursors[5] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_coner0.ico"));
            transCursors[6] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_coner1.ico"));
            transCursors[7] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_coner2.ico"));
            transCursors[8] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_coner3.ico"));
            //transCursors[9] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_sherk0.ico"));
            //transCursors[10] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_sherk1.ico"));
            //transCursors[11] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_sherk2.ico"));
            //transCursors[12] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_trans_sherk3.ico"));
            transCursors[9] = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursor_unitMoveCenter.ico"));

            glView.MouseWheel += new MouseEventHandler(glView_MouseWheel);
            glView.Cursor = cursor_unitSelect;
        }
 public Form_MConfig(Form_MAnimation form_MAT)
 {
     InitializeComponent();
     form_MA = form_MAT;
     if (checkBox_ShowGrid != null)
     {
         checkBox_ShowGrid.Checked = Consts.showBgGrid;
     }
     if (comboBox_screen != null&&comboBox_screen.Items.Count>0)
     {
         comboBox_screen.Text = (String)comboBox_screen.Items[0];
     }
 }
Ejemplo n.º 5
0
 public Form_MConfig(Form_MAnimation form_MAT)
 {
     InitializeComponent();
     form_MA = form_MAT;
     if (checkBox_ShowGrid != null)
     {
         checkBox_ShowGrid.Checked = Consts.showBgGrid;
     }
     if (comboBox_screen != null && comboBox_screen.Items.Count > 0)
     {
         comboBox_screen.Text = (String)comboBox_screen.Items[0];
     }
 }
 public Form_MActorsList(Form_MAnimation form_MAT)
 {
     InitializeComponent();
     form_MA = form_MAT;
     actorsManager = new MActorsManager(this);
 }
 public void SetParent(MParentNode parent)
 {
     form_MA = (Form_MAnimation)parent;
 }
 public Form_MTimeLine(Form_MAnimation form_MAT)
 {
     form_MA = form_MAT;
     handCursor = new Cursor(this.GetType().Assembly.GetManifestResourceStream("Cyclone.Resources.cursors_move.ico"));
     InitializeComponent();
 }
Ejemplo n.º 9
0
        public void releaseWindowsData()
        {
            if (form_TextsManager != null && !form_TextsManager.IsDisposed)
            {
                form_TextsManager.Close();
                form_TextsManager.Dispose();
                form_TextsManager.releaseRes();
                form_TextsManager = null;
            }
            if (form_MapImagesManager != null && !form_MapImagesManager.IsDisposed)
            {
                form_MapImagesManager.Close();
                form_MapImagesManager.Dispose();
                form_MapImagesManager.releaseRes();
                form_MapImagesManager = null;
            }
            if (form_VarsManager != null && !form_VarsManager.IsDisposed)
            {
                form_VarsManager.Close();
                form_VarsManager.Dispose();
                form_VarsManager.releaseRes();
                form_VarsManager = null;
            }
            if (form_ProptiesManager != null && !form_ProptiesManager.IsDisposed)
            {
                form_ProptiesManager.Close();
                form_ProptiesManager.Dispose();
                form_ProptiesManager = null;
            }
            if (form_MAnimation != null && !form_MAnimation.IsDisposed)
            {
                form_MAnimation.form_MAnimPW.stopPlayPrieviewBox();
                form_MAnimation.form_MFrameEdit.Dispose();
                form_MAnimation.form_MFrameLevel.Dispose();
                form_MAnimation.form_MConfig.Dispose();
                form_MAnimation.form_MCLib.Dispose();
                form_MAnimation.form_MImgsList.Dispose();
                form_MAnimation.form_MTimeLine.Dispose();
                form_MAnimation.Close();
                form_MAnimation.Dispose();
                form_MAnimation = null;
            }
            ArrayList arrayList = new ArrayList();
            int openCount = Application.OpenForms.Count;
            for (int i = 0; i < openCount;i++ )
            {
                arrayList.Add(Application.OpenForms[i]);
            }
            for (int i = 0; i < arrayList.Count; i++)
            {
                Form openForm = (Form)arrayList[i];
                if (!openForm.Equals(this))
                {
                    openForm.Close();
                    openForm.Dispose();
                }
            }

        }
Ejemplo n.º 10
0
        //初始化参数===========================================================
        public void initData(String path)
        {
            path_file = path;
            path_folder = path_file.Substring(0, path_file.LastIndexOf('\\') + 1);

            m_HistoryManager = new UndoManager();
            m_HistoryManager.MaxUndoLevel = 100;
            textsManager = new TextsManager(this);

            mapImagesManager = new MImgsManager(this);
            mapsManager = new MapsManager(this, mapImagesManager);

            varIntManager = new VarsManager(this);
            varStringManager = new VarsManager(this);
            triggerFunctionManager = new FunctionsManager(this);
            contextFunctionManager = new FunctionsManager(this);
            executionFunctionManager = new FunctionsManager(this);
            iDsManager = new VarsManager(this);
            propertyTypesManager = new PropertyTypesManager(this);

            form_MAnimation = new Form_MAnimation(this);
            mapsManager.initAntetype(form_MAnimation.form_MActorList.actorsManager);
            if (Consts.PATH_PROJECT_FILEPATH != null)
            {
                this.Text = Consts.PATH_PROJECT_FILEPATH;
            }
            userDoc.initUserData(path);//读入数据
        }
Ejemplo n.º 11
0
 public Form_MFrameLevel(Form_MAnimation form_MAT)
 {
     InitializeComponent();
     this.form_MA = form_MAT;
     pictureBox_clipsLevel.MouseWheel += new MouseEventHandler(pictureBox_clipsLevel_MouseWheel);
 }
Ejemplo n.º 12
0
 public MA_HistoryManager(Form_MAnimation form_MAT)
     : base()
 {
     form_MA = form_MAT;
 }
Ejemplo n.º 13
0
 public Form_MActorsList(Form_MAnimation form_MAT)
 {
     InitializeComponent();
     form_MA       = form_MAT;
     actorsManager = new MActorsManager(this);
 }
Ejemplo n.º 14
0
 public void SetParent(MParentNode parent)
 {
     form_MA = (Form_MAnimation)parent;
 }
Ejemplo n.º 15
0
 public MA_HistoryManager(Form_MAnimation form_MAT)
     : base()
 {
     form_MA = form_MAT;
 }
 public Form_MFrameLevel(Form_MAnimation form_MAT)
 {
     InitializeComponent();
     this.form_MA = form_MAT;
     pictureBox_clipsLevel.MouseWheel += new MouseEventHandler(pictureBox_clipsLevel_MouseWheel);
 }