Exemple #1
0
        public override void OnInspectorGUI(ParticleSystem s)
        {
            if (RotationModuleUI.s_Texts == null)
            {
                RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
            }
            EditorGUI.BeginChangeCheck();
            bool flag = ModuleUI.GUIToggle(RotationModuleUI.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 = RotationModuleUI.s_Texts.z;
                base.GUITripleMinMaxCurve(GUIContent.none, RotationModuleUI.s_Texts.x, this.m_X, RotationModuleUI.s_Texts.y, this.m_Y, RotationModuleUI.s_Texts.z, this.m_Z, null);
            }
            else
            {
                this.m_Z.m_DisplayName = RotationModuleUI.s_Texts.rotation;
                ModuleUI.GUIMinMaxCurve(RotationModuleUI.s_Texts.rotation, this.m_Z);
            }
        }
 public override void OnInspectorGUI(ParticleSystem s)
 {
   if (RotationModuleUI.s_Texts == null)
     RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
   EditorGUI.BeginChangeCheck();
   bool flag = ModuleUI.GUIToggle(RotationModuleUI.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 = RotationModuleUI.s_Texts.z;
     this.GUITripleMinMaxCurve(GUIContent.none, RotationModuleUI.s_Texts.x, this.m_X, RotationModuleUI.s_Texts.y, this.m_Y, RotationModuleUI.s_Texts.z, this.m_Z, (SerializedProperty) null);
   }
   else
   {
     this.m_Z.m_DisplayName = RotationModuleUI.s_Texts.rotation;
     ModuleUI.GUIMinMaxCurve(RotationModuleUI.s_Texts.rotation, this.m_Z);
   }
 }
Exemple #3
0
 public override void OnInspectorGUI(ParticleSystem s)
 {
     if (RotationModuleUI.s_Texts == null)
     {
         RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
     }
     ModuleUI.GUIMinMaxCurve(RotationModuleUI.s_Texts.rotation, this.m_Curve);
 }
		public override void OnInspectorGUI(ParticleSystem s)
		{
			if (RotationModuleUI.s_Texts == null)
			{
				RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
			}
			ModuleUI.GUIMinMaxCurve(RotationModuleUI.s_Texts.rotation, this.m_Curve);
		}
Exemple #5
0
 protected override void Init()
 {
     if (this.m_Curve != null)
     {
         return;
     }
     if (RotationModuleUI.s_Texts == null)
     {
         RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
     }
     this.m_Curve = new SerializedMinMaxCurve(this, RotationModuleUI.s_Texts.rotation, ModuleUI.kUseSignedRange);
     this.m_Curve.m_RemapValue = 57.29578f;
 }
		protected override void Init()
		{
			if (this.m_Curve != null)
			{
				return;
			}
			if (RotationModuleUI.s_Texts == null)
			{
				RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
			}
			this.m_Curve = new SerializedMinMaxCurve(this, RotationModuleUI.s_Texts.rotation, ModuleUI.kUseSignedRange);
			this.m_Curve.m_RemapValue = 57.29578f;
		}
 protected override void Init()
 {
   if (this.m_Z != null)
     return;
   if (RotationModuleUI.s_Texts == null)
     RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
   this.m_X = new SerializedMinMaxCurve((ModuleUI) this, RotationModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange);
   this.m_Y = new SerializedMinMaxCurve((ModuleUI) this, RotationModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange);
   this.m_Z = new SerializedMinMaxCurve((ModuleUI) this, RotationModuleUI.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");
 }
 protected override void Init()
 {
     if (this.m_Z == null)
     {
         if (RotationModuleUI.s_Texts == null)
         {
             RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
         }
         this.m_SeparateAxes   = base.GetProperty("separateAxes");
         this.m_X              = new SerializedMinMaxCurve(this, RotationModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange, false, this.m_SeparateAxes.boolValue);
         this.m_Y              = new SerializedMinMaxCurve(this, RotationModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange, false, this.m_SeparateAxes.boolValue);
         this.m_Z              = new SerializedMinMaxCurve(this, RotationModuleUI.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 (RotationModuleUI.s_Texts == null)
            {
                RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
            }
            EditorGUI.BeginChangeCheck();
            bool flag = ModuleUI.GUIToggle(RotationModuleUI.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);
            }
            if (flag)
            {
                this.m_Z.m_DisplayName = RotationModuleUI.s_Texts.z;
                base.GUITripleMinMaxCurve(GUIContent.none, RotationModuleUI.s_Texts.x, this.m_X, RotationModuleUI.s_Texts.y, this.m_Y, RotationModuleUI.s_Texts.z, this.m_Z, null, new GUILayoutOption[0]);
            }
            else
            {
                this.m_Z.m_DisplayName = RotationModuleUI.s_Texts.rotation;
                ModuleUI.GUIMinMaxCurve(RotationModuleUI.s_Texts.rotation, this.m_Z, new GUILayoutOption[0]);
            }
        }
        public override void OnInspectorGUI(ParticleSystem s)
        {
            if (RotationModuleUI.s_Texts == null)
            {
                RotationModuleUI.s_Texts = new RotationModuleUI.Texts();
            }
            EditorGUI.BeginChangeCheck();
            bool flag = ModuleUI.GUIToggle(RotationModuleUI.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();
                }
            }
            SerializedMinMaxCurve arg_9C_0 = this.m_X;
            MinMaxCurveState      state    = this.m_Z.state;

            this.m_Y.state = state;
            arg_9C_0.state = state;
            if (flag)
            {
                this.m_Z.m_DisplayName = RotationModuleUI.s_Texts.z;
                base.GUITripleMinMaxCurve(GUIContent.none, RotationModuleUI.s_Texts.x, this.m_X, RotationModuleUI.s_Texts.y, this.m_Y, RotationModuleUI.s_Texts.z, this.m_Z, null, new GUILayoutOption[0]);
            }
            else
            {
                this.m_Z.m_DisplayName = RotationModuleUI.s_Texts.rotation;
                ModuleUI.GUIMinMaxCurve(RotationModuleUI.s_Texts.rotation, this.m_Z, new GUILayoutOption[0]);
            }
        }