File tree Expand file tree Collapse file tree 3 files changed +6
-26
lines changed
Expand file tree Collapse file tree 3 files changed +6
-26
lines changed 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/Falki-git/MicroEngineer" ,
8- "version" : " 1.8.0 " ,
8+ "version" : " 1.8.1 " ,
99 "version_check" : " https://raw.githubusercontent.com/Falki-git/MicroEngineer/master/plugin_template/swinfo.json" ,
1010 "ksp2_version" : {
1111 "min" : " 0.2.0" ,
Original file line number Diff line number Diff line change @@ -244,20 +244,10 @@ public TotalLift()
244244
245245 public override void RefreshData ( )
246246 {
247- EntryValue = AeroForces . TotalLift ;
247+ EntryValue = AeroForces . TotalLift * 1000 ;
248248 }
249249
250- public override string ValueDisplay
251- {
252- get
253- {
254- if ( EntryValue == null )
255- return "-" ;
256-
257- double toReturn = ( double ) EntryValue * 1000 ;
258- return String . IsNullOrEmpty ( base . Formatting ) ? toReturn . ToString ( ) : String . Format ( base . Formatting , toReturn ) ;
259- }
260- }
250+ public override string ValueDisplay => base . ValueDisplay ;
261251}
262252
263253public class TotalDrag : FlightEntry
@@ -279,20 +269,10 @@ public TotalDrag()
279269
280270 public override void RefreshData ( )
281271 {
282- EntryValue = AeroForces . TotalDrag ;
272+ EntryValue = AeroForces . TotalDrag * 1000 ;
283273 }
284274
285- public override string ValueDisplay
286- {
287- get
288- {
289- if ( EntryValue == null )
290- return "-" ;
291-
292- double toReturn = ( double ) EntryValue * 1000 ;
293- return String . IsNullOrEmpty ( base . Formatting ) ? toReturn . ToString ( ) : String . Format ( base . Formatting , toReturn ) ;
294- }
295- }
275+ public override string ValueDisplay => base . ValueDisplay ;
296276}
297277
298278public class LiftDivDrag : FlightEntry
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ private static bool CalculateParameters()
5656 from . localPosition = Utility . ActiveVessel . Orbit . Position . localPosition ;
5757 from . currentOrbit = Utility . ActiveVessel . Orbit ;
5858
59- // Inner lookp => ActiveVessel (from)
59+ // Inner loop => ActiveVessel (from)
6060 for ( int j = 0 ; j < numberOfLoopTries ; j ++ )
6161 {
6262 if ( from . referenceBody == to . referenceBody )
You can’t perform that action at this time.
0 commit comments