private void ShowSupportWindowButton()
 {
     //GUI.backgroundColor = new Color(0.96f, 0.25f, 0.47f);
     //if (GUILayout.Button("◄ AVPro Video ►\nHelp & Support"))
     if (GUILayout.Button("Click here for \nHelp & Support"))
     {
         SupportWindow.Init();
     }
     //GUI.backgroundColor = Color.white;
 }
Example #2
0
        public static void Init()
        {
            // Close window if it is already open
            if (_isInit || _isCreated)
            {
                SupportWindow window = (SupportWindow)EditorWindow.GetWindow(typeof(SupportWindow));
                window.Close();
                return;
            }

            _isCreated = true;

            // Get existing open window or if none, make a new one:
            SupportWindow window2 = ScriptableObject.CreateInstance <SupportWindow>();

            if (window2 != null)
            {
                window2.SetupWindow();
            }
        }
        private void OnInspectorGUI_About()
        {
            EditorGUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            _icon = GetIcon(_icon);
            if (_icon != null)
            {
                GUILayout.Label(new GUIContent(_icon));
            }
            GUILayout.FlexibleSpace();
            EditorGUILayout.EndHorizontal();

            GUI.color = Color.yellow;
            EditorHelper.IMGUI.CentreLabel("AVPro Video by RenderHeads Ltd", EditorStyles.boldLabel);
            EditorHelper.IMGUI.CentreLabel("version " + Helper.AVProVideoVersion + " (plugin v" + GetPluginVersion() + ")");
            GUI.color           = Color.white;
            GUI.backgroundColor = Color.white;

            if (_icon != null)
            {
                GUILayout.Space(8f);
                ShowSupportWindowButton();
                GUILayout.Space(8f);
            }

            EditorGUILayout.LabelField("Links", EditorStyles.boldLabel);

            GUILayout.Space(8f);

            EditorGUILayout.LabelField("Documentation");
            if (GUILayout.Button("User Manual, FAQ, Release Notes", GUILayout.ExpandWidth(false)))
            {
                Application.OpenURL(LinkUserManual);
            }
            if (GUILayout.Button("Scripting Class Reference", GUILayout.ExpandWidth(false)))
            {
                Application.OpenURL(LinkScriptingClassReference);
            }

            GUILayout.Space(16f);

            GUILayout.Label("Bugs and Support");
            if (GUILayout.Button("Open Help & Support", GUILayout.ExpandWidth(false)))
            {
                SupportWindow.Init();
            }

            GUILayout.Space(16f);

            GUILayout.Label("Rate and Review (★★★★☆)", GUILayout.ExpandWidth(false));
            if (GUILayout.Button("Asset Store Page", GUILayout.ExpandWidth(false)))
            {
                Application.OpenURL(LinkAssetStorePage);
            }

            GUILayout.Space(16f);

            GUILayout.Label("Community");
            if (GUILayout.Button("Forum Thread", GUILayout.ExpandWidth(false)))
            {
                Application.OpenURL(LinkForumPage);
            }

            GUILayout.Space(16f);

            GUILayout.Label("Homepage", GUILayout.ExpandWidth(false));
            if (GUILayout.Button("Official Website", GUILayout.ExpandWidth(false)))
            {
                Application.OpenURL(LinkPluginWebsite);
            }

            GUILayout.Space(32f);

            EditorGUILayout.LabelField("Credits", EditorStyles.boldLabel);
            GUILayout.Space(8f);

            EditorHelper.IMGUI.CentreLabel("Programming", EditorStyles.boldLabel);
            EditorHelper.IMGUI.CentreLabel("Andrew Griffiths");
            EditorHelper.IMGUI.CentreLabel("Morris Butler");
            EditorHelper.IMGUI.CentreLabel("Ste Butcher");
            EditorHelper.IMGUI.CentreLabel("Richard Turnbull");
            EditorHelper.IMGUI.CentreLabel("Sunrise Wang");
            EditorHelper.IMGUI.CentreLabel("Muano Mainganye");
            EditorHelper.IMGUI.CentreLabel("Shane Marks");
            GUILayout.Space(8f);
            EditorHelper.IMGUI.CentreLabel("Graphics", EditorStyles.boldLabel);
            GUILayout.Space(8f);
            EditorHelper.IMGUI.CentreLabel("Jeff Rusch");
            EditorHelper.IMGUI.CentreLabel("Luke Godward");

            GUILayout.Space(32f);
        }