extends Control var captain: Resource var _content: VBoxContainer var _economy_labels: Dictionary = {} func _ready() -> void: captain = preload("res://scripts/captain/captain_progress.gd").new() captain.expedition.deuter = 8000 captain.expedition.distant_maps = { "preview_1":{"id":"preview_1","level":5,"name":"Odległy sektor 005","source_planet":"Eden","source_level":1}, "preview_2":{"id":"preview_2","level":125,"name":"Odległy sektor 125","source_planet":"Ostatni Horyzont","source_level":120} } var bg := ColorRect.new() bg.color = Color("0b171e") bg.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) add_child(bg) var art := TextureRect.new() art.texture = load("res://assets/planets/props/hermit_cartographer.png") art.position = Vector2(20,80) art.size = Vector2(650,520) art.expand_mode = TextureRect.EXPAND_IGNORE_SIZE art.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED add_child(art) var label := Label.new() label.text = "PUSTELNIK / KARTOGRAF" label.position = Vector2(110,35) label.add_theme_font_size_override("font_size",25) label.modulate = Color("e9b4fc") add_child(label) var scroll := ScrollContainer.new() scroll.position = Vector2(705,24) scroll.size = Vector2(550,670) scroll.horizontal_scroll_mode = ScrollContainer.SCROLL_MODE_DISABLED add_child(scroll) _content = VBoxContainer.new() _content.size_flags_horizontal = Control.SIZE_EXPAND_FILL scroll.add_child(_content) preload("res://scripts/planets/distant_expeditions_panel.gd").build(self) _economy_labels.expedition_fuel.text = "Zapas paliwa: %.1f deuteru" % captain.expedition.deuter var fuel_before: float = captain.expedition.deuter var maps_before: Dictionary = captain.expedition.distant_maps.duplicate(true) var buttons := find_children("FlyDistant_*","Button",true,false) for button in buttons: button.pressed.emit() assert(captain.expedition.deuter == fuel_before) assert(captain.expedition.distant_maps == maps_before) print("DISTANT_PREVIEW_OK: display fixture only; actual flights are covered by distant_integration") func _travel_to_distant(_map_id: String) -> void: pass