Removed all RenderingManager usages. (fixes section editor, floating sections and huds)
Removed all RenderingManager usages. (fixes section editor, floating sections and huds)

 Binary files a/Assets/Plugins/KerbalEngineer.Unity.dll and b/Assets/Plugins/KerbalEngineer.Unity.dll differ
--- a/KerbalEngineer/Flight/Sections/SectionEditor.cs
+++ b/KerbalEngineer/Flight/Sections/SectionEditor.cs
@@ -103,7 +103,6 @@
         {
             try
             {
-                RenderingManager.RemoveFromPostDrawQueue(0, this.Draw);
             }
             catch (Exception ex)
             {
@@ -120,7 +119,6 @@
             {
                 this.InitialiseStyles();
                 //ReadoutCategory.Selected = ReadoutCategory.GetCategory("Orbital");
-                RenderingManager.AddToPostDrawQueue(0, this.Draw);
             }
             catch (Exception ex)
             {
@@ -135,8 +133,13 @@
         /// <summary>
         ///     Called to draw the editor when the UI is enabled.
         /// </summary>
-        private void Draw()
-        {
+        private void OnGUI()
+        {
+            if (FlightEngineerCore.IsDisplayable == false)
+            {
+                return;
+            }
+
             this.position = GUILayout.Window(this.GetInstanceID(), this.position, this.Window, "EDIT SECTION - " + this.ParentSection.Name.ToUpper(), this.windowStyle).ClampToScreen();
             this.ParentSection.EditorPositionX = this.position.x;
             this.ParentSection.EditorPositionY = this.position.y;

--- a/KerbalEngineer/Flight/Sections/SectionWindow.cs
+++ b/KerbalEngineer/Flight/Sections/SectionWindow.cs
@@ -116,7 +116,7 @@
         /// <summary>
         ///     Called to draw the floating section window when the UI is enabled.
         /// </summary>
-        private void Draw()
+        private void OnGUI()
         {
             if (this.ParentSection == null || !this.ParentSection.IsVisible || (DisplayStack.Instance.Hidden && !this.ParentSection.IsHud) || !FlightEngineerCore.IsDisplayable)
             {
@@ -165,7 +165,6 @@
         /// </summary>
         private void OnDestroy()
         {
-            RenderingManager.RemoveFromPostDrawQueue(0, this.Draw);
             GuiDisplaySize.OnSizeChanged -= this.OnSizeChanged;
         }
 
@@ -192,7 +191,7 @@
         {
             this.windowId = this.GetHashCode();
             this.InitialiseStyles();
-            RenderingManager.AddToPostDrawQueue(0, this.Draw);
+
             GuiDisplaySize.OnSizeChanged += this.OnSizeChanged;
         }
 

 Binary files a/Output/KerbalEngineer/KerbalEngineer.Unity.dll and b/Output/KerbalEngineer/KerbalEngineer.Unity.dll differ
 Binary files a/Output/KerbalEngineer/KerbalEngineer.dll and b/Output/KerbalEngineer/KerbalEngineer.dll differ