示例#1
0
    //--> display a list of methods call when the Focus starts
    private void displayAllTheMethods_FocusStarts(GUIStyle style_Yellow_01, GUIStyle style_Blue)
    {
        #region
        //--> Display feedback
        AP_Generic myScript = (AP_Generic)target;

        methodModule.displayMethodList("Methods call when focus player click on the UI Button:",
                                       editorMethods,
                                       methodsList,
                                       myScript.methodsList,
                                       style_Blue,
                                       style_Yellow_01,
                                       "The methods are called in the same order as the list. " +
                                       "\nAll methods must be boolean methods. " +
                                       "\nOther methods will be ignored.");

        #endregion
    }
示例#2
0
    public override void OnInspectorGUI()
    {
        if (SeeInspector.boolValue)                                                             // If true Default Inspector is drawn on screen
        {
            DrawDefaultInspector();
        }

        serializedObject.Update();

        AP_Generic myScript = (AP_Generic)target;

        EditorGUILayout.BeginHorizontal();
        EditorGUILayout.LabelField("See Inspector :", GUILayout.Width(85));
        EditorGUILayout.PropertyField(SeeInspector, new GUIContent(""), GUILayout.Width(30));
        EditorGUILayout.EndHorizontal();

        GUIStyle style_Yellow_01     = new GUIStyle(GUI.skin.box);   style_Yellow_01.normal.background = Tex_01;
        GUIStyle style_Blue          = new GUIStyle(GUI.skin.box);   style_Blue.normal.background = Tex_03;
        GUIStyle style_Purple        = new GUIStyle(GUI.skin.box);   style_Purple.normal.background = Tex_04;
        GUIStyle style_Orange        = new GUIStyle(GUI.skin.box);   style_Orange.normal.background = Tex_05;
        GUIStyle style_Yellow_Strong = new GUIStyle(GUI.skin.box);   style_Yellow_Strong.normal.background = Tex_02;

        /*
         * EditorGUILayout.BeginVertical (style_Yellow_01);
         * displayFeedbackWhenPuzzleIsLocked(style_Yellow_01);
         * EditorGUILayout.EndVertical();
         *
         * EditorGUILayout.BeginVertical(style_Orange);
         * displayVoiceOverWhenPuzzleIsLocked(style_Orange);
         * EditorGUILayout.EndVertical();
         *
         * EditorGUILayout.LabelField("");*/
        displayAllTheMethods_FocusStarts(style_Yellow_01, style_Yellow_01);

        serializedObject.ApplyModifiedProperties();
    }