Refactor gameplay menus into owned scenes

This commit is contained in:
Loïc Wisniewski 2026-08-31 02:18:08 +02:00
commit a17fe88197
50 changed files with 3449 additions and 3619 deletions

View file

@ -98,9 +98,9 @@ func _process(delta: float) -> bool:
controller._confirm_build()
if game_state.extractors.size() != before:
return _fail("an extractor was built on a research_lab planet")
if not ("nothing to extract" in controller.build_status.text):
return _fail("refusal did not explain itself, status was '%s'" % controller.build_status.text)
print("extractor refused on a research_lab planet, explained: '%s'" % controller.build_status.text)
if not ("nothing to extract" in controller.build_menu.status.text):
return _fail("refusal did not explain itself, status was '%s'" % controller.build_menu.status.text)
print("extractor refused on a research_lab planet, explained: '%s'" % controller.build_menu.status.text)
print("TEST_RESEARCH_LAB_EXTRACTOR_GATE: PASS")
quit(0)