Beispiel #1
0
        private void OnGUI()
        {
            if (BuildUploadCompletedWindow.s_Styles == null)
            {
                BuildUploadCompletedWindow.s_Styles = new BuildUploadCompletedWindow.Styles();
            }
            if (BuildUploadCompletedWindow.s_Content == null)
            {
                BuildUploadCompletedWindow.s_Content = new BuildUploadCompletedWindow.Content();
            }
            GUILayout.BeginArea(new Rect(5f, 5f, (float)Screen.width - 10f, (float)Screen.height - 10f));
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            Rect rect = GUILayoutUtility.GetRect(150f, 150f);

            if (Event.current.type == EventType.Repaint)
            {
                GUI.DrawTexture(new Rect(rect.x, rect.y, (float)BuildUploadCompletedWindow.s_Content.m_UDNLogo.image.width, (float)BuildUploadCompletedWindow.s_Content.m_UDNLogo.image.height), BuildUploadCompletedWindow.s_Content.m_UDNLogo.image);
            }
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            if (this.m_Success)
            {
                this.OnSuccessGUI();
            }
            else
            {
                this.OnFailureGUI();
            }
            GUILayout.EndVertical();
            GUILayout.EndHorizontal();
            GUILayout.EndArea();
        }
		private void OnGUI()
		{
			if (BuildUploadCompletedWindow.s_Styles == null)
			{
				BuildUploadCompletedWindow.s_Styles = new BuildUploadCompletedWindow.Styles();
			}
			if (BuildUploadCompletedWindow.s_Content == null)
			{
				BuildUploadCompletedWindow.s_Content = new BuildUploadCompletedWindow.Content();
			}
			GUILayout.BeginArea(new Rect(5f, 5f, (float)Screen.width - 10f, (float)Screen.height - 10f));
			GUILayout.BeginHorizontal(new GUILayoutOption[0]);
			Rect rect = GUILayoutUtility.GetRect(150f, 150f);
			if (Event.current.type == EventType.Repaint)
			{
				GUI.DrawTexture(new Rect(rect.x, rect.y, (float)BuildUploadCompletedWindow.s_Content.m_UDNLogo.image.width, (float)BuildUploadCompletedWindow.s_Content.m_UDNLogo.image.height), BuildUploadCompletedWindow.s_Content.m_UDNLogo.image);
			}
			GUILayout.BeginVertical(new GUILayoutOption[0]);
			if (this.m_Success)
			{
				this.OnSuccessGUI();
			}
			else
			{
				this.OnFailureGUI();
			}
			GUILayout.EndVertical();
			GUILayout.EndHorizontal();
			GUILayout.EndArea();
		}