This repository was archived by the owner on Feb 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +27
-19
lines changed
Staging/BepInEx/plugins/micro_engineer Expand file tree Collapse file tree 8 files changed +27
-19
lines changed Original file line number Diff line number Diff line change 99 </PropertyGroup >
1010 <ItemGroup >
1111 <PackageReference Include =" BepInEx.BaseLib" Version =" 5.4.21" Publicize =" true" />
12- <PackageReference Include =" SpaceWarp" Version =" 1.4.0" />
13- <PackageReference Include =" KerbalSpaceProgram2.GameLibs" Version =" 0.1.3 " PrivateAssets =" all" />
12+ <PackageReference Include =" SpaceWarp" Version =" 1.4.0" />
13+ <PackageReference Include =" KerbalSpaceProgram2.GameLibs" Version =" 0.1.4 " PrivateAssets =" all" />
1414 </ItemGroup >
1515 <Target Name =" PostBuild" AfterTargets =" PostBuildEvent" >
1616 <Exec Command =" echo Killing task KSP2_x64.exe
 taskkill /f /fi " pid gt 0" /im KSP2_x64.exe

 echo Copying output .dll
 xcopy /y " $(TargetDir)$(ProjectName).dll" " $(KSP2DIR)\BepInEx\plugins\micro_engineer\"

 echo Copying output .pdb
 xcopy /y " $(TargetDir)$(ProjectName).pdb" " $(KSP2DIR)\BepInEx\plugins\micro_engineer\"

 echo Starting KSP2_x64.exe
 powershell " start-process "" $(KSP2DIR)\KSP2_x64.exe""" " />
Original file line number Diff line number Diff line change @@ -182,15 +182,5 @@ public virtual string UnitDisplay
182182 }
183183
184184 public virtual void RefreshData ( ) { }
185- }
186-
187- public class AltUnit
188- {
189- [ JsonProperty ]
190- public bool IsActive ;
191- [ JsonProperty ]
192- public string Unit ;
193- [ JsonProperty ]
194- public float Factor ;
195- }
185+ }
196186}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public TimeToNode()
133133 public override void RefreshData ( )
134134 {
135135 List < ManeuverNodeData > nodes = Utility . ActiveVessel ? . SimulationObject ? . FindComponent < ManeuverPlanComponent > ( ) ? . GetNodes ( ) ;
136- EntryValue = nodes ? . ElementAtOrDefault ( base . SelectedNodeIndex ) ? . Time - GameManager . Instance . Game . UniverseModel . UniversalTime ;
136+ EntryValue = nodes ? . ElementAtOrDefault ( base . SelectedNodeIndex ) ? . Time - Utility . UniversalTime ;
137137 }
138138 }
139139
Original file line number Diff line number Diff line change @@ -490,6 +490,7 @@ public SoiTransition()
490490 {
491491 Name = "SOI trans." ;
492492 Description = "Shows the amount of time it will take to transition to another Sphere Of Influence." ;
493+ EntryType = EntryType . Time ;
493494 Category = MicroEntryCategory . Orbital ;
494495 IsDefault = false ;
495496 BaseUnit = "s" ;
@@ -498,7 +499,7 @@ public SoiTransition()
498499
499500 public override void RefreshData ( )
500501 {
501- EntryValue = Utility . ActiveVessel . Orbit . UniversalTimeAtSoiEncounter - GameManager . Instance . Game . UniverseModel . UniversalTime ;
502+ EntryValue = Utility . ActiveVessel . Orbit . UniversalTimeAtSoiEncounter - Utility . UniversalTime ;
502503 }
503504 }
504505}
Original file line number Diff line number Diff line change 99
1010namespace MicroMod
1111{
12- [ BepInPlugin ( "com.micrologist.microengineer" , "MicroEngineer" , "1.3.0 " ) ]
12+ [ BepInPlugin ( "com.micrologist.microengineer" , "MicroEngineer" , "1.3.1 " ) ]
1313 [ BepInDependency ( SpaceWarpPlugin . ModGuid , SpaceWarpPlugin . ModVer ) ]
1414 public class MicroEngineerMod : BaseSpaceWarpPlugin
1515 {
Original file line number Diff line number Diff line change 1+ using Newtonsoft . Json ;
2+
3+ namespace MicroMod
4+ {
5+ /// <summary>
6+ /// An alternative unit, activated by double-clicking the entry
7+ /// </summary>
8+ public class AltUnit
9+ {
10+ [ JsonProperty ]
11+ public bool IsActive ;
12+ [ JsonProperty ]
13+ public string Unit ;
14+ [ JsonProperty ]
15+ public float Factor ;
16+ }
17+ }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static class Utility
2323 public static GameStateConfiguration GameState ;
2424 public static MessageCenter MessageCenter ;
2525 public static VesselDeltaVComponent VesselDeltaVComponentOAB ;
26- public static double UniversalTime => GameManager . Instance . Game . UniverseModel . UniversalTime ;
26+ public static double UniversalTime => GameManager . Instance . Game . UniverseModel . UniverseTime ;
2727
2828 /// <summary>
2929 /// Refreshes the ActiveVessel and CurrentManeuver
Original file line number Diff line number Diff line change 55 "name" : " Micro Engineer" ,
66 "description" : " Get in-flight and VAB information about your current vessel" ,
77 "source" : " https://github.com/Micrologist/MicroEngineer" ,
8- "version" : " 1.3.0 " ,
8+ "version" : " 1.3.1 " ,
99 "version_check" : " https://raw.githubusercontent.com/Micrologist/MicroEngineer/main/Staging/BepInEx/plugins/micro_engineer/swinfo.json" ,
1010 "dependencies" : [
1111 {
2424 }
2525 ],
2626 "ksp2_version" : {
27- "min" : " 0.1.0 " ,
27+ "min" : " 0.1.4 " ,
2828 "max" : " *"
2929 }
3030}
You can’t perform that action at this time.
0 commit comments