diff --git a/PerformanceOverlay/Overlays.cs b/PerformanceOverlay/Overlays.cs index 7ea9fbf..355eaeb 100644 --- a/PerformanceOverlay/Overlays.cs +++ b/PerformanceOverlay/Overlays.cs @@ -83,7 +83,7 @@ namespace PerformanceOverlay public static readonly String[] Helpers = { "", - "", + "", }; public static readonly Entry OSD = new Entry @@ -98,12 +98,13 @@ namespace PerformanceOverlay { new Entry { - Text = "BATT", + Text = "BAT", Nested = { - new Entry("{BATT_%} %"), - new Entry("{BATT_W} W") { IgnoreMissing = true }, - new Entry("C{BATT_CHARGE_W} W") { IgnoreMissing = true, Include = { OverlayMode.Detail } } + new Entry("{BATT_%} %"), + new Entry("{BATT_W} W") { IgnoreMissing = true }, + new Entry("{BATT_MIN} min") { IgnoreMissing = true }, + new Entry("C{BATT_CHARGE_W} W") { IgnoreMissing = true, Include = { OverlayMode.Detail } } } }, new Entry @@ -111,9 +112,9 @@ namespace PerformanceOverlay Text = "GPU", Nested = { - new Entry("{GPU_%} %"), - new Entry("{GPU_W} W"), - new Entry("{GPU_T} C") { IgnoreMissing = true, Include = { OverlayMode.Detail } } + new Entry("{GPU_%} %"), + new Entry("{GPU_W} W"), + new Entry("{GPU_T} C") { IgnoreMissing = true, Include = { OverlayMode.Detail } } } }, new Entry @@ -121,9 +122,9 @@ namespace PerformanceOverlay Text = "CPU", Nested = { - new Entry("{CPU_%} %"), - new Entry("{CPU_W} W"), - new Entry("{CPU_T} C") { IgnoreMissing = true, Include = { OverlayMode.Detail } } + new Entry("{CPU_%} %"), + new Entry("{CPU_W} W"), + new Entry("{CPU_T} C") { IgnoreMissing = true, Include = { OverlayMode.Detail } } } }, new Entry @@ -140,7 +141,7 @@ namespace PerformanceOverlay new Entry { Text = "", - Nested = { new Entry(" FPS") } + Nested = { new Entry(" FPS") } }, new Entry { @@ -155,16 +156,43 @@ namespace PerformanceOverlay new Entry { Nested = { - 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 ") { + new Entry("CPU\t ") + { Nested = { - new Entry("{BATT_%} %"), - new Entry(" {BATT_W} W") { IgnoreMissing = true }, - new Entry("C{BATT_CHARGE_W} W") { IgnoreMissing = true } + new Entry("{CPU_%} %"), + new Entry("{CPU_W} W"), + new Entry("{MEM_MB} MB"), + new Entry("{CPU_T} C") { IgnoreMissing = true }, + } + }, + new Entry("GPU\t ") + { + Nested = { + new Entry("{GPU_%} %"), + new Entry("{GPU_W} W"), + new Entry("{GPU_MB} MB"), + new Entry("{GPU_T} C") { IgnoreMissing = true }, + } + }, + new Entry("FAN\t ") + { + Nested = { + new Entry("{FAN_RPM} RPM"), + } + }, + new Entry("\t ") + { + Nested = { + new Entry(" FPS"), + new Entry(" ms"), + } + }, + new Entry("BAT\t ") { + Nested = { + new Entry("{BATT_%} %"), + new Entry("{BATT_W} W") { IgnoreMissing = true }, + new Entry("{BATT_MIN} min") { IgnoreMissing = true }, + new Entry("C{BATT_CHARGE_W} W") { IgnoreMissing = true } } }, new Entry("Frametime"), diff --git a/PerformanceOverlay/Sensors.cs b/PerformanceOverlay/Sensors.cs index 4857244..36858da 100644 --- a/PerformanceOverlay/Sensors.cs +++ b/PerformanceOverlay/Sensors.cs @@ -215,6 +215,16 @@ namespace PerformanceOverlay Format = "F0" } }, + { + "BATT_MIN", new HardwareSensor() + { + HardwareType = HardwareType.Battery, + SensorType = SensorType.TimeSpan, + SensorName = "Remaining Time (Estimated)", + Format = "F0", + Multiplier = 1.0f/60.0f + } + }, { "BATT_W", new HardwareSensor() { diff --git a/RELEASE.md b/RELEASE.md index 9baed19..561a22e 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -5,5 +5,6 @@ - Add Volume Up/Down controls (disable with `EnableVolumeControl` in `PowerControl.dll.config`) - Add `0` brightness - Support any battery model +- Add battery remaining If you found it useful buy me [Ko-fi](https://ko-fi.com/ayufan).