예제 #1
0
        static void DataBindBlock()
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField(Styles.DataBindLabel, GUILayout.Width(170));
            EditorGUILayout.LabelField(DataBindStatus, GUILayout.Width(200));

            if (ThirdPartySupportMenuOptions.DataBindInstalled)
            {
                if (ThirdPartySupportMenuOptions.CanDisableDataBindSupport())
                {
                    if (GUILayout.Button("Disable"))
                    {
                        ThirdPartySupportMenuOptions.DisableDataBindSupport();
                    }
                }
                else
                {
                    if (GUILayout.Button("Enable"))
                    {
                        ThirdPartySupportMenuOptions.EnableDataBindSupport();
                    }
                }
            }

            EditorGUILayout.EndHorizontal();
        }
예제 #2
0
        static void TMProBlock()
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.LabelField(Styles.TMProLabel, GUILayout.Width(170));
            EditorGUILayout.LabelField(TMProStatus, GUILayout.Width(200));

            if (ThirdPartySupportMenuOptions.TMProInstalled)
            {
                if (ThirdPartySupportMenuOptions.CanDisableTMProSupport())
                {
                    if (GUILayout.Button("Disable"))
                    {
                        ThirdPartySupportMenuOptions.DisableTMProSupport();
                    }

                    if (GUILayout.Button("Import prefabs"))
                    {
                        ThirdPartySupportMenuOptions.ImportTMProPackage();
                    }
                }
                else
                {
                    if (GUILayout.Button("Enable"))
                    {
                        ThirdPartySupportMenuOptions.EnableTMProSupport();
                    }
                }
            }

            EditorGUILayout.EndHorizontal();
        }