Exemple #1
0
        void Home()
        {
            if (homePanel == null || !homePanel.isActive)
            {
                return;
            }
            homePanel.Begin();
            if (MenuButton(new Vector2(25, 25), changelogIcon, "What's new?", "See all new features, importand changes and bugfixes in " + PluginInfo.version))
            {
                homePanel.OpenPanel(changeLogPanel, WindowPanel.SlideDiretion.Left);
            }

            if (MenuButton(new Vector2(25, 85), learnIcon, "Get Started", "Learn how to use Dreamteck Splines in a matter of minutes."))
            {
                homePanel.OpenPanel(learnPanel, WindowPanel.SlideDiretion.Left);
            }

            if (MenuButton(new Vector2(25, 145), supportIcon, "Support", "Got a problem or a feature request? Our support is here to help!"))
            {
                homePanel.OpenPanel(supportPanel, WindowPanel.SlideDiretion.Left);
            }

            if (MenuButton(new Vector2(25, 240), rateIcon, "Rate", "If you like Dreamteck Splines, please consider rating it on the Asset Store"))
            {
                Application.OpenURL("http://u3d.as/sLk");
            }


            GUI.Label(new Rect(25, 320, 400, 80), "This window will not show automatically again. If you need it, you can always open it by going to Window->Dreamteck->Splines->Plugin Info", wrapText);

            if (GUI.Button(new Rect(350, 360, 70, 35), "Close"))
            {
                Close();
            }
            Repaint();
            homePanel.End();
        }