20 lines
769 B
GDScript3
20 lines
769 B
GDScript3
|
|
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.
|
||
|
|
GameState.unlocked = ["shipyards", "logistics", "freight", "coordination"]
|
||
|
|
var main: Node = load("res://Main.tscn").instantiate()
|
||
|
|
add_child(main)
|
||
|
|
main.get_node("UI/BuildMenu").visible = true
|