Пример #1
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                if (SOFlowEditorUtilities.DrawColourButton("Raise",
                                                           SOFlowEditorSettings
                                                           .AcceptContextColour))
                {
                    _target.Raise();
                }

                if (SOFlowEditorUtilities.DrawColourButton("Search In Scene",
                                                           SOFlowEditorSettings
                                                           .TertiaryLayerColour))
                {
                    SearchEventInScene();
                }

                if (SOFlowEditorUtilities.DrawColourButton("Add To Scene",
                                                           SOFlowEditorSettings
                                                           .TertiaryLayerColour))
                {
                    GameEvent.AddGameEventToScene(_target);
                }
            });

            SOFlowEditorUtilities.DrawSecondaryLayer(DrawEventListeners);
            SOFlowEditorUtilities.DrawTertiaryLayer(DrawEventStack);
            SOFlowEditorUtilities.DrawTertiaryLayer(DrawErrorMessage);
        }
Пример #2
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                using (new EditorGUI.DisabledScope(true))
                {
                    EditorGUILayout.PropertyField(serializedObject.FindProperty("m_Script"));
                }

                serializedObject.DrawProperty(nameof(_target.AlphaOnly));
                serializedObject.DrawProperty(nameof(_target.InvertAlpha));
                serializedObject.DrawProperty(nameof(_target.InvertPercentage));
                serializedObject.DrawProperty(nameof(_target.UseRenderer));

                if (_target.UseRenderer)
                {
                    serializedObject.DrawProperty(nameof(_target.TargetRenderer));
                }
                else
                {
                    serializedObject.DrawProperty(nameof(_target.TargetMaterial));
                }

                serializedObject.DrawProperty(nameof(_target.OverrideColourProperty));

                if (_target.OverrideColourProperty)
                {
                    serializedObject.DrawProperty(nameof(_target.ColourProperty));
                }
            });
        }
Пример #3
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                DrawDefaultInspector();
                SOFlowEditorUtilities.DrawSecondaryLayer(DrawListItems);
            });
        }
Пример #4
0
        private void OnGUI()
        {
            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                DrawHeaderTab();

                SOFlowEditorUtilities
                .DrawScrollViewColourLayer(SOFlowEditorSettings.PrimaryLayerColour,
                                           ref _eventListScrollPosition,
                                           DrawGameEventList);
            });
        }
Пример #5
0
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                serializedObject.DrawProperty("AutoCheckGameInput");

                SOFlowEditorUtilities
                .DrawListComponentProperty(serializedObject,
                                           serializedObject.FindProperty("Input"),
                                           SOFlowEditorSettings.SecondaryLayerColour);
            });
        }
Пример #6
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                GUILayout.Space(5f);
                DrawComparisonFields();

                GUILayout.Space(20f);
                DrawComparisonTest();

                GUILayout.Space(20f);
                DrawEventData();
            });
        }
Пример #7
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                SOFlowEditorUtilities
                .DrawListComponentProperty(serializedObject,
                                           serializedObject
                                           .FindProperty("Comparisons"),
                                           SOFlowEditorSettings.SecondaryLayerColour);

                serializedObject.DrawProperty("Any");
            });

            SOFlowEditorUtilities.DrawPrimaryLayer(DrawEvaluationTest);
        }
Пример #8
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            GUILayout.Space(5f);

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                DrawCurve();

                GUILayout.Space(10f);

                DrawDataFields();

                GUILayout.Space(10f);

                DrawEvaluationArea();
            });
        }
Пример #9
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                serializedObject.DrawProperty("UseLocalPosition");
                serializedObject.DrawProperty("StayActiveForSetDuration");

                if (_target.StayActiveForSetDuration)
                {
                    serializedObject.DrawProperty("ActiveDuration");
                }

                serializedObject.DrawProperty("VelocityMultiplier");

                DrawVelocityFields("Forward");
                DrawVelocityFields("Horizontal");
                DrawVelocityFields("Vertical");
            });
        }
Пример #10
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                DrawSceneSet();
                GUILayout.Space(25f);

                if (_target.SetScenes.Count > 0)
                {
                    GUILayout.Space(10f);
                    DrawLoadSceneSetButton();
                }
            });

            if (GUI.changed)
            {
                EditorUtility.SetDirty(this);
                AssetDatabase.SaveAssets();
            }
        }
Пример #11
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                SOFlowEditorUtilities
                .DrawHorizontalColourLayer(SOFlowEditorSettings.SecondaryLayerColour,
                                           () =>
                {
                    EditorGUILayout
                    .LabelField("Total Pool Objects",
                                SOFlowStyles
                                .Label);

                    EditorGUILayout
                    .LabelField(_target.PoolObjectCount.ToString(),
                                SOFlowStyles
                                .BoldLeftLabel);
                });

                SOFlowEditorUtilities.DrawSecondaryLayer(() =>
                {
                    foreach (
                        IPoolObjectRoot
                        poolObject
                        in _target
                        .PoolObjects)
                    {
                        EditorGUILayout
                        .ObjectField(poolObject.GetObjectInstance(),
                                     typeof
                                     (Object
                                     ),
                                     false);
                    }
                });
            });
        }
Пример #12
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(DrawFaderInspector);
        }
Пример #13
0
        /// <inheritdoc />
        protected override void DrawCustomInspector()
        {
            base.DrawCustomInspector();

            SOFlowEditorUtilities.DrawPrimaryLayer(() =>
            {
                serializedObject.DrawProperty(nameof(_target
                                                     .ListenForCollisionEnter
                                                     ));

                if (_target.ListenForCollisionEnter)
                {
                    serializedObject
                    .DrawProperty(nameof(_target.OnCollisionEnterEvent));
                }

                serializedObject.DrawProperty(nameof(_target
                                                     .ListenForCollisionExit
                                                     ));

                if (_target.ListenForCollisionExit)
                {
                    serializedObject
                    .DrawProperty(nameof(_target.OnCollisionExitEvent));
                }

                serializedObject.DrawProperty(nameof(_target
                                                     .ListenForCollisionStay
                                                     ));

                if (_target.ListenForCollisionStay)
                {
                    serializedObject
                    .DrawProperty(nameof(_target.OnCollisionStayEvent));
                }

                serializedObject
                .DrawProperty(nameof(_target.ListenForTriggerEnter));

                if (_target.ListenForTriggerEnter)
                {
                    serializedObject
                    .DrawProperty(nameof(_target.OnTriggerEnterEvent));
                }

                serializedObject.DrawProperty(nameof(_target.ListenForTriggerExit
                                                     ));

                if (_target.ListenForTriggerExit)
                {
                    serializedObject
                    .DrawProperty(nameof(_target.OnTriggerExitEvent));
                }

                serializedObject.DrawProperty(nameof(_target.ListenForTriggerStay
                                                     ));

                if (_target.ListenForTriggerStay)
                {
                    serializedObject
                    .DrawProperty(nameof(_target.OnTriggerStayEvent));
                }
            });
        }