Example #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();
 }
 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();
 }