feat(ui): add system population and GDP to star map info panel (#785)

Star map popup now shows POPULATION and GDP rows when data is present.
Generation script updated to compute GDP from population × tier-based
per-capita schedule. 275/301 systems have GDP data (26 uninhabited
correctly omitted).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-10 13:22:10 +02:00
co-authored by Claude Opus 4.6
parent 9d9ea96be1
commit 766da969de
3 changed files with 327 additions and 3 deletions
File diff suppressed because it is too large Load Diff
+6 -3
View File
@@ -507,10 +507,13 @@ func _rebuild_info_panel() -> void:
# Population + GDP
var population: String = node.get("population", "")
if not population.is_empty():
var gdp: String = node.get("gdp", "")
if not population.is_empty() or not gdp.is_empty():
_info_panel.add_component(ImplantDataRow.new("")) # blank line spacer
_info_panel.add_component(ImplantDataRow.new("pop " + population))
_info_panel.add_component(ImplantDataRow.new("GDP —"))
if not population.is_empty():
_info_panel.add_component(ImplantDataRow.new("pop " + population))
var gdp_label: String = "gdp " + (gdp if not gdp.is_empty() else "—")
_info_panel.add_component(ImplantDataRow.new(gdp_label))
# ── GTTR excerpt ─────────────────────────────────────────────────────────
var gttr: String = node.get("gttr_excerpt", "")