extends Node2D # Preview, not a test. Opens the build menu itself, so the three-row layout # added for the Transport Hub (#18) can be checked for fit on the real phone # viewport - every button, label and price moved, and a bad offset is # invisible to a headless test. # # bash tests/screenshot.sh res://tests/_build_menu_preview.tscn /tmp/menu.png 20 720x1280 func _ready() -> void: GameState.buildings.clear() GameState.extractors.clear() GameState.rocks = 500 # Everything researched, so nothing is greyed out and the whole menu is # legible at full strength. # Partly researched, to show the menu repacking around what is hidden. GameState.unlocked = ["shipyards", "logistics"] var main: Node = load("res://world/Main.tscn").instantiate() add_child(main) main.get_node("UI/BuildMenu").visible = true main.get_node("BuildController")._refresh_build_status()