ShowHelpPage() private method

private ShowHelpPage ( string page ) : void
page string
return void
Exemplo n.º 1
0
 private void ShowHelpPageOrBrowseURL(string url, string analyticsAction)
 {
     Analytics.Track(string.Format("/WelcomeScreen/OpenURL/{0}/{1}", analyticsAction, WelcomeScreen.s_ShowCount));
     if (url.StartsWith("file"))
     {
         Help.ShowHelpPage(url);
     }
     else if (url.StartsWith("home/"))
     {
         AssetStore.Open(url);
         GUIUtility.ExitGUI();
     }
     else
     {
         Help.BrowseURL(url);
     }
 }
Exemplo n.º 2
0
        void OnHelpBoxGUI(float width)
        {
            GUILayout.BeginHorizontal(Styles.helpBox, GUILayout.ExpandWidth(false), GUILayout.ExpandHeight(true), GUILayout.Width(width));
            {
                // Script Icon
                EditorGUIUtility.SetIconSize(Vector2.one * 32);
                GUILayout.Label(Styles.csScriptIcon, GUILayout.ExpandWidth(false), GUILayout.ExpandHeight(true));
                EditorGUIUtility.SetIconSize(Vector2.zero);

                // Title
                GUILayout.Label("Safe Mode", Styles.title, GUILayout.ExpandWidth(false), GUILayout.ExpandHeight(true));

                GUILayout.Space(10);

                // Message
                EditorGUILayout.LabelField(Styles.messageContent, Styles.message, GUILayout.MaxWidth(Styles.helpBoxWidth), GUILayout.ExpandHeight(true));

                GUILayout.FlexibleSpace();

                GUILayout.BeginVertical(GUILayout.ExpandWidth(false));
                {
                    GUILayout.FlexibleSpace();
                    GUILayout.BeginHorizontal(GUILayout.ExpandWidth(false));
                    {
                        // Learn More
                        if (EditorGUILayout.LinkButton(Styles.learnModeContent, GUILayout.ExpandWidth(false)))
                        {
                            Help.ShowHelpPage(k_SafeModeManualPage);
                        }

                        // Exit Safe mode
                        if (GUILayout.Button(Styles.safeModeExitContent, Styles.forceExitButton, GUILayout.ExpandWidth(false)))
                        {
                            TryForceExitSafeMode();
                        }
                    }
                    GUILayout.EndHorizontal();
                    GUILayout.FlexibleSpace();
                }
                GUILayout.EndVertical();
            }
            GUILayout.EndVertical();
        }