@@ -44,7 +44,6 @@ public class MicroEngineerMod : BaseSpaceWarpPlugin
4444
4545 private string unitColorHex ;
4646
47-
4847 private int spacingAfterHeader = - 12 ;
4948 private int spacingAfterEntry = - 12 ;
5049 private int spacingAfterSection = 5 ;
@@ -151,9 +150,10 @@ public override void OnInitialized()
151150 delegate { showGUI = ! showGUI ; }
152151 ) ;
153152
154- // load window positions and states from disk, if file exists
153+
155154 InitializeRects ( ) ;
156155 ResetLayout ( ) ;
156+ // load window positions and states from disk, if file exists
157157 LoadLayoutState ( ) ;
158158 }
159159
@@ -732,32 +732,32 @@ private void LoadLayoutState()
732732
733733 if ( state != null )
734734 {
735- showSettings = false ;
736- showVes = state . ShowVes ;
737- showOrb = state . ShowOrb ;
738- showSur = state . ShowSur ;
739- showFlt = state . ShowFlt ;
740- showMan = state . ShowMan ;
741- showTgt = state . ShowTgt ;
742- showStg = state . ShowStg ;
743- popoutSettings = state . IsPopoutSettings ;
744- popoutVes = state . IsPopoutVes ;
745- popoutOrb = state . IsPopoutOrb ;
746- popoutSur = state . IsPopoutSur ;
747- popoutFlt = state . IsPopOutFlt ;
748- popoutMan = state . IsPopOutMan ;
749- popoutTgt = state . IsPopOutTgt ;
750- popoutStg = state . IsPopOutStg ;
751- mainGuiRect . position = state . MainGuiPosition ;
752- settingsGuiRect . position = state . SettingsPosition ;
753- vesGuiRect . position = state . VesPosition ;
754- orbGuiRect . position = state . OrbPosition ;
755- surGuiRect . position = state . SurPosition ;
756- fltGuiRect . position = state . FltPosition ;
757- manGuiRect . position = state . ManPosition ;
758- tgtGuiRect . position = state . TgtPosition ;
759- stgGuiRect . position = state . StgPosition ;
760- }
761- }
735+ showSettings = false ;
736+ showVes = state . ShowVes ;
737+ showOrb = state . ShowOrb ;
738+ showSur = state . ShowSur ;
739+ showFlt = state . ShowFlt ;
740+ showMan = state . ShowMan ;
741+ showTgt = state . ShowTgt ;
742+ showStg = state . ShowStg ;
743+ popoutSettings = state . IsPopoutSettings ;
744+ popoutVes = state . IsPopoutVes ;
745+ popoutOrb = state . IsPopoutOrb ;
746+ popoutSur = state . IsPopoutSur ;
747+ popoutFlt = state . IsPopOutFlt ;
748+ popoutMan = state . IsPopOutMan ;
749+ popoutTgt = state . IsPopOutTgt ;
750+ popoutStg = state . IsPopOutStg ;
751+ mainGuiRect . position = state . MainGuiPosition ;
752+ settingsGuiRect . position = state . SettingsPosition ;
753+ vesGuiRect . position = state . VesPosition ;
754+ orbGuiRect . position = state . OrbPosition ;
755+ surGuiRect . position = state . SurPosition ;
756+ fltGuiRect . position = state . FltPosition ;
757+ manGuiRect . position = state . ManPosition ;
758+ tgtGuiRect . position = state . TgtPosition ;
759+ stgGuiRect . position = state . StgPosition ;
760+ }
761+ }
762762 }
763763}
0 commit comments