From 3613b22c8f04ac5cb23a7dd4a1c06d1e5654ff10 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 19 Apr 2026 12:33:40 +0200 Subject: [PATCH] style(ui): apply gdformat to atlas split files Co-Authored-By: Claude Sonnet 4.6 --- client/ui/implant/atlas_panel.gd | 8 ++++++-- client/ui/implant/atlas_planet_map.gd | 2 +- client/ui/implant/atlas_reach_map.gd | 24 ++++++++++++++++++------ 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/client/ui/implant/atlas_panel.gd b/client/ui/implant/atlas_panel.gd index 5e626fcec..43f3b0f61 100644 --- a/client/ui/implant/atlas_panel.gd +++ b/client/ui/implant/atlas_panel.gd @@ -17,7 +17,9 @@ extends Control ## + HudGroups.open_app("implant/economics") — D-191 cross-panel integration. signal economics_link_requested(system_id: String) -enum Level { REACH_MAP = 0, SYSTEM_PICKER = 1, ORBITAL_DIAGRAM = 2, BODY_ENTRY = 3, HEIGHTMAP_VIEWER = 4 } +enum Level { + REACH_MAP = 0, SYSTEM_PICKER = 1, ORBITAL_DIAGRAM = 2, BODY_ENTRY = 3, HEIGHTMAP_VIEWER = 4 +} const APP_PATH := "implant/map" const STAR_MAP_DATA := "res://data/star_map_data.json" @@ -284,7 +286,9 @@ func _refresh_screen_header() -> void: var subtitle: String = "" if not star_type.is_empty(): subtitle = star_type + " · " - subtitle += "%d orbital bodies · %d stations" % [top_count, _system_map.get_station_count()] + subtitle += ( + "%d orbital bodies · %d stations" % [top_count, _system_map.get_station_count()] + ) hint = subtitle + " · click body → atlas entry · esc back" Level.BODY_ENTRY: var sys2: Dictionary = _system_map.current_system() diff --git a/client/ui/implant/atlas_planet_map.gd b/client/ui/implant/atlas_planet_map.gd index 694aec504..ddde1d3d4 100644 --- a/client/ui/implant/atlas_planet_map.gd +++ b/client/ui/implant/atlas_planet_map.gd @@ -3,7 +3,7 @@ extends Control ## Level 3 BODY_ENTRY and Level 4 HEIGHTMAP_VIEWER widget for AtlasPanel (#844, D-191). ## Shows body detail panel and delegates heightmap rendering to AtlasViewer. -signal back_to_viewer_body() +signal back_to_viewer_body signal economics_link_requested(system_id: String) const PANEL_WIDTH: float = 320.0 diff --git a/client/ui/implant/atlas_reach_map.gd b/client/ui/implant/atlas_reach_map.gd index d47c6453f..e7a847650 100644 --- a/client/ui/implant/atlas_reach_map.gd +++ b/client/ui/implant/atlas_reach_map.gd @@ -147,7 +147,9 @@ func _rebuild_reach_info_panel() -> void: 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 = REACH_SECTOR_COLORS.get(node.get("geographic_sector", ""), COLOR_TEXT_DIM) + var sector_color: Color = REACH_SECTOR_COLORS.get( + node.get("geographic_sector", ""), COLOR_TEXT_DIM + ) _reach_info_panel.add_component( ImplantDataRow.new("%s corridor (hop %d)" % [sector_str, hop], sector_color) ) @@ -333,8 +335,12 @@ func _draw_reach_sector_labels(center: Vector2) -> void: var color: Color = REACH_SECTOR_COLORS.get(sector, COLOR_TEXT_DIM) var font := get_theme_default_font() var font_size: int = 10 - var text_size: Vector2 = font.get_string_size(label, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size) - draw_string(font, pos - text_size / 2.0, label, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size, color) + var text_size: Vector2 = font.get_string_size( + label, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size + ) + draw_string( + font, pos - text_size / 2.0, label, HORIZONTAL_ALIGNMENT_LEFT, -1, font_size, color + ) func _draw_reach_systems(center: Vector2) -> void: @@ -373,7 +379,9 @@ func _draw_reach_systems(center: Vector2) -> void: show_label = topology in ["hub", "junction", ""] if show_label: var label_color: Color = ( - COLOR_TEXT if sid == _reach_selected or sid == _reach_hovered else COLOR_TEXT_DIM + COLOR_TEXT + if sid == _reach_selected or sid == _reach_hovered + else COLOR_TEXT_DIM ) var font := get_theme_default_font() var label_size := font.get_string_size(label, HORIZONTAL_ALIGNMENT_LEFT, -1, 9) @@ -429,12 +437,16 @@ func _gui_input(event: InputEvent) -> void: _reach_pan_start_offset = _reach_pan MOUSE_BUTTON_WHEEL_UP: var old_zoom := _reach_zoom - _reach_zoom = clampf(_reach_zoom + REACH_ZOOM_STEP, REACH_ZOOM_MIN, REACH_ZOOM_MAX) + _reach_zoom = clampf( + _reach_zoom + REACH_ZOOM_STEP, REACH_ZOOM_MIN, REACH_ZOOM_MAX + ) if _reach_zoom != old_zoom: _dirty = true MOUSE_BUTTON_WHEEL_DOWN: var old_zoom := _reach_zoom - _reach_zoom = clampf(_reach_zoom - REACH_ZOOM_STEP, REACH_ZOOM_MIN, REACH_ZOOM_MAX) + _reach_zoom = clampf( + _reach_zoom - REACH_ZOOM_STEP, REACH_ZOOM_MIN, REACH_ZOOM_MAX + ) if _reach_zoom != old_zoom: _dirty = true else: