public override void Undo() { VCComponentData data = m_Data.Copy(); data.CreateEntity(true, null); VCEditor.s_Scene.m_IsoData.m_Components.Insert(m_Index, data); }
public override void Set(VCComponentData data) { data.Validate(); m_Data = data.Copy() as VCDecalData; m_PositionInput.Vector = m_Data.m_Position; m_RotationInput.Vector = m_Data.m_Rotation; m_ScaleInput.Vector = new Vector3(m_Data.m_Size, m_Data.m_Size, m_Data.m_Depth); m_MirroredCheck.isChecked = m_Data.m_Mirrored; m_ColorPicker.FinalColor = m_Data.m_Color; if (m_Data.m_ShaderIndex == 0) { m_Shader0Check.isChecked = true; m_Shader1Check.isChecked = false; } else if (m_Data.m_ShaderIndex == 1) { m_Shader1Check.isChecked = true; m_Shader0Check.isChecked = false; } else { m_Shader0Check.isChecked = true; m_Shader1Check.isChecked = false; } }
public void MirrorComponent(VCComponentData cdata) { ComponentOutput[0] = cdata.Copy(); OutputCnt = 1; if (XPlane_Masked) { MirrorComponentOnce(1); } if (YPlane_Masked) { MirrorComponentOnce(2); } if (ZPlane_Masked) { MirrorComponentOnce(4); } if (XYAxis_Masked) { MirrorComponentOnce(3); } if (YZAxis_Masked) { MirrorComponentOnce(6); } if (ZXAxis_Masked) { MirrorComponentOnce(5); } if (Point_Masked) { MirrorComponentOnce(7); } }
public override void Set(VCComponentData data) { data.Validate(); m_Data = data.Copy() as VCFixedPartData; m_PositionInput.Vector = m_Data.m_Position; m_VisibleCheck.isChecked = m_Data.m_Visible; }
public override void Redo() { VCComponentData data = m_Data.Copy(); data.CreateEntity(true, null); VCEditor.s_Scene.m_IsoData.m_Components.Insert(m_Index, data); VCESelectComponent.s_LastCreate = data.m_Entity.GetComponent <VCEComponentTool>(); }
public override void Set(VCComponentData data) { data.Validate(); m_Data = data.Copy() as VCTriphaseFixedPartData; m_PositionInput.Vector = m_Data.m_Position; m_VisibleCheck.isChecked = m_Data.m_Visible; m_Phase0Check.isChecked = (m_Data.m_Phase == 0); m_Phase1Check.isChecked = (m_Data.m_Phase == 1); m_Phase2Check.isChecked = (m_Data.m_Phase == 2); }
public override void Set(VCComponentData data) { data.Validate(); m_Data = data.Copy() as VCObjectLightData; m_PositionInput.Vector = m_Data.m_Position; m_RotationInput.Vector = m_Data.m_Rotation; m_ScaleInput.Vector = m_Data.m_Scale; m_ColorPicker.FinalColor = m_Data.m_Color; m_VisibleCheck.isChecked = m_Data.m_Visible; }
public override void Set(VCComponentData data) { data.Validate(); m_Data = data.Copy() as VCQuadphaseFixedPartData; m_PositionInput.Vector = m_Data.m_Position; m_VisibleCheck.isChecked = m_Data.m_Visible; m_Phase0Check.isChecked = (m_Data.m_Phase & 1) == 0; m_Phase1Check.isChecked = (m_Data.m_Phase & 1) == 1; m_SmallBigCheck.isChecked = (m_Data.m_Phase & 2) == 2; m_MotorCheck.isChecked = (m_Data.m_Phase & 4) != 4; }
public override void Set(VCComponentData data) { data.Validate(); m_Data = data.Copy() as VCFixedHandPartData; m_PositionInput.Vector = m_Data.m_Position; m_RotationInput.Vector = m_Data.m_Rotation; if (m_VisibleCheck) { m_VisibleCheck.isChecked = m_Data.m_Visible; } m_Phase0Check.isChecked = m_Data.m_LeftHand; m_Phase1Check.isChecked = !m_Data.m_LeftHand; }
public override void Set(VCComponentData data) { data.Validate(); m_Data = data.Copy() as VCObjectPivotData; m_PositionInput.Vector = m_Data.m_Position; m_RotationInput.Vector = m_Data.m_Rotation; m_ScaleInput.Vector = m_Data.m_Scale; m_VisibleCheck.isChecked = m_Data.m_Visible; m_AnlgeLable.text = m_Data.m_PivotAng.ToString(); m_AnlgeSlider.sliderValue = Convert.ToSingle(m_Data.m_PivotAng) / 720 + 0.5f; }
public override void Set(VCComponentData data) { data.Validate(); m_Data = data.Copy() as VCGeneralPartData; m_PositionInput.Vector = m_Data.m_Position; m_RotationInput.Vector = m_Data.m_Rotation; m_ArmorPartIndex = m_Data.m_ExtendData; if (m_VisibleCheck) { m_VisibleCheck.isChecked = m_Data.m_Visible; } WhiteCat.VCPArmorPivot m_VCPArmorPivot = m_SelectBrush.GetVCPArmorPivotByIndex(m_Data.m_ExtendData); if (m_VCPArmorPivot) { VCEditor.Instance.m_UI.bonePanel.Show(m_VCPArmorPivot); } }
public VCEDelComponent(int index, VCComponentData data) { m_Index = index; m_Data = data.Copy(); }
public VCEAlterComponent(int index, VCComponentData old_data, VCComponentData new_data) { m_Index = index; m_OldData = old_data.Copy(); m_NewData = new_data.Copy(); }