Example #1
0
        void OnGUI()
        {
            GUI.DrawTexture(new Rect(0, 0, 400, 100), _startWindowIcon);

            var buttonsRect = new Rect(10, 110, WindowWidth - 20, 20);

            if (GUI.Button(buttonsRect, "Homepage"))
            {
                GameFrameworkHelper.ShowHomepage();
            }

            buttonsRect.y += 30;
            if (GUI.Button(buttonsRect, "Documentation"))
            {
                GameFrameworkHelper.ShowDocumentation();
            }

            buttonsRect.y += 30;
            if (GUI.Button(buttonsRect, "Getting Started Tutorials"))
            {
                GameFrameworkHelper.ShowOnlineTutorials();
            }

            buttonsRect.y += 30;
            if (GUI.Button(buttonsRect, "Support Forum"))
            {
                GameFrameworkHelper.ShowSupportForum();
            }

            buttonsRect.y += 30;
            if (GUI.Button(buttonsRect, "Integrations"))
            {
                IntegrationsWindow.ShowWindow();
            }

            buttonsRect.y += 30;
            if (GUI.Button(buttonsRect, "Contact"))
            {
                GameFrameworkHelper.ShowContact();
            }

            buttonsRect.y += 30;
            if (GUI.Button(buttonsRect, "Like it? Rate Us"))
            {
                GameFrameworkHelper.ShowAssetStorePage();
            }

            var newAutoShow = GUI.Toggle(new Rect(10, WindowHeight - 20, WindowWidth - 20, 20), _autoShow, "Show on startup");

            if (newAutoShow != _autoShow)
            {
                _autoShow = newAutoShow;
                EditorPrefs.SetBool(AutoShowPrefsKey, _autoShow);
            }
        }
Example #2
0
 static void ShowContact()
 {
     GameFrameworkHelper.ShowContact();
 }