Пример #1
0
        protected virtual void OnGUI()
        {
            GUILayout.Space(10);
            GUILayout.Label("Third Person Character Engine", titleGUI);
            GUILayout.Space(10);
            GUILayout.BeginVertical("HelpBox");
            GUILayout.BeginHorizontal();
            GUILayout.Space(5);
            GUILayout.BeginVertical();
            GUILayout.Space(2);
            GUILayout.Label("Project:   " + Info.NAME, labelGUI);
            GUILayout.Space(2);
            GUILayout.Label("Publisher: " + Info.PUBLISHER, labelGUI);
            GUILayout.Space(2);
            GUILayout.Label("Author:    " + Info.AUTHOR, labelGUI);
            GUILayout.Space(2);
            GUILayout.Label("Version:   " + Info.VERSION, labelGUI);
            GUILayout.Space(2);
            GUILayout.Label("Release:   " + Info.RELEASE, labelGUI);
            GUILayout.Space(2);
            GUILayout.Label(Info.COPYRIGHT, labelGUI);
            GUILayout.Space(2);
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            GUILayout.EndVertical();

            GUILayout.Space(7);

            GUILayout.BeginVertical("HelpBox");
            GUILayout.BeginHorizontal();
            GUILayout.Space(5);
            GUILayout.BeginVertical();
            GUILayout.Space(2);
            GUILayout.Label("Support:", labelGUI);
            GUILayout.Space(7);
            GUILayout.BeginHorizontal();
            GUILayout.Label("For get full informations about TPC Engine see - ", labelGUI);
            if (GUILayout.Button("Documentation", linkGUI))
            {
                Documentation.Open();
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            GUILayout.Label("To keep abreast of all the new news, follow us on - ", labelGUI);
            if (GUILayout.Button("Twitter", linkGUI))
            {
                Application.OpenURL("https://twitter.com/InfiniteDawnTS");
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            GUILayout.Label("If you have any questions you can ask them in the - ", labelGUI);
            if (GUILayout.Button("Official Thread", linkGUI))
            {
                Application.OpenURL("https://forum.unity.com/threads/third-person-character-engine-official-thread.545533/");
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            GUILayout.Space(3);
            GUILayout.EndVertical();
        }
 private static void OpenDocumentation()
 {
     Documentation.Open();
 }
Пример #3
0
        /// <summary>
        /// OnGUI is called for rendering and handling GUI events.
        /// If the MonoBehaviour's enabled property is set to false, OnGUI() will not be called.
        /// </summary>
        protected virtual void OnGUI()
        {
            GUILayout.Space(10);
            GUILayout.Box("", new GUILayoutOption[] { GUILayout.ExpandWidth(true), GUILayout.Height(1) });
            GUILayout.Space(5);

            GUILayout.BeginVertical();
            GUILayout.BeginHorizontal();
            GUILayout.Label("Third Person Character Engine\nQuick Start", titleStyle);
            GUILayout.EndHorizontal();
            GUILayout.EndVertical();

            GUILayout.Space(5);
            GUILayout.Box("", new GUILayoutOption[] { GUILayout.ExpandWidth(true), GUILayout.Height(1) });
            GUILayout.Space(5);

            scrollPos = GUILayout.BeginScrollView(scrollPos);
            GUILayout.BeginVertical();
            GUILayout.Space(5);
            GUILayout.BeginHorizontal();
            GUILayout.Space(5);
            GUILayout.BeginVertical();

            GUILayout.BeginHorizontal(EditorStyles.helpBox);
            GUILayout.Space(5);
            GUILayout.BeginVertical();
            ParagrapLabel("1: Tags & Layers");
            DefaultLabel("Check your tags for this go to the tab:", defaultTextStyle);
            DefaultLabel("Edit -> Project Settings -> Tags & Layers", pathsStyle);
            DefaultLabel("Create the missing tags:\n   [Player]", defaultTextStyle);
            DefaultLabel("", defaultTextStyle);
            DefaultLabel("Create the missing layers:\n   [8 - Player]", defaultTextStyle);
            GUILayout.Space(5);
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal(EditorStyles.helpBox);
            GUILayout.Space(5);
            GUILayout.BeginVertical();
            ParagrapLabel("2: Input");
            DefaultLabel("Setup your input settings for this go to the tab:", defaultTextStyle);
            DefaultLabel("Edit -> Project Settings -> Input", pathsStyle);
            DefaultLabel("Add inputs :   [Crouch] [Grab] [Sprint] [Menu]", defaultTextStyle);
            GUILayout.Space(5);
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal(EditorStyles.helpBox);
            GUILayout.Space(5);
            GUILayout.BeginVertical();
            ParagrapLabel("3: TPC Engine Preferences");
            DefaultLabel("Setup preferences for this go to the tab:", defaultTextStyle);
            DefaultLabel("Edit -> Project Settings -> Preferences", pathsStyle);
            DefaultLabel("Make sure that, paths and color filled correctly.\nIf it completely new project, recommended reset settings.\nFor this press on \"Reset\" buttons.", defaultTextStyle);
            GUILayout.Space(5);
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal(EditorStyles.helpBox);
            GUILayout.Space(5);
            GUILayout.BeginVertical();
            ParagrapLabel("Well done!");

            GUILayout.BeginHorizontal();
            DefaultLabel("For get full informations about \"How to use\" TPC Engine see - ", defaultTextStyle);
            if (GUILayout.Button("Documentation", linkStyle))
            {
                Documentation.Open();
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            DefaultLabel("To keep abreast of all the new news, follow us on - ", defaultTextStyle);
            if (GUILayout.Button("Twitter", linkStyle))
            {
                Application.OpenURL("https://twitter.com/InfiniteDawnTS");
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            DefaultLabel("If you have any questions you can ask them in the - ", defaultTextStyle);
            if (GUILayout.Button("Official Thread", linkStyle))
            {
                Application.OpenURL("https://forum.unity.com/threads/third-person-character-engine-official-thread.545533/");
            }
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            if (GUILayout.Button("Сomplete the setup!"))
            {
                this.Close();
            }
            GUILayout.EndHorizontal();

            GUILayout.Space(5);
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();

            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            GUILayout.EndVertical();
            GUILayout.EndScrollView();
        }