From 3f611ae0f7199478a5e38edf52a6570e91165f2e Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 5 Apr 2026 12:03:25 +0200 Subject: [PATCH] =?UTF-8?q?fix(ui):=20star=20map=20info=20=E2=80=94=20hop?= =?UTF-8?q?=20merged=20into=20corridor=20line,=20bodies=20on=20one=20line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "CORE corridor (hop 1)" with sector color. Bodies back to single line "1 habitable · 1 inhabited" as originally formatted in the data. Co-Authored-By: Claude Opus 4.6 (1M context) --- client/ui/star_map.gd | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/client/ui/star_map.gd b/client/ui/star_map.gd index 504beb10a..17f1470ad 100644 --- a/client/ui/star_map.gd +++ b/client/ui/star_map.gd @@ -477,20 +477,18 @@ func _rebuild_info_panel() -> void: var star_type: String = node.get("star_type", "") if not star_type.is_empty(): _info_panel.add_component(ImplantDataRow.new(star_type + " star")) - var hop: int = int(node.get("hop_distance", 0)) - _info_panel.add_component(ImplantDataRow.new("hop %d" % hop)) var sector_str: String = node.get("geographic_sector", "unknown").replace("_", " ").to_upper() + var hop: int = int(node.get("hop_distance", 0)) var sector_color: Color = SECTOR_COLORS.get(node.get("geographic_sector", ""), COLOR_TEXT_DIM) - _info_panel.add_component(ImplantDataRow.new(sector_str + " corridor", sector_color)) + _info_panel.add_component( + ImplantDataRow.new("%s corridor (hop %d)" % [sector_str, hop], sector_color) + ) - # Bodies — split "1 habitable · 1 inhabited" into separate lines + # Bodies — single line var bodies: String = node.get("bodies", "") if not bodies.is_empty(): - for part: String in bodies.split("·"): - var trimmed := part.strip_edges() - if not trimmed.is_empty(): - _info_panel.add_component(ImplantDataRow.new(trimmed)) + _info_panel.add_component(ImplantDataRow.new(bodies)) # Population + GDP var population: String = node.get("population", "")