extends Node2D # Preview, not a test. Opens the CraftMenu so its layout can be checked on a # real viewport - the mothership's "Load ore" label was falling off the bottom # of shorter screens, which no headless test can see. # # bash tests/screenshot.sh res://tests/_craft_menu_preview.tscn /tmp/m.png 20 720x1280 # ... and again at 720x960 to check a shorter screen format. func _ready() -> void: GameState.buildings.clear() GameState.extractors.clear() GameState.transporters.clear() GameState.rocks = 180 GameState.fleet_cargo = 24 GameState.unlocked = ["shipyards", "logistics", "freight"] var main: Node = load("res://Main.tscn").instantiate() add_child(main) main.get_node("BuildingField").place(GameState.BUILDING_TRANSPORT_HUB, Vector2(400.0, 0.0)) var bc: Node = main.get_node("BuildController") bc.craft_building_id = 1 main.get_node("UI/CraftMenu").visible = true if "Craft" == "Craft": bc._refresh_craft_status() else: bc._refresh_load_ore()