Anomaly Generator Tweaks (#13856)

This commit is contained in:
Nemanja
2023-02-06 14:53:59 -05:00
committed by GitHub
parent 0685611e18
commit 1b8c48180b
13 changed files with 162 additions and 9 deletions

View File

@@ -37,7 +37,9 @@ public sealed partial class AnomalyGeneratorWindow : FancyWindow
var fuelCompletion = Math.Clamp((float) state.FuelAmount / state.FuelCost, 0f, 1f);
FuelBar.Value = fuelCompletion;
FuelText.Text = $"{fuelCompletion:P}";
var charges = state.FuelAmount / state.FuelCost;
FuelText.Text = Loc.GetString("anomaly-generator-charges", ("charges", charges));
UpdateTimer();
UpdateReady(); // yes this can trigger twice. no i don't care