Skip to content

Commit 78d58fe

Browse files
authored
PerformanceOverlay: Battery-only setting in Performance Overlay (#193)
1 parent b5be6d9 commit 78d58fe

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CommonHelpers/GlobalConfig.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public enum OverlayMode : uint
2020
{
2121
FPS = 10032,
2222
FPSWithBattery,
23+
Battery,
2324
Minimal,
2425
Detail,
2526
Full

PerformanceOverlay/Overlays.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ private String EvaluateText(Sensors sensors)
101101
Include = { OverlayMode.FPS, OverlayMode.FPSWithBattery }
102102
},
103103

104+
// Just battery
105+
new Entry {
106+
Nested =
107+
{
108+
new Entry("<C4><A3>{BATT_%}<A><A1><S1> %<C><S><A>")
109+
},
110+
Include = { OverlayMode.Battery }
111+
},
112+
104113
// Minimal and Detail
105114
new Entry {
106115
Nested =

0 commit comments

Comments
 (0)