public override void OnInspectorGUI(ParticleSystem s) { if (RotationByVelocityModuleUI.s_Texts == null) { RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); } EditorGUI.BeginChangeCheck(); bool flag = ModuleUI.GUIToggle(RotationByVelocityModuleUI.s_Texts.separateAxes, this.m_SeparateAxes); if (EditorGUI.EndChangeCheck()) { if (flag) { this.m_Z.RemoveCurveFromEditor(); } else { this.m_X.RemoveCurveFromEditor(); this.m_Y.RemoveCurveFromEditor(); this.m_Z.RemoveCurveFromEditor(); } } if (flag) { this.m_Z.m_DisplayName = RotationByVelocityModuleUI.s_Texts.z; base.GUITripleMinMaxCurve(GUIContent.none, RotationByVelocityModuleUI.s_Texts.x, this.m_X, RotationByVelocityModuleUI.s_Texts.y, this.m_Y, RotationByVelocityModuleUI.s_Texts.z, this.m_Z, null); } else { this.m_Z.m_DisplayName = RotationByVelocityModuleUI.s_Texts.rotation; ModuleUI.GUIMinMaxCurve(RotationByVelocityModuleUI.s_Texts.rotation, this.m_Z); } ModuleUI.GUIMinMaxRange(RotationByVelocityModuleUI.s_Texts.velocityRange, this.m_Range); }
public override void OnInspectorGUI(ParticleSystem s) { if (RotationByVelocityModuleUI.s_Texts == null) RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); EditorGUI.BeginChangeCheck(); bool flag = ModuleUI.GUIToggle(RotationByVelocityModuleUI.s_Texts.separateAxes, this.m_SeparateAxes); if (EditorGUI.EndChangeCheck()) { if (flag) { this.m_Z.RemoveCurveFromEditor(); } else { this.m_X.RemoveCurveFromEditor(); this.m_Y.RemoveCurveFromEditor(); this.m_Z.RemoveCurveFromEditor(); } } if (flag) { this.m_Z.m_DisplayName = RotationByVelocityModuleUI.s_Texts.z; this.GUITripleMinMaxCurve(GUIContent.none, RotationByVelocityModuleUI.s_Texts.x, this.m_X, RotationByVelocityModuleUI.s_Texts.y, this.m_Y, RotationByVelocityModuleUI.s_Texts.z, this.m_Z, (SerializedProperty) null); } else { this.m_Z.m_DisplayName = RotationByVelocityModuleUI.s_Texts.rotation; ModuleUI.GUIMinMaxCurve(RotationByVelocityModuleUI.s_Texts.rotation, this.m_Z); } ModuleUI.GUIMinMaxRange(RotationByVelocityModuleUI.s_Texts.velocityRange, this.m_Range); }
public override void OnInspectorGUI(ParticleSystem s) { if (RotationByVelocityModuleUI.s_Texts == null) { RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); } ModuleUI.GUIMinMaxCurve(RotationByVelocityModuleUI.s_Texts.rotation, this.m_Curve); ModuleUI.GUIMinMaxRange(RotationByVelocityModuleUI.s_Texts.velocityRange, this.m_Range); }
public override void OnInspectorGUI(ParticleSystem s) { if (RotationByVelocityModuleUI.s_Texts == null) { RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); } ModuleUI.GUIMinMaxCurve(RotationByVelocityModuleUI.s_Texts.rotation, this.m_Curve); ModuleUI.GUIMinMaxRange(RotationByVelocityModuleUI.s_Texts.velocityRange, this.m_Range); }
protected override void Init() { if (this.m_Curve != null) { return; } if (RotationByVelocityModuleUI.s_Texts == null) { RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); } this.m_Curve = new SerializedMinMaxCurve(this, RotationByVelocityModuleUI.s_Texts.rotation, ModuleUI.kUseSignedRange); this.m_Curve.m_RemapValue = 57.29578f; this.m_Range = base.GetProperty("range"); }
protected override void Init() { if (this.m_Curve != null) { return; } if (RotationByVelocityModuleUI.s_Texts == null) { RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); } this.m_Curve = new SerializedMinMaxCurve(this, RotationByVelocityModuleUI.s_Texts.rotation, ModuleUI.kUseSignedRange); this.m_Curve.m_RemapValue = 57.29578f; this.m_Range = base.GetProperty("range"); }
protected override void Init() { if (this.m_Z != null) return; if (RotationByVelocityModuleUI.s_Texts == null) RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); this.m_X = new SerializedMinMaxCurve((ModuleUI) this, RotationByVelocityModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange); this.m_Y = new SerializedMinMaxCurve((ModuleUI) this, RotationByVelocityModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange); this.m_Z = new SerializedMinMaxCurve((ModuleUI) this, RotationByVelocityModuleUI.s_Texts.z, "curve", ModuleUI.kUseSignedRange); this.m_X.m_RemapValue = 57.29578f; this.m_Y.m_RemapValue = 57.29578f; this.m_Z.m_RemapValue = 57.29578f; this.m_SeparateAxes = this.GetProperty("separateAxes"); this.m_Range = this.GetProperty("range"); }
protected override void Init() { if (this.m_Z == null) { if (RotationByVelocityModuleUI.s_Texts == null) { RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); } this.m_SeparateAxes = base.GetProperty("separateAxes"); this.m_Range = base.GetProperty("range"); this.m_X = new SerializedMinMaxCurve(this, RotationByVelocityModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange, false, this.m_SeparateAxes.boolValue); this.m_Y = new SerializedMinMaxCurve(this, RotationByVelocityModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange, false, this.m_SeparateAxes.boolValue); this.m_Z = new SerializedMinMaxCurve(this, RotationByVelocityModuleUI.s_Texts.z, "curve", ModuleUI.kUseSignedRange); this.m_X.m_RemapValue = 57.29578f; this.m_Y.m_RemapValue = 57.29578f; this.m_Z.m_RemapValue = 57.29578f; } }
public override void OnInspectorGUI(InitialModuleUI initial) { if (RotationByVelocityModuleUI.s_Texts == null) { RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); } EditorGUI.BeginChangeCheck(); bool flag = ModuleUI.GUIToggle(RotationByVelocityModuleUI.s_Texts.separateAxes, this.m_SeparateAxes, new GUILayoutOption[0]); if (EditorGUI.EndChangeCheck()) { if (flag) { this.m_Z.RemoveCurveFromEditor(); } else { this.m_X.RemoveCurveFromEditor(); this.m_Y.RemoveCurveFromEditor(); this.m_Z.RemoveCurveFromEditor(); } } if (!this.m_Z.stateHasMultipleDifferentValues) { this.m_X.SetMinMaxState(this.m_Z.state, flag); this.m_Y.SetMinMaxState(this.m_Z.state, flag); } MinMaxCurveState state = this.m_Z.state; if (flag) { this.m_Z.m_DisplayName = RotationByVelocityModuleUI.s_Texts.z; base.GUITripleMinMaxCurve(GUIContent.none, RotationByVelocityModuleUI.s_Texts.x, this.m_X, RotationByVelocityModuleUI.s_Texts.y, this.m_Y, RotationByVelocityModuleUI.s_Texts.z, this.m_Z, null, new GUILayoutOption[0]); } else { this.m_Z.m_DisplayName = RotationByVelocityModuleUI.s_Texts.rotation; ModuleUI.GUIMinMaxCurve(RotationByVelocityModuleUI.s_Texts.rotation, this.m_Z, new GUILayoutOption[0]); } using (new EditorGUI.DisabledScope(state == MinMaxCurveState.k_Scalar || state == MinMaxCurveState.k_TwoScalars)) { ModuleUI.GUIMinMaxRange(RotationByVelocityModuleUI.s_Texts.velocityRange, this.m_Range, new GUILayoutOption[0]); } }
public override void OnInspectorGUI(ParticleSystem s) { if (RotationByVelocityModuleUI.s_Texts == null) { RotationByVelocityModuleUI.s_Texts = new RotationByVelocityModuleUI.Texts(); } EditorGUI.BeginChangeCheck(); bool flag = ModuleUI.GUIToggle(RotationByVelocityModuleUI.s_Texts.separateAxes, this.m_SeparateAxes); if (EditorGUI.EndChangeCheck()) { if (flag) { this.m_Z.RemoveCurveFromEditor(); } else { this.m_X.RemoveCurveFromEditor(); this.m_Y.RemoveCurveFromEditor(); this.m_Z.RemoveCurveFromEditor(); } } SerializedMinMaxCurve arg_8F_0 = this.m_X; MinMaxCurveState state = this.m_Z.state; this.m_Y.state = state; arg_8F_0.state = state; MinMaxCurveState state2 = this.m_Z.state; if (flag) { this.m_Z.m_DisplayName = RotationByVelocityModuleUI.s_Texts.z; base.GUITripleMinMaxCurve(GUIContent.none, RotationByVelocityModuleUI.s_Texts.x, this.m_X, RotationByVelocityModuleUI.s_Texts.y, this.m_Y, RotationByVelocityModuleUI.s_Texts.z, this.m_Z, null); } else { this.m_Z.m_DisplayName = RotationByVelocityModuleUI.s_Texts.rotation; ModuleUI.GUIMinMaxCurve(RotationByVelocityModuleUI.s_Texts.rotation, this.m_Z); } using (new EditorGUI.DisabledScope(state2 == MinMaxCurveState.k_Scalar || state2 == MinMaxCurveState.k_TwoScalars)) { ModuleUI.GUIMinMaxRange(RotationByVelocityModuleUI.s_Texts.velocityRange, this.m_Range); } }