Show battery level for selected devices in Power Monitoring Console (#33854)
* Use class instead of out variables * Show battery level in power monitoring console * Better color contrast for battery level + localized string * Add visualization to battery percentage * Reverts random ChatSystem.cs whitespace change * Address review * Show BatteryLevel stats in child view when selecting devices --------- Co-authored-by: Crotalus <crotalus@users.noreply.github.com>
This commit is contained in:
@@ -102,14 +102,16 @@ public struct PowerMonitoringConsoleEntry
|
||||
public NetEntity NetEntity;
|
||||
public PowerMonitoringConsoleGroup Group;
|
||||
public double PowerValue;
|
||||
public float? BatteryLevel;
|
||||
|
||||
[NonSerialized] public PowerMonitoringDeviceMetaData? MetaData = null;
|
||||
|
||||
public PowerMonitoringConsoleEntry(NetEntity netEntity, PowerMonitoringConsoleGroup group, double powerValue = 0d)
|
||||
public PowerMonitoringConsoleEntry(NetEntity netEntity, PowerMonitoringConsoleGroup group, double powerValue = 0d, float? batteryLevel = null)
|
||||
{
|
||||
NetEntity = netEntity;
|
||||
Group = group;
|
||||
PowerValue = powerValue;
|
||||
BatteryLevel = batteryLevel;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user