public override void GetWindow() { animList = new List <UnsMachineLogic.MachineLogicMainInfo.AnimationMain>(); animStateList = new List <bool>(); bl_AnimToggle = new List <bool>(); if (info.Animations == null) { info.Animations = new UnsMachineLogic.MachineLogicMainInfo.AnimationMain[0]; } if (info.State == null) { info.State = new UnsMachineLogic.MachineState(); } for (int i = 0; i < info.Animations.Length; i++) { animList.Add(info.Animations[i]); info.Animations[i].c_go_Collider = ControlTools.FindObject(info.Animations[i].Collider); info.Animations[i].c_animations = ControlTools.FindObjects <Animation>(info.Animations[i].Anims); bl_AnimToggle.Add(false); } info.State.c_gos_Show = ControlTools.FindObjects(info.State.Show); info.State.c_gos_Hide = ControlTools.FindObjects(info.State.Hide); cc.logic.AnglePos.MainPos = cc.logic.AnglePos.MainPos ?? new CameraPosition(); }
public override void GetWindow() { bl_PlanStates = new List <bool>(); bl_PartStates = new List <List <bool> >(); if (info.Plan == null) { info.Plan = new UnsMachineLogic.MachineLogicMatch.MachineLogicMatchPlan[0]; } if (info.Other == null) { info.Other = new UnsMachineLogic.MachineLogicMatch.MachineLoMatPlPartOther(); } cc.logic.AnglePos.MatchPos = cc.logic.AnglePos.MatchPos ?? new CameraPosition(); cc.logic.AnglePos.MatchPreviewPos = cc.logic.AnglePos.MatchPreviewPos ?? new CameraPosition(); cc.logic.AnglePos.MatchInfoPos = cc.logic.AnglePos.MatchInfoPos ?? new CameraPosition[info.Plan.Length]; for (int i = 0; i < info.Plan.Length; i++) { info.Plan[i].c_go_Transparent = ControlTools.FindObject(info.Plan[i].Transparent); bl_PlanStates.Add(false); List <bool> bYL = new List <bool>(); for (int j = 0; j < info.Plan[i].Parts.Length; j++) { info.Plan[i].Parts[j].c_gos_Entity = ControlTools.FindObjects(info.Plan[i].Parts[j].Entity); bYL.Add(false); } bl_PartStates.Add(bYL); } info.Other.c_gos_Entity = ControlTools.FindObjects(info.Other.Entity); info.Other.c_gos_Transparent = ControlTools.FindObjects(info.Other.Transparent); }
public override void GetWindow() { sizeList = new List <UnsMachineLogic.MachineLogicInfomation.MachineSize.MachineSizeAngle>(); bl_XAngleState = new List <bool>(); bl_YAngleState = new List <List <bool> >(); bl_InfoMessage = new List <bool>(); if (info.SizeInfo == null) { info.SizeInfo = new UnsMachineLogic.MachineLogicInfomation.MachineSize(); } if (info.SizeInfo.AfterChipState == null) { info.SizeInfo.AfterChipState = new UnsMachineLogic.MachineState(); } if (info.SizeInfo.SideChipState == null) { info.SizeInfo.SideChipState = new UnsMachineLogic.MachineState(); } if (info.SizeInfo.SizeAngle == null) { info.SizeInfo.SizeAngle = new UnsMachineLogic.MachineLogicInfomation.MachineSize.MachineSizeAngle[0]; } if (info.ExplodeInfo == null) { info.ExplodeInfo = new UnsMachineLogic.MachineLogicInfomation.MachineExplode(); } if (info.ExplodeInfo.c_animations == null) { info.ExplodeInfo.c_animations = new Animation[0]; } if (info.ExplodeInfo.InfoOther == null) { info.ExplodeInfo.InfoOther = new UnsMachineLogic.MachineState(); } if (info.ExplodeInfo.InfoMessage == null) { info.ExplodeInfo.InfoMessage = new UnsMachineLogic.MachineLogicInfomation.MachineExplode.MachineExplodeMessage[0]; } if (info.ProcessRangeInfo == null) { info.ProcessRangeInfo = new UnsMachineLogic.MachineLogicInfomation.MachineProcessRange(); } if (info.ProcessRangeInfo.State == null) { info.ProcessRangeInfo.State = new UnsMachineLogic.MachineState(); } cc.logic.AnglePos.MainPos = cc.logic.AnglePos.MainPos ?? new CameraPosition(); cc.logic.AnglePos.SizePos = cc.logic.AnglePos.SizePos ?? new CameraPosition(); cc.logic.AnglePos.ExplodePos = cc.logic.AnglePos.ExplodePos ?? new CameraPosition(); cc.logic.AnglePos.ProcessSizePos = cc.logic.AnglePos.ProcessSizePos ?? new CameraPosition(); cc.logic.AnglePos.ExplodeInfoPos = cc.logic.AnglePos.ExplodeInfoPos ?? new CameraPosition[info.ExplodeInfo.InfoMessage.Length]; //初始化SizeInfo for (int i = 0; i < info.SizeInfo.SizeAngle.Length; i++) { sizeList.Add(info.SizeInfo.SizeAngle[i]); bl_XAngleState.Add(false); List <bool> blY = new List <bool>(); for (int j = 0; j < info.SizeInfo.SizeAngle[i].Yaw.Length; j++) { info.SizeInfo.SizeAngle[i].Yaw[j].c_gos_AfterChip = ControlTools.FindObjects(info.SizeInfo.SizeAngle[i].Yaw[j].Models_AfterChip); info.SizeInfo.SizeAngle[i].Yaw[j].c_gos_SideChip = ControlTools.FindObjects(info.SizeInfo.SizeAngle[i].Yaw[j].Models_SideChip); blY.Add(false); } bl_YAngleState.Add(blY); } BoundMachineStateUI(info.SizeInfo.AfterChipState); BoundMachineStateUI(info.SizeInfo.SideChipState); //初始化ExplodeInfo info.ExplodeInfo.c_animations = ControlTools.FindObjects <Animation>(info.ExplodeInfo.Animations); for (int i = 0; i < info.ExplodeInfo.InfoMessage.Length; i++) { info.ExplodeInfo.InfoMessage[i].c_go_Collider = ControlTools.FindObject(info.ExplodeInfo.InfoMessage[i].Collider); info.ExplodeInfo.InfoMessage[i].c_go_Model = ControlTools.FindObject(info.ExplodeInfo.InfoMessage[i].Model); bl_InfoMessage.Add(false); } BoundMachineStateUI(info.ExplodeInfo.InfoOther); //初始化ProcessRangeInfo info.ProcessRangeInfo.c_animations = ControlTools.FindObjects <Animation>(info.ProcessRangeInfo.Animations); BoundMachineStateUI(info.ProcessRangeInfo.State); }