private void StateControl_FilterContextMenu(CodeGenerateSystem.Controls.NodeListContextMenu contextMenu, CodeGenerateSystem.Controls.NodesContainerControl.ContextMenuFilterData filterData) { var ctrlAssist = this.HostNodesContainer.HostControl as Macross.NodesControlAssist; List <string> cachedPosesName = new List <string>(); foreach (var ctrl in ctrlAssist.NodesControl.CtrlNodeList) { if (ctrl is CachedAnimPoseControl) { if (!cachedPosesName.Contains(ctrl.NodeName)) { cachedPosesName.Add(ctrl.NodeName); } } } foreach (var sub in ctrlAssist.SubNodesContainers) { foreach (var ctrl in sub.Value.CtrlNodeList) { if (ctrl is CachedAnimPoseControl) { if (!cachedPosesName.Contains(ctrl.NodeName)) { cachedPosesName.Add(ctrl.NodeName); } } } } var assist = mLinkedNodesContainer.HostControl; assist.NodesControl_FilterContextMenu(contextMenu, filterData); var nodesList = contextMenu.GetNodesList(); nodesList.ClearNodes(); var stateCP = new AnimStateControlConstructionParams() { CSType = HostNodesContainer.CSType, ConstructParam = "", NodeName = "State", }; nodesList.AddNodesFromType(filterData, typeof(CodeDomNode.Animation.AnimStateControl), "State", stateCP, ""); foreach (var cachedPoseName in cachedPosesName) { var getCachedPose = new GetCachedAnimPoseConstructionParams() { CSType = HostNodesContainer.CSType, ConstructParam = "", NodeName = "CachedPose_" + cachedPoseName, }; nodesList.AddNodesFromType(filterData, typeof(GetCachedAnimPoseControl), "CachedAnimPose/" + getCachedPose.NodeName, getCachedPose, ""); } }
private void CustomCondition_FilterContextMenu(CodeGenerateSystem.Controls.NodeListContextMenu contextMenu, CodeGenerateSystem.Controls.NodesContainerControl.ContextMenuFilterData filterData) { var assist = mLinkedNodesContainer.HostControl; assist.NodesControl_FilterContextMenu(contextMenu, filterData); var nodesList = contextMenu.GetNodesList(); var cdvCP = new CodeDomNode.CenterDataValueControl.CenterDataValueControlConstructParam() { CSType = CSParam.CSType, ConstructParam = "", }; cdvCP.CenterDataWarpper.CenterDataName = this.BTCenterDataWarpper.CenterDataName; nodesList.AddNodesFromType(filterData, typeof(CodeDomNode.CenterDataValueControl), "CenterDataValue", cdvCP, ""); }
private void StateControl_FilterContextMenu(CodeGenerateSystem.Controls.NodeListContextMenu contextMenu, CodeGenerateSystem.Controls.NodesContainerControl.ContextMenuFilterData filterData) { //var ctrlAssist = this.HostNodesContainer.HostControl as Macross.NodesControlAssist; //List<string> cachedPosesName = new List<string>(); //foreach (var ctrl in ctrlAssist.NodesControl.CtrlNodeList) //{ // if (ctrl is CachedAnimPoseControl) // { // if (!cachedPosesName.Contains(ctrl.NodeName)) // cachedPosesName.Add(ctrl.NodeName); // } //} //foreach (var sub in ctrlAssist.SubNodesContainers) //{ // foreach (var ctrl in sub.Value.CtrlNodeList) // { // if (ctrl is CachedAnimPoseControl) // { // if (!cachedPosesName.Contains(ctrl.NodeName)) // cachedPosesName.Add(ctrl.NodeName); // } // } //} //var assist = mLinkedNodesContainer.HostControl; //assist.NodesControl_FilterContextMenu(contextMenu, filterData); //var nodesList = contextMenu.GetNodesList(); //nodesList.ClearNodes(); //var stateCP = new AnimStateControlConstructionParams() //{ // CSType = HostNodesContainer.CSType, // ConstructParam = "", // NodeName = "State", //}; //nodesList.AddNodesFromType(filterData, typeof(CodeDomNode.Particle.StructNodeControl), "State", stateCP, ""); //foreach (var cachedPoseName in cachedPosesName) //{ // var getCachedPose = new GetCachedAnimPoseConstructionParams() // { // CSType = HostNodesContainer.CSType, // ConstructParam = "", // NodeName = "CachedPose_" + cachedPoseName, // }; // nodesList.AddNodesFromType(filterData, typeof(GetCachedAnimPoseControl), "CachedAnimPose/" + getCachedPose.NodeName, getCachedPose, ""); //} }
private void TransitionGraphNodesControl_FilterContextMenu(CodeGenerateSystem.Controls.NodeListContextMenu contextMenu, CodeGenerateSystem.Controls.NodesContainerControl.ContextMenuFilterData filterData) { var assist = mLinkedNodesContainer.HostControl; assist.NodesControl_FilterContextMenu(contextMenu, filterData); var nodesList = contextMenu.GetNodesList(); List <AnimAsset> animationNames = new List <AnimAsset>(); foreach (var ctrl in HostNodesContainer.CtrlNodeList) { if (ctrl is AnimationAsset) { var animParam = ctrl.CSParam as AnimationAssetConstructionParams; animationNames.Add(animParam.AnimAsset); } } foreach (var sub in HostNodesContainer.HostControl.SubNodesContainers) { foreach (var ctrl in sub.Value.CtrlNodeList) { if (ctrl is AnimationAsset) { var animParam = ctrl.CSParam as AnimationAssetConstructionParams; animationNames.Add(animParam.AnimAsset); } } } foreach (var animAsset in animationNames) { var tmCP = new AnimationTimeRemainingConstructionParams() { CSType = HostNodesContainer.CSType, ConstructParam = "", NodeName = animAsset.AnimAssetName, AnimAsset = animAsset, }; nodesList.AddNodesFromType(filterData, typeof(AnimationTimeRemainingControl), "AnimationTimeRemaining/" + animAsset.AnimAssetLocationName + "_" + animAsset.AnimAssetName + "_TimeRemaining", tmCP, ""); } }
public void NodesControl_FilterContextMenu(CodeGenerateSystem.Controls.NodeListContextMenu contextMenu, CodeGenerateSystem.Controls.NodesContainerControl.ContextMenuFilterData filterData) { }