diff --git a/PerformanceOverlay/Overlays.cs b/PerformanceOverlay/Overlays.cs index cdde915..473d174 100644 --- a/PerformanceOverlay/Overlays.cs +++ b/PerformanceOverlay/Overlays.cs @@ -97,7 +97,7 @@ namespace PerformanceOverlay { Nested = { // Simple just FPS - new Entry { Text = " FPS", Include = { Mode.FPS } }, + new Entry(" FPS") { Include = { Mode.FPS } }, // Minimal and Detail new Entry { @@ -109,7 +109,8 @@ namespace PerformanceOverlay Nested = { new Entry("{BATT_%} %"), - new Entry("{BATT_W} W") { IgnoreMissing = true } + new Entry("{BATT_W} W") { IgnoreMissing = true }, + new Entry("C{BATT_CHARGE_W} W") { IgnoreMissing = true, Include = { Mode.Detail } } } }, new Entry @@ -119,7 +120,7 @@ namespace PerformanceOverlay { new Entry("{GPU_%} %"), new Entry("{GPU_W} W"), - new Entry { Text = "{GPU_T} C", IgnoreMissing = true, Include = { Mode.Detail } } + new Entry("{GPU_T} C") { IgnoreMissing = true, Include = { Mode.Detail } } } }, new Entry @@ -129,7 +130,7 @@ namespace PerformanceOverlay { new Entry("{CPU_%} %"), new Entry("{CPU_W} W"), - new Entry { Text = "{CPU_T} C", IgnoreMissing = true, Include = { Mode.Detail } } + new Entry("{CPU_T} C") { IgnoreMissing = true, Include = { Mode.Detail } } } }, new Entry @@ -161,20 +162,20 @@ namespace PerformanceOverlay new Entry { Nested = { - new Entry { Text = "CPU {CPU_%} % {CPU_T} C" }, - new Entry { Text = "GPU {GPU_%} % {GPU_T} C" }, - new Entry { Text = "RAM {MEM_MB} MB{GPU_MB} MB" }, - new Entry { Text = "FAN {FAN_RPM} RPM" }, - new Entry { Text = " FPS ms" }, - new Entry { - Text = "BAT ", + new Entry("CPU {CPU_%} % {CPU_T} C"), + new Entry("GPU {GPU_%} % {GPU_T} C"), + new Entry("RAM {MEM_MB} MB {GPU_MB} MB"), + new Entry("FAN {FAN_RPM} RPM"), + new Entry(" FPS ms"), + new Entry("BAT ") { Nested = { new Entry("{BATT_%} %"), - new Entry("{BATT_W} W") + new Entry(" {BATT_W} W") { IgnoreMissing = true }, + new Entry("C{BATT_CHARGE_W} W") { IgnoreMissing = true } } }, - new Entry { Text = "Frametime" }, - new Entry { Text = "[OBJ_FT_LARGE] ms" }, + new Entry("Frametime"), + new Entry("[OBJ_FT_LARGE] ms"), }, Separator = "\r\n", Include = { Mode.Full } diff --git a/PerformanceOverlay/Sensors.cs b/PerformanceOverlay/Sensors.cs index 212a5c9..39d9062 100644 --- a/PerformanceOverlay/Sensors.cs +++ b/PerformanceOverlay/Sensors.cs @@ -205,7 +205,17 @@ namespace PerformanceOverlay HardwareType = HardwareType.Battery, HardwareName = "GETAC", SensorType = SensorType.Power, - SensorName = "Charge/Discharge Rate", + SensorName = "Discharge Rate", + Format = "F1" + } + }, + { + "BATT_CHARGE_W", new HardwareSensor() + { + HardwareType = HardwareType.Battery, + HardwareName = "GETAC", + SensorType = SensorType.Power, + SensorName = "Charge Rate", Format = "F1" } },