Пример #1
0
 private HistoryValue_ImgProp preValue_ImgProp     = null; //图片属性
 //准备历史记录
 public void ReadyHistory(HistoryType type)
 {
     if (type == HistoryType.Action)
     {
         if (form_MA.form_MTimeLine != null && form_MA.form_MTimeLine.currentTimeLineHoder != null)
         {
             preValue_Action = getHistoryValue_Action();
         }
     }
     if (type == HistoryType.Actor)
     {
         if (form_MA.form_MActorList != null && form_MA.form_MActorList.actorsManager != null)
         {
             preValue_Actor = getHistoryValue_Actor();
         }
     }
     if (type == HistoryType.Clips)
     {
         if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.MClipsManager != null)
         {
             preValue_Clips = getHistoryValue_Clips();
         }
     }
     if (type == HistoryType.Imgs)
     {
         if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.mImgsManager != null)
         {
             preValue_Imgs = getHistoryValue_Imgs();
         }
     }
 }
Пример #2
0
        protected override void updateTo(HistoryValue valueT)
        {
            HistoryValue_Actor value = (HistoryValue_Actor)valueT;

            container.form_MA.form_MActorList.actorsManager = (MActorsManager)value.actorsManager;
            container.form_MA.form_MActorList.updateTreeView_Animation();
            container.form_MA.form_MActorList.setCurrentActorFolder(value.actorFolderID, false, -1);
            container.form_MA.form_MActorList.setCurrentActor(value.actorID, false, -1);
            container.form_MA.form_MActorList.setCurrentAction(value.actionID, false, 2);
            container.form_MA.form_MTimeLine.setTimeLinePos(value.timeLinePos);
            container.form_MA.refreshActionUIs();
        }
Пример #3
0
        //获取记录值_角色
        private HistoryValue_Actor getHistoryValue_Actor()
        {
            HistoryValue_Actor HV_Actor = new HistoryValue_Actor();

            HV_Actor.actorsManager = form_MA.form_MActorList.actorsManager.Clone();
            HV_Actor.timeLinePos   = Form_MTimeLine.timePosition;
            HV_Actor.actorFolderID = -1;
            if (form_MA.form_MActorList.currentActorFolder != null)
            {
                HV_Actor.actorFolderID = form_MA.form_MActorList.currentActorFolder.GetID();
            }
            HV_Actor.actorID = -1;
            if (form_MA.form_MActorList.currentActorElement != null)
            {
                HV_Actor.actorID = form_MA.form_MActorList.currentActorElement.GetID();
            }
            HV_Actor.actionID = -1;
            if (form_MA.form_MActorList.currentActionElement != null)
            {
                HV_Actor.actionID = form_MA.form_MActorList.currentActionElement.GetID();
            }
            return(HV_Actor);
        }
Пример #4
0
 //获取记录值_角色
 private HistoryValue_Actor getHistoryValue_Actor()
 {
     HistoryValue_Actor HV_Actor = new HistoryValue_Actor();
     HV_Actor.actorsManager = form_MA.form_MActorList.actorsManager.Clone();
     HV_Actor.timeLinePos = Form_MTimeLine.timePosition;
     HV_Actor.actorFolderID = -1;
     if (form_MA.form_MActorList.currentActorFolder != null)
     {
         HV_Actor.actorFolderID = form_MA.form_MActorList.currentActorFolder.GetID();
     }
     HV_Actor.actorID = -1;
     if (form_MA.form_MActorList.currentActorElement != null)
     {
         HV_Actor.actorID=form_MA.form_MActorList.currentActorElement.GetID();
     }
     HV_Actor.actionID = -1;
     if (form_MA.form_MActorList.currentActionElement != null)
     {
         HV_Actor.actionID=form_MA.form_MActorList.currentActionElement.GetID();
     }
     return HV_Actor;
 }
Пример #5
0
 private HistoryValue_ImgProp preValue_ImgProp= null;     //图片属性
 //准备历史记录
 public void ReadyHistory(HistoryType type)
 {
     if (type == HistoryType.Action)
     {
         if (form_MA.form_MTimeLine != null && form_MA.form_MTimeLine.currentTimeLineHoder != null)
         {
             preValue_Action = getHistoryValue_Action();
         }
     }
     if (type == HistoryType.Actor)
     {
         if (form_MA.form_MActorList != null && form_MA.form_MActorList.actorsManager != null)
         {
             preValue_Actor = getHistoryValue_Actor();
         }
     }
     if (type == HistoryType.Clips)
     {
         if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.MClipsManager != null)
         {
             preValue_Clips = getHistoryValue_Clips();
         }
     }
     if (type == HistoryType.Imgs)
     {
         if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.mImgsManager != null)
         {
             preValue_Imgs = getHistoryValue_Imgs();
         }
     }
 }