This commit is contained in:
phidias authored and GitHub committed 2026-11-12 20:16:52 +09:00
1 parent 72531c9b7a
commit 6fe044b171
1 file changed
+23 -8
+23 -8
View File
@@ -165,35 +165,50 @@ function Elements.stats_table.calculate_display_data(s_index)
production = { production = {
value = production, value = production,
caption = format_string( caption = format_string(
"%.1f ~ %.1f / %.1f", "%s ~ %s / %s",
format_energy(limit, "W"), format_energy(limit, "W"),
format_energy(statistics.energy_production, "W"), format_energy(statistics.energy_production, "W"),
format_energy(statistics.energy_max, "W") format_energy(statistics.energy_max, "W")
), ),
tooltip = format_string("%.1f %%", production * 100), tooltip = format_string(
"%.1f %%",
production * 100
),
}, },
capacity = { capacity = {
value = capacity, value = capacity,
caption = format_string( caption = format_string(
"%.1f / %.1f", "%s / %s",
format_energy(statistics.energy_storage, "J"), format_energy(statistics.energy_storage, "J"),
format_energy(statistics.energy_capacity, "J") format_energy(statistics.energy_capacity, "J")
), ),
tooltip = format_string("%.1f %%", capacity * 100), tooltip = format_string(
"%.1f %%",
capacity * 100
),
}, },
sustained = { sustained = {
value = sustained, value = sustained,
caption = format_string( caption = format_string(
"%.1f / %.1f", "%s / %s",
format_energy(statistics.energy_sustained, "W"), format_energy(statistics.energy_sustained, "W"),
format_energy(statistics.energy_total_production, "W") format_energy(statistics.energy_total_production, "W")
), ),
tooltip = format_string("%.1f %%", sustained * 100), tooltip = format_string(
"%.1f %%",
sustained * 100
),
}, },
["surface-area"] = { ["surface-area"] = {
value = min(max(surface_area / 0.1, 0), 1), value = min(max(surface_area / 0.1, 0), 1),
caption = format_number(statistics.remaining_surface_area, false), caption = format_number(
tooltip = format_string("%.1f %%", surface_area * 100), statistics.remaining_surface_area,
false
),
tooltip = format_string(
"%.1f %%",
surface_area * 100
),
}, },
} }
end end