//角色文件夹列表部分==================================================================================================
        //(角色文件夹列表)加入新单元
        public void addActorFolderElement()
        {

            String name = "文件夹" + actorsManager.Count();
            SmallDialog_WordEdit txtDialog = new SmallDialog_WordEdit("新建文件夹", name);
            txtDialog.ShowDialog();
            name = txtDialog.getValue();
            form_MA.historyManager.ReadyHistory(HistoryType.Actor);
            MActorFolder element = new MActorFolder(actorsManager);
            element.name = name;
            actorsManager.Add(element);
            updateTreeView_Animation();
            setCurrentActorFolder(element.GetID(), true, 0);
            form_MA.historyManager.AddHistory(HistoryType.Actor);
        }
Exemplo n.º 2
0
        //角色文件夹列表部分==================================================================================================
        //(角色文件夹列表)加入新单元
        public void addActorFolderElement()
        {
            String name = "文件夹" + actorsManager.Count();
            SmallDialog_WordEdit txtDialog = new SmallDialog_WordEdit("新建文件夹", name);

            txtDialog.ShowDialog();
            name = txtDialog.getValue();
            form_MA.historyManager.ReadyHistory(HistoryType.Actor);
            MActorFolder element = new MActorFolder(actorsManager);

            element.name = name;
            actorsManager.Add(element);
            updateTreeView_Animation();
            setCurrentActorFolder(element.GetID(), true, 0);
            form_MA.historyManager.AddHistory(HistoryType.Actor);
        }
 //(角色文件夹列表)设置当前文件夹(foxID代表将要设置焦点的层级)
 public void setCurrentActorFolder(int index, bool updateUI, int foxID)
 {
     //if (index < 0 || index >= actorsManager.Size())
     //{
     //    return;
     //}
     currentActorFolder = actorsManager[index];
     if (currentActorFolder != null && foxID == 0)
     {
         Form_MAnimation.noNodeEvent = true;
         treeView_Animation.SelectedNode = treeView_Animation.Nodes[currentActorFolder.GetID()];
         Form_MAnimation.noNodeEvent = false;
     }
     if (updateUI)
     {
         int id = -1;
         if (currentActorFolder!=null && currentActorFolder.Count() > 0)
         {
             id = 0;
         }
         setCurrentActor(id, true, foxID);
     }
 }
Exemplo n.º 4
0
 //(角色文件夹列表)设置当前文件夹(foxID代表将要设置焦点的层级)
 public void setCurrentActorFolder(int index, bool updateUI, int foxID)
 {
     //if (index < 0 || index >= actorsManager.Size())
     //{
     //    return;
     //}
     currentActorFolder = actorsManager[index];
     if (currentActorFolder != null && foxID == 0)
     {
         Form_MAnimation.noNodeEvent     = true;
         treeView_Animation.SelectedNode = treeView_Animation.Nodes[currentActorFolder.GetID()];
         Form_MAnimation.noNodeEvent     = false;
     }
     if (updateUI)
     {
         int id = -1;
         if (currentActorFolder != null && currentActorFolder.Count() > 0)
         {
             id = 0;
         }
         setCurrentActor(id, true, foxID);
     }
 }
Exemplo n.º 5
0
        //(角色文件夹列表)向上移动单元
        public void moveUpActorFolder()
        {
            if (currentActorFolder == null)
            {
                return;
            }
            int index = currentActorFolder.GetID();

            if (index <= 0)
            {
                return;
            }
            form_MA.historyManager.ReadyHistory(HistoryType.Actor);
            if (!actorsManager.MoveUpElement(index))
            {
                return;
            }
            updateTreeView_Animation();
            index--;
            setCurrentActorFolder(index, true, 0);
            form_MA.historyManager.AddHistory(HistoryType.Actor);
        }