예제 #1
0
 private void OnGuiInternal()
 {
     GUI.skin       = AppCenterEditorHelper.uiStyle;
     scrollPosition = GUILayout.BeginScrollView(scrollPosition, false, false, GUILayout.Width(window.position.width), GUILayout.Height(window.position.height));
     // Gets a rectangle with size of inner scroll area.
     scrollInnerContainer = EditorGUILayout.BeginHorizontal(GUILayout.ExpandHeight(true), GUILayout.ExpandWidth(true));
     using (new AppCenterGuiFieldHelper.UnityVertical(
                GUILayout.Width(scrollInnerContainer.width),
                GUILayout.MaxWidth(scrollInnerContainer.width),
                GUILayout.Height(scrollInnerContainer.height)))
     {
         GUI.enabled = IsGUIEnabled();
         AppCenterEditorHeader.DrawHeader();
         AppCenterEditorMenu.DrawMenu();
         AppCenterEditorSDKTools.DrawSdkPanel();
         foreach (var package in AppCenterSDKPackage.SupportedPackages)
         {
             AppCenterEditorSDKTools.DisplayPackagePanel(package);
         }
         AppCenterEditorSDKTools.SDKState state = AppCenterEditorSDKTools.GetSDKState();
         if (state == AppCenterEditorSDKTools.SDKState.SDKIsFull || state == AppCenterEditorSDKTools.SDKState.SDKNotFull)
         {
             AppCenterEditorSDKTools.ShowUpgradePanel();
         }
         DisplayEditorExtensionHelpMenu();
     }
     EditorGUILayout.EndHorizontal();
     GUILayout.EndScrollView();
     PruneBlockingRequests();
     Repaint();
 }
예제 #2
0
 public static bool IsGUIEnabled()
 {
     if (blockingRequests.Count > 0 || EditorApplication.isCompiling)
     {
         return(false);
     }
     AppCenterEditorSDKTools.SDKState state = AppCenterEditorSDKTools.GetSDKState();
     return
         (!AppCenterEditorSDKTools.IsUpgrading &&
          state != AppCenterEditorSDKTools.SDKState.SDKNotFullAndInstalling &&
          state != AppCenterEditorSDKTools.SDKState.SDKNotInstalledAndInstalling);
 }
예제 #3
0
 private void OnGuiInternal()
 {
     GUI.skin = AppCenterEditorHelper.uiStyle;
     using (new AppCenterGuiFieldHelper.UnityVertical())
     {
         GUI.enabled = IsGUIEnabled();
         AppCenterEditorHeader.DrawHeader();
         AppCenterEditorMenu.DrawMenu();
         AppCenterEditorSDKTools.DrawSdkPanel();
         foreach (var package in AppCenterSDKPackage.SupportedPackages)
         {
             AppCenterEditorSDKTools.DisplayPackagePanel(package);
         }
         AppCenterEditorSDKTools.SDKState state = AppCenterEditorSDKTools.GetSDKState();
         if (state == AppCenterEditorSDKTools.SDKState.SDKIsFull || state == AppCenterEditorSDKTools.SDKState.SDKNotFull)
         {
             AppCenterEditorSDKTools.ShowUpgradePanel();
         }
         DisplayEditorExtensionHelpMenu();
     }
     PruneBlockingRequests();
     Repaint();
 }