style(ui): apply gdformat to atlas split files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-19 12:33:40 +02:00
co-authored by Claude Sonnet 4.6
parent 03060ff2e1
commit 3613b22c8f
3 changed files with 25 additions and 9 deletions
+6 -2
View File
@@ -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()
+1 -1
View File
@@ -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
+18 -6
View File
@@ -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: