Exemplo n.º 1
0
        protected override void DrawWidgetFooter(ScriptForgeStyles style)
        {
            GUILayout.BeginHorizontal();
            {
                if (GUILayout.Button(ScriptForgeLabels.documentationButtonLabel, style.fontAwesomeButton))
                {
                    ExtenalLinks.OpenDocumentationPage();
                }

                if (GUILayout.Button(ScriptForgeLabels.issuesButtonLabel, style.fontAwesomeButton))
                {
                    ExtenalLinks.OpenIssuesPage();
                }

                if (GUILayout.Button(ScriptForgeLabels.licenseButtonLabel, style.fontAwesomeButton))
                {
                    ExtenalLinks.OpenLicense();
                }

                if (GUILayout.Button(ScriptForgeLabels.repoButtonLabel, style.fontAwesomeButton))
                {
                    ExtenalLinks.OpenRepoPage();
                }

                if (GUILayout.Button(ScriptForgeLabels.twitterButtonLabel, style.fontAwesomeButton))
                {
                    ExtenalLinks.OpenTwitter();
                }
            }
            GUILayout.EndHorizontal();
        }
Exemplo n.º 2
0
        private static void Initialize()
        {
            var instance = GetInstance();

            if (instance == null)
            {
                Debug.Log("Unable to load or create Scriptable Forge instance");
            }

            if (!EditorPrefs.HasKey(FIRST_LAUNCH_KEY))
            {
                EditorPrefs.SetBool(FIRST_LAUNCH_KEY, true);
                ExtenalLinks.OpenDocumentationPage();
            }
        }