factoriax.playground.menu.main_menu

Contents

factoriax.playground.menu.main_menu#

Title screen for Factoriax.

Two-panel layout: a list of menu options on the left, an explanation panel on the right.

factoriax.playground.menu.main_menu.run_main_menu(screen: Surface, kb_lookup: dict[tuple[int, int], frozenset[str]] | None = None, ctrl_lookup: dict[str, frozenset[str]] | None = None) → str | None#

Show the main menu, and return the entry that the user selected.

Returns:

  • "play", "editor", "settings", or None

  • (quit / window closed).