21 lines
882 B
GDScript3
21 lines
882 B
GDScript3
|
|
extends Node2D
|
||
|
|
|
||
|
|
# Preview, not a test - #54's build menu screenshot. Everything researched,
|
||
|
|
# including power_systems, so all 7 buildings show at once: the 7th (gas
|
||
|
|
# burner) is the first to land beyond the menu's original 3-row/6-slot
|
||
|
|
# layout, worth checking for fit even though the ticket calls
|
||
|
|
# BuildController._layout_build_menu() already generic enough to need no
|
||
|
|
# changes.
|
||
|
|
#
|
||
|
|
# bash tests/screenshot.sh res://tests/_gas_burner_build_menu_preview.tscn /tmp/menu.png 20 720x1280
|
||
|
|
|
||
|
|
|
||
|
|
func _ready() -> void:
|
||
|
|
GameState.buildings.clear()
|
||
|
|
GameState.extractors.clear()
|
||
|
|
GameState.rocks = 500
|
||
|
|
GameState.unlocked = ["shipyards", "logistics", "coordination", "freight", "vessel_science", "power_systems"]
|
||
|
|
var main: Node = load("res://Main.tscn").instantiate()
|
||
|
|
add_child(main)
|
||
|
|
main.get_node("UI/BuildMenu").visible = true
|
||
|
|
main.get_node("BuildController")._refresh_build_status()
|