LoadLogos() private static method

private static LoadLogos ( ) : void
return void
Exemplo n.º 1
0
 private static void ShowWelcomeScreenAtStartup()
 {
     WelcomeScreen.LoadLogos();
     if (WelcomeScreen.s_ShowAtStartup)
     {
         WelcomeScreen.DoShowWelcomeScreen("Startup");
     }
 }
Exemplo n.º 2
0
 public void OnGUI()
 {
     WelcomeScreen.LoadLogos();
     GUILayout.BeginVertical(new GUILayoutOption[0]);
     GUI.Box(new Rect(13f, 8f, (float)WelcomeScreen.styles.unityLogo.image.width, (float)WelcomeScreen.styles.unityLogo.image.height), WelcomeScreen.styles.unityLogo, GUIStyle.none);
     GUILayout.Space(15f);
     GUILayout.BeginHorizontal(new GUILayoutOption[0]);
     GUILayout.Space(120f);
     GUILayout.BeginVertical(new GUILayoutOption[0]);
     GUILayout.Label(WelcomeScreen.styles.mainHeader, new GUILayoutOption[0]);
     GUILayout.Label(WelcomeScreen.styles.mainText, "WordWrappedLabel", new GUILayoutOption[]
     {
         GUILayout.Width(300f)
     });
     GUILayout.EndVertical();
     GUILayout.EndHorizontal();
     GUILayout.Space(8f);
     this.ShowEntry(WelcomeScreen.styles.videoTutLogo, "http://unity3d.com/learn/tutorials/modules/", WelcomeScreen.styles.videoTutHeader, WelcomeScreen.styles.videoTutText, "VideoTutorials");
     this.ShowEntry(WelcomeScreen.styles.unityBasicsLogo, "file:///unity/Manual/UnityBasics.html", WelcomeScreen.styles.unityBasicsHeader, WelcomeScreen.styles.unityBasicsText, "UnityBasics");
     this.ShowEntry(WelcomeScreen.styles.unityAnswersLogo, "http://answers.unity3d.com/", WelcomeScreen.styles.unityAnswersHeader, WelcomeScreen.styles.unityAnswersText, "UnityAnswers");
     this.ShowEntry(WelcomeScreen.styles.unityForumLogo, "http://forum.unity3d.com/", WelcomeScreen.styles.unityForumHeader, WelcomeScreen.styles.unityForumText, "UnityForum");
     this.ShowEntry(WelcomeScreen.styles.assetStoreLogo, "home/?ref=http%3a%2f%2fUnityEditor.unity3d.com%2fWelcomeScreen", WelcomeScreen.styles.assetStoreHeader, WelcomeScreen.styles.assetStoreText, "AssetStore");
     GUILayout.FlexibleSpace();
     GUILayout.BeginHorizontal(new GUILayoutOption[]
     {
         GUILayout.Height(20f)
     });
     GUILayout.FlexibleSpace();
     GUI.changed = false;
     WelcomeScreen.s_ShowAtStartup = GUILayout.Toggle(WelcomeScreen.s_ShowAtStartup, WelcomeScreen.styles.showAtStartupText, new GUILayoutOption[0]);
     if (GUI.changed)
     {
         EditorPrefs.SetInt("ShowWelcomeAtStartup4", (!WelcomeScreen.s_ShowAtStartup) ? 0 : 1);
         if (WelcomeScreen.s_ShowAtStartup)
         {
             Analytics.Track(string.Format("/WelcomeScreen/EnableAtStartup/{0}", WelcomeScreen.s_ShowCount));
         }
         else
         {
             Analytics.Track(string.Format("/WelcomeScreen/DisableAtStartup/{0}", WelcomeScreen.s_ShowCount));
         }
         WelcomeScreen.s_ShowCount = 0;
         EditorPrefs.SetInt("WelcomeScreenShowCount", 0);
     }
     GUILayout.Space(10f);
     GUILayout.EndHorizontal();
     GUILayout.EndVertical();
 }