public override void OnInspectorGUI(ParticleSystem s)
		{
			if (ForceModuleUI.s_Texts == null)
			{
				ForceModuleUI.s_Texts = new ForceModuleUI.Texts();
			}
			MinMaxCurveState state = this.m_X.state;
			base.GUITripleMinMaxCurve(GUIContent.none, ForceModuleUI.s_Texts.x, this.m_X, ForceModuleUI.s_Texts.y, this.m_Y, ForceModuleUI.s_Texts.z, this.m_Z, this.m_RandomizePerFrame);
			ModuleUI.GUIBoolAsPopup(ForceModuleUI.s_Texts.space, this.m_InWorldSpace, ForceModuleUI.s_Texts.spaces);
			EditorGUI.BeginDisabledGroup(state != MinMaxCurveState.k_TwoScalars && state != MinMaxCurveState.k_TwoCurves);
			ModuleUI.GUIToggle(ForceModuleUI.s_Texts.randomizePerFrame, this.m_RandomizePerFrame);
			EditorGUI.EndDisabledGroup();
		}
        public override void OnInspectorGUI(ParticleSystem s)
        {
            if (ForceModuleUI.s_Texts == null)
            {
                ForceModuleUI.s_Texts = new ForceModuleUI.Texts();
            }
            MinMaxCurveState state = this.m_X.state;

            this.GUITripleMinMaxCurve(GUIContent.none, ForceModuleUI.s_Texts.x, this.m_X, ForceModuleUI.s_Texts.y, this.m_Y, ForceModuleUI.s_Texts.z, this.m_Z, this.m_RandomizePerFrame);
            ModuleUI.GUIBoolAsPopup(ForceModuleUI.s_Texts.space, this.m_InWorldSpace, ForceModuleUI.s_Texts.spaces);
            EditorGUI.BeginDisabledGroup(state != MinMaxCurveState.k_TwoScalars && state != MinMaxCurveState.k_TwoCurves);
            ModuleUI.GUIToggle(ForceModuleUI.s_Texts.randomizePerFrame, this.m_RandomizePerFrame);
            EditorGUI.EndDisabledGroup();
        }
Example #3
0
        public override void OnInspectorGUI(InitialModuleUI initial)
        {
            if (ForceModuleUI.s_Texts == null)
            {
                ForceModuleUI.s_Texts = new ForceModuleUI.Texts();
            }
            MinMaxCurveState state = this.m_X.state;

            base.GUITripleMinMaxCurve(GUIContent.none, ForceModuleUI.s_Texts.x, this.m_X, ForceModuleUI.s_Texts.y, this.m_Y, ForceModuleUI.s_Texts.z, this.m_Z, this.m_RandomizePerFrame, new GUILayoutOption[0]);
            ModuleUI.GUIBoolAsPopup(ForceModuleUI.s_Texts.space, this.m_InWorldSpace, ForceModuleUI.s_Texts.spaces, new GUILayoutOption[0]);
            using (new EditorGUI.DisabledScope(state != MinMaxCurveState.k_TwoScalars && state != MinMaxCurveState.k_TwoCurves))
            {
                ModuleUI.GUIToggle(ForceModuleUI.s_Texts.randomizePerFrame, this.m_RandomizePerFrame, new GUILayoutOption[0]);
            }
        }
Example #4
0
 protected override void Init()
 {
     if (this.m_X == null)
     {
         if (ForceModuleUI.s_Texts == null)
         {
             ForceModuleUI.s_Texts = new ForceModuleUI.Texts();
         }
         this.m_X = new SerializedMinMaxCurve(this, ForceModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange);
         this.m_Y = new SerializedMinMaxCurve(this, ForceModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange);
         this.m_Z = new SerializedMinMaxCurve(this, ForceModuleUI.s_Texts.z, "z", ModuleUI.kUseSignedRange);
         this.m_RandomizePerFrame = base.GetProperty("randomizePerFrame");
         this.m_InWorldSpace      = base.GetProperty("inWorldSpace");
     }
 }
		protected override void Init()
		{
			if (this.m_X != null)
			{
				return;
			}
			if (ForceModuleUI.s_Texts == null)
			{
				ForceModuleUI.s_Texts = new ForceModuleUI.Texts();
			}
			this.m_X = new SerializedMinMaxCurve(this, ForceModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange);
			this.m_Y = new SerializedMinMaxCurve(this, ForceModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange);
			this.m_Z = new SerializedMinMaxCurve(this, ForceModuleUI.s_Texts.z, "z", ModuleUI.kUseSignedRange);
			this.m_RandomizePerFrame = base.GetProperty("randomizePerFrame");
			this.m_InWorldSpace = base.GetProperty("inWorldSpace");
		}