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d6+Hdp#TvB(512GCd54!-%anHh8U<3$1oov9-fliN4tk?`RY9-ZpU+V!Y_%
zK1#OT5;G4@W3*eSc05!>F)PkA4F&{omaG*YiwkrhNvSm^5-$v5j(cIA=i-8#uZI&J
zowTa7z3PyPQGcc#WPAx^@@Ck%}NCX+FeY%x?mI(*wYV5RCbuoyFlhxYG8K82iD3Kd!3zZ4qwnl&NYiWISFz9u??a$})+|8d|
wa4M@^@%Q?KdD=u7w%d;mj388A?$3YjXUxDyja{zjJ8
zwdr-c=XtAkt@CH?v-dgc)Fcs@1O|iWz@D_q+;GJq*0H?sB#Wz4Zv9XM+NIC<&X22aV(1XwwHbQ9h)qyPf
zNR??E0~0{AWA3)z!-;#qe4N^eh5y7mz8GK#_Pf2Q32ptEKPR!l2d-*68blIhy>u_4}Oe4vj(y*o|JD0STD6t&l
uaTn_z+n#g4emLmY+g0!fnFfx44S;WoVaItEx2?he0000H`G-AXO9-iDF@8VV@#xiu?!`
zf;VcDLMvON=97Urm*XWmuvx6x>+HQ|W*^kM)*E$CeRY@S0k@+&S>zuBpMn155#42V
zQwg5}dUZ1*}W%Q^&Q%|{uNp-HS
zuE9D!t43Z%}9QqiD)J@CR4{z5qMG2rvY^1loaV
z;2JoN>(A7slC=SKtIqCL<_o^8p2lqpz$0KC=m8Faf50=~VRqWgKS^CHuvnbbqK>Pd
zO5I;qHxs)uzoCw*&Ed7E)LRVG_f|Sm~YH4aQZ)UUQyrH>1xmJ
z2w2Y76E41IS0e(y0e^EpbfLfXNMdy+HmYmt>%`!Z@3`;BI8KZ?Mtx(ze)5Quni9AH
X
Date: Mon, 24 Apr 2023 23:38:34 +0200
Subject: [PATCH 33/38] Add automatic scaling of Units used for bigger numbers
---
.../MicroEngineer/Entries/BaseEntry.cs | 86 +++++++++-
.../MicroEngineer/Entries/BodyEntries.cs | 12 +-
.../MicroEngineer/Entries/FlightEntries.cs | 64 +++++---
.../MicroEngineer/Entries/ManeuverEntries.cs | 108 +++++++++----
.../MicroEngineer/Entries/MiscEntries.cs | 28 ++--
.../Entries/OabStageInfoEntries.cs | 26 ++-
.../MicroEngineer/Entries/OrbitalEntries.cs | 92 +++++++----
.../MicroEngineer/Entries/StageInfoEntries.cs | 2 +-
.../MicroEngineer/Entries/SurfaceEntries.cs | 64 +++++---
.../MicroEngineer/Entries/TargetEntries.cs | 148 ++++++++++++------
.../MicroEngineer/Entries/VesselEntries.cs | 84 ++++++----
.../MicroEngineer/Managers/UI.cs | 12 +-
12 files changed, 510 insertions(+), 216 deletions(-)
diff --git a/MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs b/MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs
index 6b2ee22..ccc0ff2 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs
@@ -1,6 +1,4 @@
using Newtonsoft.Json;
-using System.Xml;
-using UnityEngine;
namespace MicroMod
{
@@ -20,7 +18,15 @@ public class BaseEntry
[JsonProperty]
public bool HideWhenNoData;
[JsonProperty]
- public string Unit;
+ public string MiliUnit;
+ [JsonProperty]
+ public string BaseUnit;
+ [JsonProperty]
+ public string KiloUnit;
+ [JsonProperty]
+ public string MegaUnit;
+ [JsonProperty]
+ public string GigaUnit;
[JsonProperty]
public byte NumberOfDecimalDigits;
[JsonProperty("Formatting")]
@@ -43,11 +49,81 @@ public virtual string ValueDisplay
if (EntryValue == null)
return "-";
- return String.IsNullOrEmpty(this.Formatting) ? EntryValue.ToString() : String.Format(Formatting, EntryValue);
+ if (String.IsNullOrEmpty(this.Formatting))
+ return EntryValue.ToString();
+
+ if (!double.TryParse(EntryValue.ToString(), out double d))
+ return EntryValue.ToString(); // This case shouldn't exist, but just to be sure
+
+ if (Math.Abs(d) < 1) // mili
+ {
+ return !String.IsNullOrEmpty(this.MiliUnit) ? String.Format(Formatting, d * 1000) :
+ String.Format(Formatting, d);
+ }
+ else if (Math.Abs(d) < 1000000) // base
+ {
+ return String.Format(Formatting, d);
+ }
+ else if (Math.Abs(d) < 1000000000) // kilo
+ {
+ return !String.IsNullOrEmpty(this.KiloUnit) ? String.Format(Formatting, d / 1000) :
+ String.Format(Formatting, d);
+
+ }
+ else if (Math.Abs(d) < 1000000000000) // mega
+ {
+ return !String.IsNullOrEmpty(this.MegaUnit) ? String.Format(Formatting, d / 1000000) :
+ !String.IsNullOrEmpty(this.KiloUnit) ? String.Format(Formatting, d / 1000) :
+ String.Format(Formatting, d);
+
+ }
+ else // giga
+ {
+ return !String.IsNullOrEmpty(this.GigaUnit) ? String.Format(Formatting, d / 1000000000) :
+ !String.IsNullOrEmpty(this.MegaUnit) ? String.Format(Formatting, d / 1000000) :
+ !String.IsNullOrEmpty(this.KiloUnit) ? String.Format(Formatting, d / 1000) :
+ String.Format(Formatting, d);
+ }
}
}
-
+ public virtual string UnitDisplay
+ {
+ get
+ {
+ if (EntryValue == null)
+ return "";
+
+ if (String.IsNullOrEmpty(this.Formatting))
+ return this.BaseUnit ?? "";
+
+ if (!double.TryParse(EntryValue.ToString(), out double d))
+ return this.BaseUnit ?? ""; // This case shouldn't exist, but just to be sure
+
+ if (d > 0.001 && d < 1) // mili
+ {
+ return this.MiliUnit ?? this.BaseUnit ?? "";
+ }
+ else if (Math.Abs(d) < 1000000) // base
+ {
+ return this.BaseUnit ?? "";
+ }
+ else if (Math.Abs(d) < 1000000000) // kilo
+ {
+ return this.KiloUnit ?? this.BaseUnit ?? "";
+
+ }
+ else if (Math.Abs(d) < 1000000000000) // mega
+ {
+ return this.MegaUnit ?? this.KiloUnit ?? this.BaseUnit ?? "";
+
+ }
+ else // giga
+ {
+ return this.GigaUnit ?? this.MegaUnit ?? this.KiloUnit ?? this.BaseUnit ?? "";
+ }
+ }
+ }
public virtual void RefreshData() { }
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
index c34b147..b5d36df 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
@@ -12,7 +12,7 @@ public Body()
Description = "Shows the body that vessel is currently at.";
Category = MicroEntryCategory.Body;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -32,8 +32,12 @@ public ReferenceBodyConstants_Radius()
Description = "Body's radius.";
Category = MicroEntryCategory.Body;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -53,7 +57,7 @@ public ReferenceBodyConstants_StandardGravitationParameter()
Description = "Product of the gravitational constant G and the mass M of the body.";
Category = MicroEntryCategory.Body;
IsDefault = false;
- Unit = "μ";
+ BaseUnit = "μ";
NumberOfDecimalDigits = 4;
Formatting = "e";
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
index af3dd11..df462a5 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
@@ -12,8 +12,12 @@ public Speed()
Description = "Shows the vessel's total velocity.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "m/s";
- NumberOfDecimalDigits = 1;
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -33,7 +37,7 @@ public MachNumber()
Description = "Shows the ratio of vessel's speed and local speed of sound.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -54,7 +58,7 @@ public GeeForce()
Description = "Measurement of the type of force per unit mass – typically acceleration – that causes a perception of weight, with a g-force of 1 g equal to the conventional value of gravitational acceleration on Earth/Kerbin.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "g";
+ BaseUnit = "g";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -75,7 +79,7 @@ public AngleOfAttack()
Description = "Angle of Attack specifies the angle between the chord line of the wing and the vector representing the relative motion between the aircraft and the atmosphere.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -96,7 +100,7 @@ public SideSlip()
Description = "A slip is an aerodynamic state where an aircraft is moving somewhat sideways as well as forward relative to the oncoming airflow or relative wind.";
Category = MicroEntryCategory.Flight;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -117,7 +121,7 @@ public Heading()
Description = "Heading of a vessel is the compass direction in which the craft's nose is pointed.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -138,7 +142,7 @@ public Pitch_HorizonRelative()
Description = "Lateral axis passes through an aircraft from wingtip to wingtip. Rotation about this axis is called pitch (moving up-down).";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -159,7 +163,7 @@ public Roll_HorizonRelative()
Description = "Longitudinal axis passes through the aircraft from nose to tail. Rotation about this axis is called roll (rotating left-right).";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -180,7 +184,7 @@ public Yaw_HorizonRelative()
Description = "Vertical axis passes through an aircraft from top to bottom. Rotation about this axis is called yaw (moving left-right).";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -201,7 +205,7 @@ public Zenith()
Description = "The zenith is an imaginary point directly above a particular location, on the celestial sphere. \"Above\" means in the vertical direction opposite to the gravity direction.";
Category = MicroEntryCategory.Flight;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -222,8 +226,12 @@ public TotalLift()
Description = "Shows the total lift force produced by the vessel.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "N";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mN";
+ BaseUnit = "N";
+ KiloUnit = "kN";
+ MegaUnit = "MN";
+ GigaUnit = "GN";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -253,8 +261,12 @@ public TotalDrag()
Description = "Shows the total drag force exerted on the vessel.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "N";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mN";
+ BaseUnit = "N";
+ KiloUnit = "kN";
+ MegaUnit = "MN";
+ GigaUnit = "GN";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -284,7 +296,7 @@ public LiftDivDrag()
Description = "Shows the ratio of total lift and drag forces.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -315,7 +327,7 @@ public DragCoefficient()
Description = "Dimensionless quantity that is used to quantify the drag or resistance of an object in a fluid environment, such as air or water.";
Category = MicroEntryCategory.Flight;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -336,7 +348,7 @@ public ExposedArea()
Description = "The surface area that interacts with the working fluid or gas.";
Category = MicroEntryCategory.Flight;
IsDefault = false;
- Unit = null; // TODO
+ BaseUnit = null; // TODO
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -357,8 +369,12 @@ public AtmosphericDensity()
Description = "Shows the atmospheric density.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
- Unit = "g/L";
- NumberOfDecimalDigits = 3;
+ MiliUnit = "mg/L";
+ BaseUnit = "g/L";
+ KiloUnit = "kg/L";
+ MegaUnit = "Mg/L";
+ GigaUnit = "Gg/L";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -378,8 +394,12 @@ public SoundSpeed()
Description = "Distance travelled per unit of time by a sound wave as it propagates through the air.";
Category = MicroEntryCategory.Flight;
IsDefault = false;
- Unit = "m/s";
- NumberOfDecimalDigits = 1;
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
index 0f2f02d..08be5cd 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
@@ -17,7 +17,11 @@ public DeltaVRequired()
Description = "Delta velocity needed to complete the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -43,7 +47,11 @@ public ManeuverPrograde()
Description = "Prograde/Retrograde component of the total change in velocity.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -65,7 +73,11 @@ public ManeuverNormal()
Description = "Normal component of the total change in velocity.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -87,7 +99,11 @@ public ManeuverRadial()
Description = "Radial component of the total change in velocity.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -109,7 +125,7 @@ public TimeToNode()
Description = "Time until vessel reaches the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -139,7 +155,7 @@ public BurnTime()
Description = "Length of time needed to complete the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -169,8 +185,12 @@ public ProjectedAp()
Description = "Projected Apoapsis vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -193,8 +213,12 @@ public ProjectedPe()
Description = "Projected Periapsis vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -217,7 +241,7 @@ public Maneuver_TimeToAp()
Description = "Shows the Time to Apoapsis vessel will have after reaching the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -249,7 +273,7 @@ public Maneuver_TimeToPe()
Description = "Shows the Time to Periapsis vessel will have after reaching the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -281,7 +305,7 @@ public Maneuver_Inclination()
Description = "The inclination of the vessel's orbit after the burn.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -305,7 +329,7 @@ public Maneuver_Eccentricity()
Description = "The eccentricity of the vessel's orbit after the burn.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -329,7 +353,7 @@ public Maneuver_Period()
Description = "The period of the vessel's orbit after the burn.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -361,8 +385,8 @@ public Maneuver_TrueAnomaly()
Description = "True Anomaly vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "°";
- NumberOfDecimalDigits = 1;
+ BaseUnit = "°";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -394,7 +418,7 @@ public Maneuver_MeanAnomaly()
Description = "Mean Anomaly vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -427,7 +451,7 @@ public Maneuver_EccentricAnomaly()
Description = "Eccentric Anomaly vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -460,7 +484,7 @@ public Maneuver_LongitudeOfAscendingNode()
Description = "Longitude of Ascending Node vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -484,7 +508,7 @@ public Maneuver_ArgumentOfPeriapsis()
Description = "Argument of Periapsis vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -508,8 +532,12 @@ public Maneuver_SemiLatusRectum()
Description = "Semi Latus Rectum vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -532,8 +560,12 @@ public Maneuver_SemiMajorAxis()
Description = "Semi Major Axis vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -556,8 +588,12 @@ public Maneuver_SemiMinorAxis()
Description = "Semi Minor Axis vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -580,8 +616,12 @@ public Maneuver_OrbitalEnergy()
Description = "Orbital Energy vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "kJ";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mJ";
+ BaseUnit = "J";
+ KiloUnit = "kJ";
+ MegaUnit = "MJ";
+ GigaUnit = "GJ";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -604,7 +644,7 @@ public Maneuver_ObT()
Description = "Shows orbit time in seconds from the Periapsis when vessel reaches the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -637,7 +677,7 @@ public Maneuver_OrbitPercent()
Description = "Orbit percent vessel will have passed after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "%";
+ BaseUnit = "%";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -661,7 +701,7 @@ public Maneuver_EndUT()
Description = "Universal Time when vessel reaches the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -694,7 +734,7 @@ public Maneuver_UniversalTimeAtClosestApproach()
Description = "Universal Time at the point of closest approach.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -726,7 +766,7 @@ public Maneuver_UniversalTimeAtSoiEncounter()
Description = "Universal Time at the point of transition to another Sphere Of Influence.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/MiscEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/MiscEntries.cs
index 71f5e1a..e519e33 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/MiscEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/MiscEntries.cs
@@ -13,9 +13,9 @@ public Separator()
Description = "It's a separator!";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = "---";
+ BaseUnit = "---";
Formatting = null;
- EntryValue = "---------------";
+ EntryValue = "--------------";
}
}
@@ -27,7 +27,7 @@ public GravityForPos()
Description = "Local gravity vessel is experiencing.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = "ms2";
+ BaseUnit = "ms2";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -48,7 +48,7 @@ public EndUT()
Description = "Universal Time.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -78,7 +78,7 @@ public StartUT()
Description = "Time passed since vessel was launched.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -108,8 +108,8 @@ public LaunchTime()
Description = "Universal Time when vessel was launched.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = "s";
- NumberOfDecimalDigits = 3;
+ BaseUnit = "s";
+ NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -138,7 +138,7 @@ public TimeSinceLaunch()
Description = "Time since the vessel launched.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -168,7 +168,7 @@ public AutopilotStatus_IsEnabled()
Description = "Is autopilot enabled or disabled.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -188,7 +188,7 @@ public AutopilotStatus_Mode()
Description = "Mode vessel's autopilot is using: stability assist, prograde, retrograde, normal, etc.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -208,7 +208,7 @@ public AltimeterMode()
Description = "Mode vessel's altimeter is using: Sea Level or Ground Level.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -228,7 +228,7 @@ public SpeedMode()
Description = "Mode vessel's velocity meter is using: Orbit, Surface or Target.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -248,7 +248,7 @@ public UniversalTimeAtClosestApproach()
Description = "Universal Time at closest approach.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -278,7 +278,7 @@ public UniversalTimeAtSoiEncounter()
Description = "Universal Time at the point of transfer to another sphere of influence.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
index 704b564..ccb1e70 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
@@ -18,7 +18,7 @@ public TotalBurnTime_OAB()
Description = "Shows the total length of burn the vessel can mantain.";
Category = MicroEntryCategory.OAB;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 1;
Formatting = "N";
UseDHMSFormatting = true;
@@ -52,7 +52,11 @@ public TotalDeltaVASL_OAB()
Description = "Shows the vessel's total delta velocity At Sea Level.";
Category = MicroEntryCategory.OAB;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -72,7 +76,11 @@ public TotalDeltaVActual_OAB()
Description = "Shows the vessel's actual total delta velocity (not used in OAB).";
Category = MicroEntryCategory.OAB;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -92,7 +100,11 @@ public TotalDeltaVVac_OAB()
Description = "Shows the vessel's total delta velocity in Vacuum.";
Category = MicroEntryCategory.OAB;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -118,7 +130,7 @@ public Torque()
Description = "Thrust torque that is generated by not having Thrust Vector and Center of Mass aligned. Turn on the Center of Thrust and Center of Mass VAB indicators to get an accurate value.";
Category = MicroEntryCategory.OAB;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -149,7 +161,7 @@ public override void RefreshData()
Vector3d torque = Vector3d.Cross(force, (Vector3d)leverArm);
this.EntryValue = torque.magnitude;
- this.Unit = (double)EntryValue >= 1.0 ? "kNm" : "Nm";
+ this.BaseUnit = (double)EntryValue >= 1.0 ? "kNm" : "Nm";
}
public override string ValueDisplay
@@ -180,7 +192,7 @@ public StageInfo_OAB()
Description = "Holds a list of stage info parameters.";
Category = MicroEntryCategory.OAB;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
index 07474e8..0867eed 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
@@ -14,8 +14,12 @@ public Apoapsis()
Description = "Vessel's apoapsis height relative to the sea level. Apoapsis is the highest point of an orbit.";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -35,8 +39,12 @@ public Periapsis()
Description = "Vessel's periapsis height relative to the sea level. Periapsis is the lowest point of an orbit.";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -56,7 +64,7 @@ public TimeToApoapsis()
Description = "Shows the time until the vessel reaches apoapsis, the highest point of the orbit.";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -85,7 +93,7 @@ public TimeToPeriapsis()
Description = "Shows the time until the vessel reaches periapsis, the lowest point of the orbit.";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -114,7 +122,7 @@ public Inclination()
Description = "Shows the vessel's orbital inclination relative to the equator.";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -135,7 +143,7 @@ public Eccentricity()
Description = "Shows the vessel's orbital eccentricity which is a measure of how much an elliptical orbit is 'squashed'.";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -156,7 +164,7 @@ public Period()
Description = "Shows the amount of time it will take to complete a full orbit.";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -185,7 +193,11 @@ public OrbitalSpeed()
Description = "Shows the vessel's orbital speed";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -206,8 +218,8 @@ public TrueAnomaly()
Description = "Angle between the direction of periapsis and the current position of the object, as seen from the main focus of the ellipse.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "°";
- NumberOfDecimalDigits = 1;
+ BaseUnit = "°";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -236,7 +248,7 @@ public MeanAnomaly()
Description = "Parameter used to describe the position of an object in its orbit around the celestial body.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -266,7 +278,7 @@ public EccentricAnomaly()
Description = "Angle at the center of the orbital ellipse from the semi major axis to the line that passes through the center of the ellipse and the point on the auxiliary circle that is the intersection of the line perpendicular to the semi major axis and passes through the point in the orbit where the vessel is.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -296,7 +308,7 @@ public LongitudeOfAscendingNode()
Description = "Longitude of Ascending Node is an angle from a specified reference direction, called the origin of longitude, to the direction of the ascending node, as measured in a specified reference plane.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -317,7 +329,7 @@ public ArgumentOfPeriapsis()
Description = "Angle from the line of the ascending node on the equatorial plane to the point of periapsis passage.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -338,8 +350,12 @@ public SemiLatusRectum()
Description = "Half the length of the chord through one focus, perpendicular to the major axis.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -359,8 +375,12 @@ public SemiMajorAxis()
Description = "Shows the distance from the center of an orbit to the farthest edge.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -380,8 +400,12 @@ public SemiMinorAxis()
Description = "Shows the distance from the center of an orbit to the nearest edge.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -401,8 +425,12 @@ public OrbitalEnergy()
Description = "Constant sum of two orbiting bodies' mutual potential energy and their total kinetic energy divided by the reduced mass.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "kJ";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mJ";
+ BaseUnit = "J";
+ KiloUnit = "kJ";
+ MegaUnit = "MJ";
+ GigaUnit = "GJ";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -422,8 +450,8 @@ public ObT()
Description = "Shows orbit time in seconds from the Periapsis.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "s";
- NumberOfDecimalDigits = 0;
+ BaseUnit = "s";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -452,7 +480,7 @@ public OrbitPercent()
Description = "Percent of the orbit completed.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "%";
+ BaseUnit = "%";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -473,8 +501,12 @@ public OrbitRadius()
Description = "Length from the center of the ellipse to the object.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -494,7 +526,7 @@ public SoiTransition()
Description = "Shows the amount of time it will take to transition to another Sphere Of Influence.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/StageInfoEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/StageInfoEntries.cs
index f599eb0..0d34bc1 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/StageInfoEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/StageInfoEntries.cs
@@ -12,7 +12,7 @@ public StageInfo()
Description = "Stage Info object, not implemented yet."; // TODO Stage Info display and description
Category = MicroEntryCategory.Stage;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
index 8e0d935..fd1036c 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
@@ -14,8 +14,12 @@ public AltitudeAgl()
Description = "Shows the vessel's altitude above ground Level.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -35,8 +39,12 @@ public AltitudeAsl()
Description = "Shows the vessel's altitude above sea level.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -56,8 +64,12 @@ public AltitudeFromScenery()
Description = "Shows the vessel's altitude above scenery.";
Category = MicroEntryCategory.Surface;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -77,7 +89,11 @@ public VerticalVelocity()
Description = "Shows the vessel's vertical velocity (up/down).";
Category = MicroEntryCategory.Surface;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -98,7 +114,11 @@ public HorizontalVelocity()
Description = "Shows the vessel's horizontal velocity across a celestial body's surface.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -119,7 +139,7 @@ public Situation()
Description = "Shows the vessel's current situation: Landed, Flying, Orbiting, etc.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -148,7 +168,7 @@ public Biome()
Description = "Shows the biome currently below the vessel.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -183,7 +203,7 @@ public Latitude()
public override void RefreshData()
{
EntryValue = Utility.ActiveVessel.Latitude;
- Unit = Utility.ActiveVessel.Latitude < 0 ? "S" : "N";
+ BaseUnit = Utility.ActiveVessel.Latitude < 0 ? "S" : "N";
}
public override string ValueDisplay
@@ -212,7 +232,7 @@ public Longitude()
public override void RefreshData()
{
EntryValue = Utility.ActiveVessel.Longitude;
- Unit = Utility.ActiveVessel.Longitude < 0 ? "W" : "E";
+ BaseUnit = Utility.ActiveVessel.Longitude < 0 ? "W" : "E";
}
public override string ValueDisplay
@@ -235,7 +255,11 @@ public DynamicPressure_kPa()
Description = "Dynamic Pressure (q) is a defined property of a moving flow of gas. It describes how much pressure the airflow is having on the vessel.";
Category = MicroEntryCategory.Surface;
IsDefault = false;
- Unit = "kPa";
+ MiliUnit = "Pa";
+ BaseUnit = "kPa";
+ KiloUnit = "MPa";
+ MegaUnit = "GPa";
+ GigaUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -256,7 +280,11 @@ public StaticPressure_kPa()
Description = "Static pressure is a term used to define the amount of pressure exerted by a fluid that is not moving - ambient pressure.";
Category = MicroEntryCategory.Surface;
IsDefault = false;
- Unit = "kPa";
+ MiliUnit = "Pa";
+ BaseUnit = "kPa";
+ KiloUnit = "MPa";
+ MegaUnit = "GPa";
+ GigaUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -277,8 +305,8 @@ public AtmosphericTemperature()
Description = "Temperature measured outside the vessel. The sensor which detects SAT must be carefully sited to ensure that airflow over it does not affect the indicated temperature.";
Category = MicroEntryCategory.Surface;
IsDefault = false;
- Unit = "K";
- NumberOfDecimalDigits = 0;
+ BaseUnit = "K";
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -298,8 +326,8 @@ public ExternalTemperature()
Description = "Measured by means of a sensor positioned in the airflow, kinetic heating will result, raising the temperature measured above the Static ambient temperature.";
Category = MicroEntryCategory.Surface;
IsDefault = false;
- Unit = "K";
- NumberOfDecimalDigits = 0;
+ BaseUnit = "K";
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
index 4ce1c5a..e3145e7 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
@@ -13,7 +13,7 @@ public Target_Name()
Description = "Target's name.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -33,8 +33,12 @@ public TargetApoapsis()
Description = "Shows the target's apoapsis height relative to the sea level.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -54,8 +58,12 @@ public TargetPeriapsis()
Description = "Shows the target's periapsis height relative to the sea level.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -71,12 +79,16 @@ public class DistanceToTarget : TargetEntry
{
public DistanceToTarget()
{
- Name = "Distance to Target";
+ Name = "Distance to Tgt";
Description = "Shows the current distance between the vessel and the target.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -107,7 +119,11 @@ public RelativeSpeed()
Description = "Shows the relative velocity between the vessel and the target.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -141,7 +157,7 @@ public RelativeInclination()
Description = "Shows the relative inclination between the vessel and the target.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -175,8 +191,12 @@ public Target_AltitudeFromSeaLevel()
Description = "Shows the target's altitude above sea level.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -196,7 +216,7 @@ public Target_Inclination()
Description = "Shows the target's orbital inclination relative to the equator.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -217,7 +237,7 @@ public Target_Eccentricity()
Description = "Shows the target's orbital eccentricity which is a measure of how much an elliptical orbit is 'squashed'.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -238,7 +258,7 @@ public Target_Period()
Description = "Shows the amount of time it will take the target to complete a full orbit.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -267,7 +287,11 @@ public Target_Obtvelocity()
Description = "Shows the target's orbital speed.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -288,8 +312,8 @@ public Target_TrueAnomaly()
Description = "Angle between the direction of periapsis and the current position of the object, as seen from the main focus of the ellipse.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "°";
- NumberOfDecimalDigits = 1;
+ BaseUnit = "°";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -318,7 +342,7 @@ public Target_MeanAnomaly()
Description = "Parameter used to describe the position of the target in its orbit around the celestial body.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -348,7 +372,7 @@ public Target_EccentricAnomaly()
Description = "Angle at the center of the orbital ellipse from the semi major axis to the line that passes through the center of the ellipse and the point on the auxiliary circle that is the intersection of the line perpendicular to the semi major axis and passes through the point in the orbit where the target is.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -378,7 +402,7 @@ public Target_LongitudeOfAscendingNode()
Description = "Shows the target's Longitude Of Ascending Node.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -399,7 +423,7 @@ public Target_ArgumentOfPeriapsis()
Description = "Angle from the line of the ascending node on the equatorial plane to the point of periapsis passage.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -420,8 +444,12 @@ public Target_SemiLatusRectum()
Description = "Half the length of the chord through one focus, perpendicular to the major axis.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -441,8 +469,12 @@ public Target_SemiMajorAxis()
Description = "Shows the distance from the center of an orbit to the farthest edge.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -462,8 +494,12 @@ public Target_SemiMinorAxis()
Description = "Shows the distance from the center of an orbit to the nearest edge.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -483,7 +519,7 @@ public Target_ObT()
Description = "Shows orbit time in seconds from the Periapsis.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 3;
Formatting = "N";
}
@@ -513,8 +549,12 @@ public Target_ReferenceBodyConstants_Radius()
Description = "Radius of the body that target is orbiting.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -534,7 +574,7 @@ public Target_ReferenceBodyConstants_StandardGravitationParameter()
Description = "Product of the gravitational constant G and the mass M of the body target is orbiting.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "μ";
+ BaseUnit = "μ";
NumberOfDecimalDigits = 4;
Formatting = "e";
}
@@ -555,8 +595,12 @@ public Target_OrbitRadius()
Description = "Length from the center of the ellipse to the object.";
Category = MicroEntryCategory.Target;
IsDefault = false;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -576,7 +620,7 @@ public PhaseAngle()
Description = "Angle between your vessel, the reference body and the target. How much \"ahead\" or \"behind\" in phase you are with the target.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -597,7 +641,7 @@ public TransferAngle()
Description = "Phase angle needed for an optimal Hohmann transfer orbit. Use a circular orbit for a more accurate value.";
Category = MicroEntryCategory.Target;
IsDefault = true;
- Unit = "°";
+ BaseUnit = "°";
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -619,8 +663,12 @@ public DistanceAtCloseApproach1()
Category = MicroEntryCategory.Target;
IsDefault = true;
HideWhenNoData = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -643,7 +691,7 @@ public TimeToCloseApproach1()
Category = MicroEntryCategory.Target;
IsDefault = true;
HideWhenNoData = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -675,7 +723,11 @@ public RelativeSpeedAtCloseApproach1()
Category = MicroEntryCategory.Target;
IsDefault = true;
HideWhenNoData = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -699,8 +751,12 @@ public DistanceAtCloseApproach2()
Category = MicroEntryCategory.Target;
IsDefault = false;
HideWhenNoData = true;
- Unit = "m";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm";
+ BaseUnit = "m";
+ KiloUnit = "km";
+ MegaUnit = "Mm";
+ GigaUnit = "Gm";
+ NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -723,7 +779,7 @@ public TimeToCloseApproach2()
Category = MicroEntryCategory.Target;
IsDefault = false;
HideWhenNoData = true;
- Unit = "s";
+ BaseUnit = "s";
Formatting = null;
}
@@ -755,7 +811,11 @@ public RelativeSpeedAtCloseApproach2()
Category = MicroEntryCategory.Target;
IsDefault = false;
HideWhenNoData = true;
- Unit = "m/s";
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
diff --git a/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
index 7558f83..9331b4e 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
@@ -12,7 +12,7 @@ public VesselName()
Description = "Name of the current vessel.";
Category = MicroEntryCategory.Vessel;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -32,8 +32,12 @@ public Mass()
Description = "Total mass of the vessel.";
Category = MicroEntryCategory.Vessel;
IsDefault = true;
- Unit = "kg";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "g";
+ BaseUnit = "kg";
+ KiloUnit = "T";
+ MegaUnit = "kT";
+ GigaUnit = "MT";
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -53,8 +57,12 @@ public TotalDeltaVActual()
Description = "Vessel's total delta velocity.";
Category = MicroEntryCategory.Vessel;
IsDefault = true;
- Unit = "m/s";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -74,8 +82,12 @@ public TotalDeltaVASL()
Description = "Total delta velocity of the vessel At Sea Level.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "m/s";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -96,8 +108,12 @@ public TotalDeltaVVac()
Description = "Total delta velocity of the vessel in vacuum.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "m/s";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "mm/s";
+ BaseUnit = "m/s";
+ KiloUnit = "km/s";
+ MegaUnit = "Mm/s";
+ GigaUnit = "Gm/s";
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -117,7 +133,7 @@ public TotalBurnTime()
Description = "Burn Time vessel can sustain with 100% thrust.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -147,14 +163,18 @@ public StageThrustActual()
Description = "Vessel's actual thrust.";
Category = MicroEntryCategory.Vessel;
IsDefault = true;
- Unit = "N";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "N";
+ BaseUnit = "kN";
+ KiloUnit = "MN";
+ MegaUnit = "GN";
+ GigaUnit = null;
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
public override void RefreshData()
{
- EntryValue = Utility.ActiveVessel.VesselDeltaV?.StageInfo.FirstOrDefault()?.ThrustActual * 1000;
+ EntryValue = Utility.ActiveVessel.VesselDeltaV?.StageInfo.FirstOrDefault()?.ThrustActual;
}
public override string ValueDisplay => base.ValueDisplay;
@@ -168,8 +188,12 @@ public StageThrustASL()
Description = "Vessel's thrust At Sea Level.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "N";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "N";
+ BaseUnit = "kN";
+ KiloUnit = "MN";
+ MegaUnit = "GN";
+ GigaUnit = null;
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -189,8 +213,12 @@ public StageThrustVac()
Description = "Vessel's thrust in vacuum.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "N";
- NumberOfDecimalDigits = 0;
+ MiliUnit = "N";
+ BaseUnit = "kN";
+ KiloUnit = "MN";
+ MegaUnit = "GN";
+ GigaUnit = null;
+ NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -210,7 +238,7 @@ public StageTWRActual()
Description = "Vessel's Thrust to Weight Ratio.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -231,7 +259,7 @@ public StageTWRASL()
Description = "Vessel's Thrust to Weight Ratio At Sea Level.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -252,7 +280,7 @@ public StageTWRVac()
Description = "Vessel's Thrust to Weight Ratio in vacuum.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
}
@@ -273,7 +301,7 @@ public StageISPActual()
Description = "Specific impulse (ISP) is a measure of how efficiently a reaction mass engine creates thrust.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -294,7 +322,7 @@ public StageISPAsl()
Description = "Specific impulse At Sea Level.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -315,7 +343,7 @@ public StageISPVac()
Description = "Specific impulse in vacuum.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "s";
+ BaseUnit = "s";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -336,7 +364,7 @@ public FuelPercentage()
Description = "Vessel's fuel percentage left.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "%";
+ BaseUnit = "%";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -357,7 +385,7 @@ public StageFuelPercentage()
Description = "Stage fuel percentage left.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "%";
+ BaseUnit = "%";
NumberOfDecimalDigits = 1;
Formatting = "N";
}
@@ -378,7 +406,7 @@ public PartsCount()
Description = "Number of parts vessel is constructed of.";
Category = MicroEntryCategory.Vessel;
IsDefault = true;
- Unit = null;
+ BaseUnit = null;
Formatting = null;
}
@@ -398,7 +426,7 @@ public Throttle()
Description = "Vessel's current throttle in %.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = "%";
+ BaseUnit = "%";
NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -419,7 +447,7 @@ public TotalCommandCrewCapacity()
Description = "Crew capacity of all parts.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
- Unit = null;
+ BaseUnit = null;
NumberOfDecimalDigits = 0;
Formatting = "N";
}
diff --git a/MicroEngineerProject/MicroEngineer/Managers/UI.cs b/MicroEngineerProject/MicroEngineer/Managers/UI.cs
index e752a98..95892c0 100644
--- a/MicroEngineerProject/MicroEngineer/Managers/UI.cs
+++ b/MicroEngineerProject/MicroEngineer/Managers/UI.cs
@@ -1,6 +1,5 @@
using BepInEx.Logging;
using KSP.Game;
-using KSP.Sim.DeltaV;
using KSP.Sim.impl;
using KSP.UI.Binding;
using UnityEngine;
@@ -200,11 +199,6 @@ private void DrawSettingsFlightWindow(int id)
settingsWindow.ActiveTheme = Theme.Black;
}
GUILayout.EndHorizontal();
-
- GUILayout.Space(10);
- GUILayout.Label("Other");
- GUILayout.Space(-10);
- GUILayout.Toggle(true, "use large units for large values", Styles.SectionToggleStyle);
GUI.DragWindow(new Rect(0, 0, Screen.width, Screen.height));
}
@@ -331,7 +325,7 @@ private void FillMainGUI(int windowID)
if (window.Entries[i].HideWhenNoData && window.Entries[i].ValueDisplay == "-")
continue;
GUIStyle s = i == 0 ? Styles.EntryBackground_First : i < window.Entries.Count - 1 ? Styles.EntryBackground_Middle : Styles.EntryBackground_Last;
- DrawEntry(s, window.Entries[i].Name, window.Entries[i].ValueDisplay, window.Entries[i].Unit);
+ DrawEntry(s, window.Entries[i].Name, window.Entries[i].ValueDisplay, window.Entries[i].UnitDisplay);
}
window.DrawWindowFooter();
@@ -366,7 +360,7 @@ private void DrawPopoutWindow(int windowIndex)
if (w.Entries[i].HideWhenNoData && w.Entries[i].ValueDisplay == "-")
continue;
GUIStyle s = i == 0 ? Styles.EntryBackground_First : i < w.Entries.Count - 1 ? Styles.EntryBackground_Middle : Styles.EntryBackground_Last;
- DrawEntry(s, w.Entries[i].Name, w.Entries[i].ValueDisplay, w.Entries[i].Unit);
+ DrawEntry(s, w.Entries[i].Name, w.Entries[i].ValueDisplay, w.Entries[i].UnitDisplay);
}
w.DrawWindowFooter();
@@ -631,7 +625,7 @@ private void DrawStageInfoOAB(int windowID)
GUILayout.FlexibleSpace();
GUILayout.Label(torque.ValueDisplay, Styles.ValueLabelStyle);
GUILayout.Space(5);
- GUILayout.Label(torque.Unit, Styles.UnitLabelStyle);
+ GUILayout.Label(torque.UnitDisplay, Styles.UnitLabelStyle);
GUILayout.EndHorizontal();
}
From a2c336d47c76eb494dda0f7bf07893088cc290ae Mon Sep 17 00:00:00 2001
From: Falki-git <72734856+Falki-git@users.noreply.github.com>
Date: Tue, 25 Apr 2023 01:39:38 +0200
Subject: [PATCH 34/38] Add themes to edit window, OAB stage info hardcode gray
theme
---
.../MicroEngineer/Managers/MessageManager.cs | 1 +
.../MicroEngineer/Managers/UI.cs | 57 ++++++++++---------
.../MicroEngineer/Windows/StageWindow.cs | 2 +-
3 files changed, 33 insertions(+), 27 deletions(-)
diff --git a/MicroEngineerProject/MicroEngineer/Managers/MessageManager.cs b/MicroEngineerProject/MicroEngineer/Managers/MessageManager.cs
index 5e7d397..f9661c8 100644
--- a/MicroEngineerProject/MicroEngineer/Managers/MessageManager.cs
+++ b/MicroEngineerProject/MicroEngineer/Managers/MessageManager.cs
@@ -88,6 +88,7 @@ private void GameStateEntered(MessageCenterMessage obj)
_ui.ShowGuiOAB = Windows.FindAll(w => w is EntryWindow).Cast().ToList().Find(w => w.MainWindow == MainWindow.StageInfoOAB).IsEditorActive;
_ui.CelestialBodies.GetBodies();
_ui.CelestialBodySelectionStageIndex = -1;
+ Styles.SetActiveTheme(Theme.Gray); // TODO implement other themes in OAB
}
}
}
diff --git a/MicroEngineerProject/MicroEngineer/Managers/UI.cs b/MicroEngineerProject/MicroEngineer/Managers/UI.cs
index 95892c0..4e32584 100644
--- a/MicroEngineerProject/MicroEngineer/Managers/UI.cs
+++ b/MicroEngineerProject/MicroEngineer/Managers/UI.cs
@@ -486,35 +486,38 @@ private void DrawEditWindow(int windowIndex)
GUILayout.EndHorizontal();
var entries = editableWindows[_selectedWindowId].Entries.ToList();
- foreach (var (entry, index) in entries.Select((entry, index) => (entry, index)))
+ for (int i = 0; i < entries.Count; i++)
{
- GUILayout.BeginHorizontal();
- GUILayout.Label(entry.Name, Styles.NameLabelStyle);
- GUI.enabled = entry.NumberOfDecimalDigits < 5;
- if (entry.Formatting != null && GUILayout.Button(Styles.IncreaseDecimalDigitsTexture, Styles.OneCharacterBtnStyle))
+ GUIStyle backgroundStyle = i == 0 ? Styles.EntryBackground_First : i < entries.Count - 1 ? Styles.EntryBackground_Middle : Styles.EntryBackground_Last;
+
+ GUILayout.BeginHorizontal(backgroundStyle);
+
+ GUILayout.Label(entries[i].Name, Styles.NameLabelStyle);
+ GUI.enabled = entries[i].NumberOfDecimalDigits < 5;
+ if (entries[i].Formatting != null && GUILayout.Button(Styles.IncreaseDecimalDigitsTexture, Styles.OneCharacterBtnStyle))
{
- entry.NumberOfDecimalDigits++;
+ entries[i].NumberOfDecimalDigits++;
}
- GUI.enabled = entry.NumberOfDecimalDigits > 0;
- if (entry.Formatting != null && GUILayout.Button(Styles.DecreaseDecimalDigitsTexture, Styles.OneCharacterBtnStyle))
+ GUI.enabled = entries[i].NumberOfDecimalDigits > 0;
+ if (entries[i].Formatting != null && GUILayout.Button(Styles.DecreaseDecimalDigitsTexture, Styles.OneCharacterBtnStyle))
{
- entry.NumberOfDecimalDigits--;
+ entries[i].NumberOfDecimalDigits--;
}
- GUI.enabled = index > 0;
+ GUI.enabled = i > 0;
if (GUILayout.Button("↑", Styles.OneCharacterBtnStyle))
{
- editableWindows[_selectedWindowId].MoveEntryUp(index);
+ editableWindows[_selectedWindowId].MoveEntryUp(i);
}
- GUI.enabled = index < editableWindows[_selectedWindowId].Entries.Count - 1;
+ GUI.enabled = i < editableWindows[_selectedWindowId].Entries.Count - 1;
if (GUILayout.Button("↓", Styles.OneCharacterBtnStyle))
{
- editableWindows[_selectedWindowId].MoveEntryDown(index);
+ editableWindows[_selectedWindowId].MoveEntryDown(i);
}
GUI.enabled = true;
if (GUILayout.Button("X", Styles.OneCharacterBtnStyle))
- editableWindows[_selectedWindowId].RemoveEntry(index);
+ editableWindows[_selectedWindowId].RemoveEntry(i);
GUILayout.EndHorizontal();
- GUILayout.Space(Styles.NegativeSpacingAfterEntry);
+ GUILayout.Space(-4);
}
#endregion
@@ -546,35 +549,37 @@ private void DrawEditWindow(int windowIndex)
}
GUILayout.EndHorizontal();
- foreach (var (entry, index) in entriesByCategory.Select((entry, index) => (entry, index)))
+ for (int i = 0; i < entriesByCategory.Count; i++)
{
- GUILayout.BeginHorizontal();
- GUILayout.Label(entry.Name, Styles.NameLabelStyle);
+ GUIStyle backgroundStyle = i == 0 ? Styles.EntryBackground_First : i < entriesByCategory.Count - 1 ? Styles.EntryBackground_Middle : Styles.EntryBackground_Last;
+
+ GUILayout.BeginHorizontal(backgroundStyle);
+ GUILayout.Label(entriesByCategory[i].Name, Styles.NameLabelStyle);
if (GUILayout.Button("?", Styles.OneCharacterBtnStyle))
{
if (!_showTooltip.condition)
- _showTooltip = (true, index);
+ _showTooltip = (true, i);
else
{
- if (_showTooltip.index != index)
- _showTooltip = (true, index);
+ if (_showTooltip.index != i)
+ _showTooltip = (true, i);
else
- _showTooltip = (false, index);
+ _showTooltip = (false, i);
}
}
if (GUILayout.Button("+", Styles.OneCharacterBtnStyle))
{
- editableWindows[_selectedWindowId].AddEntry(entry);
+ editableWindows[_selectedWindowId].AddEntry(entriesByCategory[i]);
}
GUILayout.EndHorizontal();
- if (_showTooltip.condition && _showTooltip.index == index)
+ if (_showTooltip.condition && _showTooltip.index == i)
{
GUILayout.BeginHorizontal();
- GUILayout.Label(entry.Description, Styles.BlueLabelStyle);
+ GUILayout.Label(entriesByCategory[i].Description, Styles.BlueLabelStyle);
GUILayout.EndHorizontal();
}
- GUILayout.Space(Styles.NegativeSpacingAfterEntry);
+ GUILayout.Space(Styles.NegativeSpacingAfterEntry + 7);
}
GUILayout.Space(10);
#endregion
diff --git a/MicroEngineerProject/MicroEngineer/Windows/StageWindow.cs b/MicroEngineerProject/MicroEngineer/Windows/StageWindow.cs
index 004a653..4d6cb09 100644
--- a/MicroEngineerProject/MicroEngineer/Windows/StageWindow.cs
+++ b/MicroEngineerProject/MicroEngineer/Windows/StageWindow.cs
@@ -60,7 +60,7 @@ private void DrawStages(int id)
DeltaVStageInfo stageInfo = stages[i];
if (stageInfo.DeltaVinVac > 0.0001 || stageInfo.DeltaVatASL > 0.0001)
{
- GUIStyle style = stageBeingDrawn < numberOfNonEmptyStagesToDraw - 1 ? Styles.EntryBackground_Middle : Styles.EntryBackground_Last;
+ GUIStyle style = stageBeingDrawn++ < numberOfNonEmptyStagesToDraw - 1 ? Styles.EntryBackground_Middle : Styles.EntryBackground_Last;
int stageNum = stageCount - stageInfo.Stage;
DrawStageEntry(style, stageNum, stageInfo, twrFormatString);
}
From 78957e9b95a02fae57e08a52bb9dbe09bb3f0864 Mon Sep 17 00:00:00 2001
From: Falki-git <72734856+Falki-git@users.noreply.github.com>
Date: Wed, 26 Apr 2023 00:22:58 +0200
Subject: [PATCH 35/38] Final tweaks
---
MicroEngineerProject/MicroEngineer.sln | 8 ++++----
.../MicroEngineer/Entries/OrbitalEntries.cs | 2 +-
.../MicroEngineer/Entries/SurfaceEntries.cs | 2 +-
.../MicroEngineer/Entries/TargetEntries.cs | 4 ++--
.../MicroEngineer/Entries/VesselEntries.cs | 4 ++--
MicroEngineerProject/MicroEngineer/Utilities/Styles.cs | 6 ++++--
Staging/BepInEx/plugins/micro_engineer/swinfo.json | 3 ++-
7 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/MicroEngineerProject/MicroEngineer.sln b/MicroEngineerProject/MicroEngineer.sln
index 1333d5b..4d3a884 100644
--- a/MicroEngineerProject/MicroEngineer.sln
+++ b/MicroEngineerProject/MicroEngineer.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.31605.320
+# Visual Studio Version 17
+VisualStudioVersion = 17.5.33530.505
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MicroEngineer", "MicroEngineer.csproj", "{2CD77478-E170-4D5C-91CA-0ABB24A30E5A}"
EndProject
@@ -11,8 +11,8 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {2CD77478-E170-4D5C-91CA-0ABB24A30E5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2CD77478-E170-4D5C-91CA-0ABB24A30E5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2CD77478-E170-4D5C-91CA-0ABB24A30E5A}.Debug|Any CPU.ActiveCfg = Release|Any CPU
+ {2CD77478-E170-4D5C-91CA-0ABB24A30E5A}.Debug|Any CPU.Build.0 = Release|Any CPU
{2CD77478-E170-4D5C-91CA-0ABB24A30E5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2CD77478-E170-4D5C-91CA-0ABB24A30E5A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
diff --git a/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
index 0867eed..73a566a 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
@@ -346,7 +346,7 @@ public class SemiLatusRectum : OrbitalEntry
{
public SemiLatusRectum()
{
- Name = "Semi Latus Rectum";
+ Name = "Semi Latus Rect";
Description = "Half the length of the chord through one focus, perpendicular to the major axis.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
index fd1036c..04e0d60 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
@@ -35,7 +35,7 @@ public class AltitudeAsl : SurfaceEntry
{
public AltitudeAsl()
{
- Name = "Altitude (Sea Lvl)";
+ Name = "Altitude (Sea)";
Description = "Shows the vessel's altitude above sea level.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
index e3145e7..b44b3f4 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
@@ -88,7 +88,7 @@ public DistanceToTarget()
KiloUnit = "km";
MegaUnit = "Mm";
GigaUnit = "Gm";
- NumberOfDecimalDigits = 2;
+ NumberOfDecimalDigits = 0;
Formatting = "N";
}
@@ -440,7 +440,7 @@ public class Target_SemiLatusRectum : TargetEntry
{
public Target_SemiLatusRectum()
{
- Name = "Semi Latus Rectum";
+ Name = "Semi Latus Rect";
Description = "Half the length of the chord through one focus, perpendicular to the major axis.";
Category = MicroEntryCategory.Target;
IsDefault = false;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
index 9331b4e..cd705f8 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
@@ -78,7 +78,7 @@ public class TotalDeltaVASL : VesselEntry
{
public TotalDeltaVASL()
{
- Name = "Total ∆v ASL";
+ Name = "Total ∆v (ASL)";
Description = "Total delta velocity of the vessel At Sea Level.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
@@ -237,7 +237,7 @@ public StageTWRActual()
Name = "TWR";
Description = "Vessel's Thrust to Weight Ratio.";
Category = MicroEntryCategory.Vessel;
- IsDefault = false;
+ IsDefault = true;
BaseUnit = null;
NumberOfDecimalDigits = 2;
Formatting = "N";
diff --git a/MicroEngineerProject/MicroEngineer/Utilities/Styles.cs b/MicroEngineerProject/MicroEngineer/Utilities/Styles.cs
index e8397af..d05b001 100644
--- a/MicroEngineerProject/MicroEngineer/Utilities/Styles.cs
+++ b/MicroEngineerProject/MicroEngineer/Utilities/Styles.cs
@@ -81,7 +81,7 @@ public static class Styles
public static float PoppedOutX = Screen.width * 0.6f;
public static float PoppedOutY = Screen.height * 0.2f;
- public static float MainGuiX = Screen.width * 0.8f;
+ public static float MainGuiX = Screen.width * 0.7f;
public static float MainGuiY = Screen.height * 0.2f;
public static Rect CloseBtnRect = new Rect(Styles.WindowWidth - 23, 6, 16, 16); // TODO check if we need this
@@ -201,7 +201,7 @@ private static void InitializeStyles()
UnitLabelStyle = new GUIStyle(SpaceWarpUISkin.label)
{
- fixedWidth = 24,
+ fixedWidth = 35,
alignment = TextAnchor.MiddleLeft
};
UnitLabelStyle.normal.textColor = _unitColor;
@@ -360,6 +360,8 @@ private static void InitializeStyles()
private static void InitializeTextures()
{
+ // Icons from https://icons8.com
+
Settings20Texture = LoadTexture($"{_plugin.SpaceWarpMetadata.ModID}/images/settings-20.png");
Settings15Texture = LoadTexture($"{_plugin.SpaceWarpMetadata.ModID}/images/settings-15.png");
CloseButtonTexture = LoadTexture($"{_plugin.SpaceWarpMetadata.ModID}/images/close-15.png");
diff --git a/Staging/BepInEx/plugins/micro_engineer/swinfo.json b/Staging/BepInEx/plugins/micro_engineer/swinfo.json
index 5a87043..24c59de 100644
--- a/Staging/BepInEx/plugins/micro_engineer/swinfo.json
+++ b/Staging/BepInEx/plugins/micro_engineer/swinfo.json
@@ -4,7 +4,8 @@
"name": "Micro Engineer",
"description": "Get in-flight and VAB information about your current vessel",
"source": "https://github.com/Micrologist/MicroEngineer",
- "version": "0.8.0",
+ "version": "1.0.0",
+ "version_check": "https://raw.githubusercontent.com/Falki-git/MicroEngineer/main/Staging/BepInEx/plugins/micro_engineer/swinfo.json",
"dependencies": [
{
"id": "SpaceWarp",
From 53da7bcfbf2dea35db87c4cee1b00e75215479ad Mon Sep 17 00:00:00 2001
From: Falki-git <72734856+Falki-git@users.noreply.github.com>
Date: Wed, 26 Apr 2023 01:35:15 +0200
Subject: [PATCH 36/38] Update icon.png
---
.../micro_engineer/assets/images/icon.png | Bin 11665 -> 656 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/Staging/BepInEx/plugins/micro_engineer/assets/images/icon.png b/Staging/BepInEx/plugins/micro_engineer/assets/images/icon.png
index 4136552dfc5ad9aeac858652f9a5014996a7458c..f39df0ca6de8a99c9cb9a2c75855f22b417116ce 100644
GIT binary patch
delta 647
zcmV;20(kwATaX1IiBL{Q4GJ0x0000DNk~Le0000U0000U2nGNE06Q?QqLVHg7k>gm
zNklR;Qw)cRvWQh
zi9;;+)ea}X2Vevk)EE5W(XGZIegkX)x5m+42mM`#^fE}sSOC5P=fFk?-D5+1@TwXG
zhJpT&cB_WC7L=M#c^}v@>v2<~V@Cc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)8jw33(bD{e=iZUEB>#q!0%1`yWMvN{=YJyw9L~^MC<+5sr(4m_Esep
Ho)P~8!TybO
From 23edf00607a2d8ab31b49189222514c01c20d6cc Mon Sep 17 00:00:00 2001
From: Falki-git <72734856+Falki-git@users.noreply.github.com>
Date: Wed, 26 Apr 2023 21:05:29 +0200
Subject: [PATCH 37/38] Lectoring
---
.../MicroEngineer/Entries/BodyEntries.cs | 4 +--
.../MicroEngineer/Entries/FlightEntries.cs | 12 +++----
.../MicroEngineer/Entries/ManeuverEntries.cs | 30 ++++++++---------
.../MicroEngineer/Entries/MiscEntries.cs | 14 ++++----
.../Entries/OabStageInfoEntries.cs | 4 +--
.../MicroEngineer/Entries/OrbitalEntries.cs | 24 +++++++-------
.../MicroEngineer/Entries/SurfaceEntries.cs | 14 ++++----
.../MicroEngineer/Entries/TargetEntries.cs | 32 +++++++++----------
.../MicroEngineer/Entries/VesselEntries.cs | 16 +++++-----
9 files changed, 75 insertions(+), 75 deletions(-)
diff --git a/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
index b5d36df..ad0357e 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
@@ -28,7 +28,7 @@ public class ReferenceBodyConstants_Radius : BodyEntry
{
public ReferenceBodyConstants_Radius()
{
- Name = "Body Radius";
+ Name = "Body radius";
Description = "Body's radius.";
Category = MicroEntryCategory.Body;
IsDefault = false;
@@ -53,7 +53,7 @@ public class ReferenceBodyConstants_StandardGravitationParameter : BodyEntry
{
public ReferenceBodyConstants_StandardGravitationParameter()
{
- Name = "Std. Grav. Param.";
+ Name = "Std. grav. param.";
Description = "Product of the gravitational constant G and the mass M of the body.";
Category = MicroEntryCategory.Body;
IsDefault = false;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
index df462a5..2567158 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
@@ -33,7 +33,7 @@ public class MachNumber : FlightEntry
{
public MachNumber()
{
- Name = "Mach Number";
+ Name = "Mach number";
Description = "Shows the ratio of vessel's speed and local speed of sound.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
@@ -222,7 +222,7 @@ public class TotalLift : FlightEntry
{
public TotalLift()
{
- Name = "Total Lift";
+ Name = "Total lift";
Description = "Shows the total lift force produced by the vessel.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
@@ -257,7 +257,7 @@ public class TotalDrag : FlightEntry
{
public TotalDrag()
{
- Name = "Total Drag";
+ Name = "Total drag";
Description = "Shows the total drag force exerted on the vessel.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
@@ -323,7 +323,7 @@ public class DragCoefficient : FlightEntry
{
public DragCoefficient()
{
- Name = "Drag Coefficient";
+ Name = "Drag coefficient";
Description = "Dimensionless quantity that is used to quantify the drag or resistance of an object in a fluid environment, such as air or water.";
Category = MicroEntryCategory.Flight;
IsDefault = false;
@@ -344,7 +344,7 @@ public class ExposedArea : FlightEntry
{
public ExposedArea()
{
- Name = "Exposed Area";
+ Name = "Exposed area";
Description = "The surface area that interacts with the working fluid or gas.";
Category = MicroEntryCategory.Flight;
IsDefault = false;
@@ -365,7 +365,7 @@ public class AtmosphericDensity : FlightEntry
{
public AtmosphericDensity()
{
- Name = "Atm. Density";
+ Name = "Atm. density";
Description = "Shows the atmospheric density.";
Category = MicroEntryCategory.Flight;
IsDefault = true;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
index 08be5cd..24c0483 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
@@ -43,7 +43,7 @@ public class ManeuverPrograde : ManeuverEntry
{
public ManeuverPrograde()
{
- Name = "∆v Prograde";
+ Name = "∆v prograde";
Description = "Prograde/Retrograde component of the total change in velocity.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -69,7 +69,7 @@ public class ManeuverNormal : ManeuverEntry
{
public ManeuverNormal()
{
- Name = "∆v Normal";
+ Name = "∆v normal";
Description = "Normal component of the total change in velocity.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -95,7 +95,7 @@ public class ManeuverRadial : ManeuverEntry
{
public ManeuverRadial()
{
- Name = "∆v Radial";
+ Name = "∆v radial";
Description = "Radial component of the total change in velocity.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -121,7 +121,7 @@ public class TimeToNode : ManeuverEntry
{
public TimeToNode()
{
- Name = "Time to Node";
+ Name = "Time to node";
Description = "Time until vessel reaches the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
@@ -151,7 +151,7 @@ public class BurnTime : ManeuverEntry
{
public BurnTime()
{
- Name = "Burn Time";
+ Name = "Burn time";
Description = "Length of time needed to complete the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = true;
@@ -381,7 +381,7 @@ public class Maneuver_TrueAnomaly : ManeuverEntry
{
public Maneuver_TrueAnomaly()
{
- Name = "True Anomaly";
+ Name = "True anomaly";
Description = "True Anomaly vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -414,7 +414,7 @@ public class Maneuver_MeanAnomaly : ManeuverEntry
{
public Maneuver_MeanAnomaly()
{
- Name = "Mean Anomaly";
+ Name = "Mean anomaly";
Description = "Mean Anomaly vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -447,7 +447,7 @@ public class Maneuver_EccentricAnomaly : ManeuverEntry
{
public Maneuver_EccentricAnomaly()
{
- Name = "Eccentric Anomaly";
+ Name = "Eccentric anomaly";
Description = "Eccentric Anomaly vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -528,7 +528,7 @@ public class Maneuver_SemiLatusRectum : ManeuverEntry
{
public Maneuver_SemiLatusRectum()
{
- Name = "Semi Latus Rectum";
+ Name = "Semi latus rect";
Description = "Semi Latus Rectum vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -556,7 +556,7 @@ public class Maneuver_SemiMajorAxis : ManeuverEntry
{
public Maneuver_SemiMajorAxis()
{
- Name = "Semi Major Axis";
+ Name = "Semi major axis";
Description = "Semi Major Axis vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -584,7 +584,7 @@ public class Maneuver_SemiMinorAxis : ManeuverEntry
{
public Maneuver_SemiMinorAxis()
{
- Name = "Semi Minor Axis";
+ Name = "Semi minor axis";
Description = "Semi Minor Axis vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -612,7 +612,7 @@ public class Maneuver_OrbitalEnergy : ManeuverEntry
{
public Maneuver_OrbitalEnergy()
{
- Name = "Orbital Energy";
+ Name = "Orbital energy";
Description = "Orbital Energy vessel will have after completing the maneuver.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -640,7 +640,7 @@ public class Maneuver_ObT : ManeuverEntry
{
public Maneuver_ObT()
{
- Name = "Orbit Time";
+ Name = "Orbit time";
Description = "Shows orbit time in seconds from the Periapsis when vessel reaches the maneuver node.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -730,7 +730,7 @@ public class Maneuver_UniversalTimeAtClosestApproach : ManeuverEntry
{
public Maneuver_UniversalTimeAtClosestApproach()
{
- Name = "UT Close.App.";
+ Name = "UT close.app.";
Description = "Universal Time at the point of closest approach.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
@@ -762,7 +762,7 @@ public class Maneuver_UniversalTimeAtSoiEncounter : ManeuverEntry
{
public Maneuver_UniversalTimeAtSoiEncounter()
{
- Name = "UT SOI Enc.";
+ Name = "UT SOI enc.";
Description = "Universal Time at the point of transition to another Sphere Of Influence.";
Category = MicroEntryCategory.Maneuver;
IsDefault = false;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/MiscEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/MiscEntries.cs
index e519e33..7bc6ce5 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/MiscEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/MiscEntries.cs
@@ -23,7 +23,7 @@ public class GravityForPos : MiscEntry
{
public GravityForPos()
{
- Name = "Local Gravity";
+ Name = "Local gravity";
Description = "Local gravity vessel is experiencing.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
@@ -104,7 +104,7 @@ public class LaunchTime : MiscEntry
{
public LaunchTime()
{
- Name = "Launch Time";
+ Name = "Launch time";
Description = "Universal Time when vessel was launched.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
@@ -184,7 +184,7 @@ public class AutopilotStatus_Mode : MiscEntry
{
public AutopilotStatus_Mode()
{
- Name = "Autopilot Mode";
+ Name = "Autopilot mode";
Description = "Mode vessel's autopilot is using: stability assist, prograde, retrograde, normal, etc.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
@@ -204,7 +204,7 @@ public class AltimeterMode : MiscEntry
{
public AltimeterMode()
{
- Name = "Altimeter Mode";
+ Name = "Altimeter mode";
Description = "Mode vessel's altimeter is using: Sea Level or Ground Level.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
@@ -224,7 +224,7 @@ public class SpeedMode : MiscEntry
{
public SpeedMode()
{
- Name = "Speed Mode";
+ Name = "Speed mode";
Description = "Mode vessel's velocity meter is using: Orbit, Surface or Target.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
@@ -244,7 +244,7 @@ public class UniversalTimeAtClosestApproach : MiscEntry
{
public UniversalTimeAtClosestApproach()
{
- Name = "UT Close.App.";
+ Name = "UT close.app.";
Description = "Universal Time at closest approach.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
@@ -274,7 +274,7 @@ public class UniversalTimeAtSoiEncounter : MiscEntry
{
public UniversalTimeAtSoiEncounter()
{
- Name = "UT SOI Enc.";
+ Name = "UT SOI enc.";
Description = "Universal Time at the point of transfer to another sphere of influence.";
Category = MicroEntryCategory.Misc;
IsDefault = false;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
index ccb1e70..5eb17a0 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
@@ -14,7 +14,7 @@ public class TotalBurnTime_OAB : OabStageInfoEntry
public TotalBurnTime_OAB()
{
- Name = "Total Burn Time (OAB)";
+ Name = "Total burn time (OAB)";
Description = "Shows the total length of burn the vessel can mantain.";
Category = MicroEntryCategory.OAB;
IsDefault = true;
@@ -72,7 +72,7 @@ public class TotalDeltaVActual_OAB : OabStageInfoEntry
{
public TotalDeltaVActual_OAB()
{
- Name = "Total ∆v Actual (OAB)";
+ Name = "Total ∆v actual (OAB)";
Description = "Shows the vessel's actual total delta velocity (not used in OAB).";
Category = MicroEntryCategory.OAB;
IsDefault = true;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
index 73a566a..c794710 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
@@ -189,7 +189,7 @@ public class OrbitalSpeed : OrbitalEntry
{
public OrbitalSpeed()
{
- Name = "Orbital Speed";
+ Name = "Orbital speed";
Description = "Shows the vessel's orbital speed";
Category = MicroEntryCategory.Orbital;
IsDefault = true;
@@ -214,7 +214,7 @@ public class TrueAnomaly : OrbitalEntry
{
public TrueAnomaly()
{
- Name = "True Anomaly";
+ Name = "True anomaly";
Description = "Angle between the direction of periapsis and the current position of the object, as seen from the main focus of the ellipse.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -244,7 +244,7 @@ public class MeanAnomaly : OrbitalEntry
{
public MeanAnomaly()
{
- Name = "Mean Anomaly";
+ Name = "Mean anomaly";
Description = "Parameter used to describe the position of an object in its orbit around the celestial body.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -274,7 +274,7 @@ public class EccentricAnomaly : OrbitalEntry
{
public EccentricAnomaly()
{
- Name = "Eccentric Anomaly";
+ Name = "Eccentric anomaly";
Description = "Angle at the center of the orbital ellipse from the semi major axis to the line that passes through the center of the ellipse and the point on the auxiliary circle that is the intersection of the line perpendicular to the semi major axis and passes through the point in the orbit where the vessel is.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -346,7 +346,7 @@ public class SemiLatusRectum : OrbitalEntry
{
public SemiLatusRectum()
{
- Name = "Semi Latus Rect";
+ Name = "Semi latus rect";
Description = "Half the length of the chord through one focus, perpendicular to the major axis.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -371,7 +371,7 @@ public class SemiMajorAxis : OrbitalEntry
{
public SemiMajorAxis()
{
- Name = "Semi Major Axis";
+ Name = "Semi major axis";
Description = "Shows the distance from the center of an orbit to the farthest edge.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -396,7 +396,7 @@ public class SemiMinorAxis : OrbitalEntry
{
public SemiMinorAxis()
{
- Name = "Semi Minor Axis";
+ Name = "Semi minor axis";
Description = "Shows the distance from the center of an orbit to the nearest edge.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -421,7 +421,7 @@ public class OrbitalEnergy : OrbitalEntry
{
public OrbitalEnergy()
{
- Name = "Orbital Energy";
+ Name = "Orbital energy";
Description = "Constant sum of two orbiting bodies' mutual potential energy and their total kinetic energy divided by the reduced mass.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -446,7 +446,7 @@ public class ObT : OrbitalEntry
{
public ObT()
{
- Name = "Orbit Time";
+ Name = "Orbit time";
Description = "Shows orbit time in seconds from the Periapsis.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -476,7 +476,7 @@ public class OrbitPercent : OrbitalEntry
{
public OrbitPercent()
{
- Name = "Orbit Percent";
+ Name = "Orbit percent";
Description = "Percent of the orbit completed.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -497,7 +497,7 @@ public class OrbitRadius : OrbitalEntry
{
public OrbitRadius()
{
- Name = "Orbit Radius";
+ Name = "Orbit radius";
Description = "Length from the center of the ellipse to the object.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
@@ -522,7 +522,7 @@ public class SoiTransition : OrbitalEntry
{
public SoiTransition()
{
- Name = "SOI Trans.";
+ Name = "SOI trans.";
Description = "Shows the amount of time it will take to transition to another Sphere Of Influence.";
Category = MicroEntryCategory.Orbital;
IsDefault = false;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
index 04e0d60..9d0440c 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
@@ -10,7 +10,7 @@ public class AltitudeAgl : SurfaceEntry
{
public AltitudeAgl()
{
- Name = "Altitude (Ground)";
+ Name = "Altitude (ground)";
Description = "Shows the vessel's altitude above ground Level.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
@@ -35,7 +35,7 @@ public class AltitudeAsl : SurfaceEntry
{
public AltitudeAsl()
{
- Name = "Altitude (Sea)";
+ Name = "Altitude (sea)";
Description = "Shows the vessel's altitude above sea level.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
@@ -60,7 +60,7 @@ public class AltitudeFromScenery : SurfaceEntry
{
public AltitudeFromScenery()
{
- Name = "Altitude (Scenery)";
+ Name = "Altitude (scenery)";
Description = "Shows the vessel's altitude above scenery.";
Category = MicroEntryCategory.Surface;
IsDefault = false;
@@ -85,7 +85,7 @@ public class VerticalVelocity : SurfaceEntry
{
public VerticalVelocity()
{
- Name = "Vertical Vel.";
+ Name = "Vertical vel.";
Description = "Shows the vessel's vertical velocity (up/down).";
Category = MicroEntryCategory.Surface;
IsDefault = true;
@@ -110,7 +110,7 @@ public class HorizontalVelocity : SurfaceEntry
{
public HorizontalVelocity()
{
- Name = "Horizontal Vel.";
+ Name = "Horizontal vel.";
Description = "Shows the vessel's horizontal velocity across a celestial body's surface.";
Category = MicroEntryCategory.Surface;
IsDefault = true;
@@ -251,7 +251,7 @@ public class DynamicPressure_kPa : SurfaceEntry
{
public DynamicPressure_kPa()
{
- Name = "Dynamic Pressure";
+ Name = "Dynamic pressure";
Description = "Dynamic Pressure (q) is a defined property of a moving flow of gas. It describes how much pressure the airflow is having on the vessel.";
Category = MicroEntryCategory.Surface;
IsDefault = false;
@@ -276,7 +276,7 @@ public class StaticPressure_kPa : SurfaceEntry
{
public StaticPressure_kPa()
{
- Name = "Static Pressure";
+ Name = "Static pressure";
Description = "Static pressure is a term used to define the amount of pressure exerted by a fluid that is not moving - ambient pressure.";
Category = MicroEntryCategory.Surface;
IsDefault = false;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
index b44b3f4..6963f01 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
@@ -115,7 +115,7 @@ public class RelativeSpeed : TargetEntry
{
public RelativeSpeed()
{
- Name = "Rel. Speed";
+ Name = "Rel. speed";
Description = "Shows the relative velocity between the vessel and the target.";
Category = MicroEntryCategory.Target;
IsDefault = true;
@@ -153,7 +153,7 @@ public class RelativeInclination : TargetEntry
{
public RelativeInclination()
{
- Name = "Rel. Inclination";
+ Name = "Rel. inclination";
Description = "Shows the relative inclination between the vessel and the target.";
Category = MicroEntryCategory.Target;
IsDefault = true;
@@ -187,7 +187,7 @@ public class Target_AltitudeFromSeaLevel : TargetEntry
{
public Target_AltitudeFromSeaLevel()
{
- Name = "Altitude (Sea)";
+ Name = "Altitude (sea)";
Description = "Shows the target's altitude above sea level.";
Category = MicroEntryCategory.Target;
IsDefault = true;
@@ -283,7 +283,7 @@ public class Target_Obtvelocity : TargetEntry
{
public Target_Obtvelocity()
{
- Name = "Orbital Speed";
+ Name = "Orbital speed";
Description = "Shows the target's orbital speed.";
Category = MicroEntryCategory.Target;
IsDefault = true;
@@ -308,7 +308,7 @@ public class Target_TrueAnomaly : TargetEntry
{
public Target_TrueAnomaly()
{
- Name = "True Anomaly";
+ Name = "True anomaly";
Description = "Angle between the direction of periapsis and the current position of the object, as seen from the main focus of the ellipse.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -338,7 +338,7 @@ public class Target_MeanAnomaly : TargetEntry
{
public Target_MeanAnomaly()
{
- Name = "Mean Anomaly";
+ Name = "Mean anomaly";
Description = "Parameter used to describe the position of the target in its orbit around the celestial body.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -368,7 +368,7 @@ public class Target_EccentricAnomaly : TargetEntry
{
public Target_EccentricAnomaly()
{
- Name = "Eccentric Anomaly";
+ Name = "Eccentric anomaly";
Description = "Angle at the center of the orbital ellipse from the semi major axis to the line that passes through the center of the ellipse and the point on the auxiliary circle that is the intersection of the line perpendicular to the semi major axis and passes through the point in the orbit where the target is.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -440,7 +440,7 @@ public class Target_SemiLatusRectum : TargetEntry
{
public Target_SemiLatusRectum()
{
- Name = "Semi Latus Rect";
+ Name = "Semi latus rect";
Description = "Half the length of the chord through one focus, perpendicular to the major axis.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -465,7 +465,7 @@ public class Target_SemiMajorAxis : TargetEntry
{
public Target_SemiMajorAxis()
{
- Name = "Semi Major Axis";
+ Name = "Semi major axis";
Description = "Shows the distance from the center of an orbit to the farthest edge.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -490,7 +490,7 @@ public class Target_SemiMinorAxis : TargetEntry
{
public Target_SemiMinorAxis()
{
- Name = "Semi Minor Axis";
+ Name = "Semi minor axis";
Description = "Shows the distance from the center of an orbit to the nearest edge.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -515,7 +515,7 @@ public class Target_ObT : TargetEntry
{
public Target_ObT()
{
- Name = "Orbit Time";
+ Name = "Orbit time";
Description = "Shows orbit time in seconds from the Periapsis.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -545,7 +545,7 @@ public class Target_ReferenceBodyConstants_Radius : TargetEntry
{
public Target_ReferenceBodyConstants_Radius()
{
- Name = "Body Radius";
+ Name = "Body radius";
Description = "Radius of the body that target is orbiting.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -570,7 +570,7 @@ public class Target_ReferenceBodyConstants_StandardGravitationParameter : Target
{
public Target_ReferenceBodyConstants_StandardGravitationParameter()
{
- Name = "Std. Grav. Param.";
+ Name = "Std. grav. param.";
Description = "Product of the gravitational constant G and the mass M of the body target is orbiting.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -591,7 +591,7 @@ public class Target_OrbitRadius : TargetEntry
{
public Target_OrbitRadius()
{
- Name = "Orbit Radius";
+ Name = "Orbit radius";
Description = "Length from the center of the ellipse to the object.";
Category = MicroEntryCategory.Target;
IsDefault = false;
@@ -616,7 +616,7 @@ public class PhaseAngle : TargetEntry
{
public PhaseAngle()
{
- Name = "Phase Angle";
+ Name = "Phase angle";
Description = "Angle between your vessel, the reference body and the target. How much \"ahead\" or \"behind\" in phase you are with the target.";
Category = MicroEntryCategory.Target;
IsDefault = true;
@@ -637,7 +637,7 @@ public class TransferAngle : TargetEntry
{
public TransferAngle()
{
- Name = "Transfer Angle";
+ Name = "Transfer angle";
Description = "Phase angle needed for an optimal Hohmann transfer orbit. Use a circular orbit for a more accurate value.";
Category = MicroEntryCategory.Target;
IsDefault = true;
diff --git a/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
index cd705f8..5c83e3a 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
@@ -78,7 +78,7 @@ public class TotalDeltaVASL : VesselEntry
{
public TotalDeltaVASL()
{
- Name = "Total ∆v (ASL)";
+ Name = "Total ∆v ASL";
Description = "Total delta velocity of the vessel At Sea Level.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
@@ -129,7 +129,7 @@ public class TotalBurnTime : VesselEntry
{
public TotalBurnTime()
{
- Name = "Total Burn Time";
+ Name = "Total burn time";
Description = "Burn Time vessel can sustain with 100% thrust.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
@@ -209,7 +209,7 @@ public class StageThrustVac : VesselEntry
{
public StageThrustVac()
{
- Name = "Thrust (Vacuum)";
+ Name = "Thrust (vacuum)";
Description = "Vessel's thrust in vacuum.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
@@ -276,7 +276,7 @@ public class StageTWRVac : VesselEntry
{
public StageTWRVac()
{
- Name = "TWR (Vacuum)";
+ Name = "TWR (vacuum)";
Description = "Vessel's Thrust to Weight Ratio in vacuum.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
@@ -339,7 +339,7 @@ public class StageISPVac : VesselEntry
{
public StageISPVac()
{
- Name = "ISP (Vacuum)";
+ Name = "ISP (vacuum)";
Description = "Specific impulse in vacuum.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
@@ -360,7 +360,7 @@ public class FuelPercentage : VesselEntry
{
public FuelPercentage()
{
- Name = "Vessel Fuel";
+ Name = "Vessel fuel";
Description = "Vessel's fuel percentage left.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
@@ -381,7 +381,7 @@ public class StageFuelPercentage : VesselEntry
{
public StageFuelPercentage()
{
- Name = "Stage Fuel";
+ Name = "Stage fuel";
Description = "Stage fuel percentage left.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
@@ -443,7 +443,7 @@ public class TotalCommandCrewCapacity : VesselEntry
{
public TotalCommandCrewCapacity()
{
- Name = "Command Crew Capacity";
+ Name = "Command crew capacity";
Description = "Crew capacity of all parts.";
Category = MicroEntryCategory.Vessel;
IsDefault = false;
From 4c5de68cec920daa1671acac780871eff7d8c312 Mon Sep 17 00:00:00 2001
From: Falki-git <72734856+Falki-git@users.noreply.github.com>
Date: Wed, 26 Apr 2023 22:34:09 +0200
Subject: [PATCH 38/38] Nothing important
---
MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs | 2 +-
MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs | 2 +-
MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs | 2 +-
MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs | 2 +-
.../MicroEngineer/Entries/OabStageInfoEntries.cs | 2 +-
MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs | 2 +-
.../MicroEngineer/Entries/StageInfoEntries.cs | 2 +-
MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs | 2 +-
MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs | 2 +-
MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs | 2 +-
MicroEngineerProject/MicroEngineer/Managers/Manager.cs | 2 +-
.../MicroEngineer/Managers/MicroCelestialBodies.cs | 2 +-
MicroEngineerProject/MicroEngineer/Managers/UI.cs | 2 +-
MicroEngineerProject/MicroEngineer/Utilities/AeroForces.cs | 2 +-
MicroEngineerProject/MicroEngineer/Utilities/Styles.cs | 2 +-
MicroEngineerProject/MicroEngineer/Utilities/Utility.cs | 4 ++--
MicroEngineerProject/MicroEngineer/Windows/BaseWindow.cs | 2 +-
MicroEngineerProject/MicroEngineer/Windows/MainGuiWindow.cs | 2 +-
MicroEngineerProject/MicroEngineer/Windows/ManeuverWindow.cs | 2 +-
19 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs b/MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs
index ccc0ff2..9e1f3d8 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs
@@ -127,4 +127,4 @@ public virtual string UnitDisplay
public virtual void RefreshData() { }
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
index ad0357e..37fbab7 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/BodyEntries.cs
@@ -69,4 +69,4 @@ public override void RefreshData()
public override string ValueDisplay => base.ValueDisplay;
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
index 2567158..da143df 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/FlightEntries.cs
@@ -410,4 +410,4 @@ public override void RefreshData()
public override string ValueDisplay => base.ValueDisplay;
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
index 24c0483..657a0e6 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/ManeuverEntries.cs
@@ -789,4 +789,4 @@ public override string ValueDisplay
}
}
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
index 5eb17a0..f0c342d 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/OabStageInfoEntries.cs
@@ -298,4 +298,4 @@ private double GetISPAtAltitude(double altitude, CelestialBodyComponent cel)
internal double GetTWRAtSeaLevel(CelestialBodyComponent cel) => this.GetTWRAtAltitude(0, cel);
internal double GetDeltaVelAtSeaLevel(CelestialBodyComponent cel) => GetDeltaVelAlt(0, cel);
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
index c794710..37c1cbb 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/OrbitalEntries.cs
@@ -546,4 +546,4 @@ public override string ValueDisplay
}
}
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/StageInfoEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/StageInfoEntries.cs
index 0d34bc1..c3c3b45 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/StageInfoEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/StageInfoEntries.cs
@@ -23,4 +23,4 @@ public override void RefreshData()
public override string ValueDisplay => base.ValueDisplay;
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
index 9d0440c..22169e1 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/SurfaceEntries.cs
@@ -338,4 +338,4 @@ public override void RefreshData()
public override string ValueDisplay => base.ValueDisplay;
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
index 6963f01..a1f144a 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/TargetEntries.cs
@@ -829,4 +829,4 @@ public override void RefreshData()
public override string ValueDisplay => base.ValueDisplay;
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs b/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
index 5c83e3a..09f08c8 100644
--- a/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
+++ b/MicroEngineerProject/MicroEngineer/Entries/VesselEntries.cs
@@ -459,4 +459,4 @@ public override void RefreshData()
public override string ValueDisplay => base.ValueDisplay;
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Managers/Manager.cs b/MicroEngineerProject/MicroEngineer/Managers/Manager.cs
index 8ec5423..77bfd24 100644
--- a/MicroEngineerProject/MicroEngineer/Managers/Manager.cs
+++ b/MicroEngineerProject/MicroEngineer/Managers/Manager.cs
@@ -308,4 +308,4 @@ internal void LoadLayout()
internal void SaveLayout() => Utility.SaveLayout(Windows);
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Managers/MicroCelestialBodies.cs b/MicroEngineerProject/MicroEngineer/Managers/MicroCelestialBodies.cs
index afb5c24..72d3006 100644
--- a/MicroEngineerProject/MicroEngineer/Managers/MicroCelestialBodies.cs
+++ b/MicroEngineerProject/MicroEngineer/Managers/MicroCelestialBodies.cs
@@ -139,4 +139,4 @@ internal class CelestialBody
internal bool IsHomeWorld;
internal CelestialBodyComponent CelestialBodyComponent;
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Managers/UI.cs b/MicroEngineerProject/MicroEngineer/Managers/UI.cs
index 4e32584..f15787e 100644
--- a/MicroEngineerProject/MicroEngineer/Managers/UI.cs
+++ b/MicroEngineerProject/MicroEngineer/Managers/UI.cs
@@ -11,7 +11,7 @@ internal class UI
private MicroEngineerMod _plugin;
private Manager _manager;
- private static readonly ManualLogSource _logger = BepInEx.Logging.Logger.CreateLogSource("MicroEngineer.MessageManager");
+ private static readonly ManualLogSource _logger = BepInEx.Logging.Logger.CreateLogSource("MicroEngineer.UI");
internal List Windows;
diff --git a/MicroEngineerProject/MicroEngineer/Utilities/AeroForces.cs b/MicroEngineerProject/MicroEngineer/Utilities/AeroForces.cs
index e31e2b4..1550d1d 100644
--- a/MicroEngineerProject/MicroEngineer/Utilities/AeroForces.cs
+++ b/MicroEngineerProject/MicroEngineer/Utilities/AeroForces.cs
@@ -131,4 +131,4 @@ public static double SideSlip
}
}
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Utilities/Styles.cs b/MicroEngineerProject/MicroEngineer/Utilities/Styles.cs
index d05b001..50e8bb5 100644
--- a/MicroEngineerProject/MicroEngineer/Utilities/Styles.cs
+++ b/MicroEngineerProject/MicroEngineer/Utilities/Styles.cs
@@ -467,4 +467,4 @@ public enum Theme
Gray,
Black
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Utilities/Utility.cs b/MicroEngineerProject/MicroEngineer/Utilities/Utility.cs
index 7d13b84..a505775 100644
--- a/MicroEngineerProject/MicroEngineer/Utilities/Utility.cs
+++ b/MicroEngineerProject/MicroEngineer/Utilities/Utility.cs
@@ -18,7 +18,7 @@ public static class Utility
public static VesselComponent ActiveVessel;
public static ManeuverNodeData CurrentManeuver;
public static string LayoutPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "MicroLayout.json");
- public static int CurrentLayoutVersion = 9;
+ public static int CurrentLayoutVersion = 10;
private static ManualLogSource Logger = BepInEx.Logging.Logger.CreateLogSource("MicroEngineer.Utility");
public static GameStateConfiguration GameState;
public static MessageCenter MessageCenter;
@@ -326,4 +326,4 @@ internal static bool IsModOlderThan(string modId, int major, int minor, int patc
return false;
}
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Windows/BaseWindow.cs b/MicroEngineerProject/MicroEngineer/Windows/BaseWindow.cs
index 106e6fe..34b5bcd 100644
--- a/MicroEngineerProject/MicroEngineer/Windows/BaseWindow.cs
+++ b/MicroEngineerProject/MicroEngineer/Windows/BaseWindow.cs
@@ -60,4 +60,4 @@ public enum MainWindow
Settings,
StageInfoOAB
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Windows/MainGuiWindow.cs b/MicroEngineerProject/MicroEngineer/Windows/MainGuiWindow.cs
index e5b6c34..345e92c 100644
--- a/MicroEngineerProject/MicroEngineer/Windows/MainGuiWindow.cs
+++ b/MicroEngineerProject/MicroEngineer/Windows/MainGuiWindow.cs
@@ -7,4 +7,4 @@ internal class MainGuiWindow : BaseWindow
[JsonProperty]
internal int LayoutVersion;
}
-}
+}
\ No newline at end of file
diff --git a/MicroEngineerProject/MicroEngineer/Windows/ManeuverWindow.cs b/MicroEngineerProject/MicroEngineer/Windows/ManeuverWindow.cs
index cd95edc..f8ac4ca 100644
--- a/MicroEngineerProject/MicroEngineer/Windows/ManeuverWindow.cs
+++ b/MicroEngineerProject/MicroEngineer/Windows/ManeuverWindow.cs
@@ -100,4 +100,4 @@ internal void OnManeuverRemovedMessage(MessageCenterMessage message)
_selectedNodeIndex = 0;
}
}
-}
+}
\ No newline at end of file