Pow3r bugfixes (#16941)

This commit is contained in:
Pieter-Jan Briers
2023-05-30 02:32:59 +02:00
committed by GitHub
parent 1d72e0f133
commit 2ec53b818c
3 changed files with 7 additions and 5 deletions

View File

@@ -237,6 +237,8 @@ namespace Pow3r
Begin($"Battery {battery.Id}##Bat{battery.Id}");
Checkbox("Enabled", ref battery.Enabled);
Checkbox("CanDischarge", ref battery.CanDischarge);
Checkbox("CanCharge", ref battery.CanCharge);
SliderFloat("Capacity", ref battery.Capacity, 0, 100000, "%.0f J");
SliderFloat("Max charge rate", ref battery.MaxChargeRate, 0, 1000, "%.0f W");
SliderFloat("Max supply", ref battery.MaxSupply, 0, 1000, "%.0f W");