swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.TUI.Launch.Controller

Description

Event handling for the scenario launch configuration dialog.

Synopsis

Documentation

cacheValidatedSeedInput :: EventM Name LaunchOptions () Source #

This is split out from the combined parameter-validation function because validating the seed is cheap, and shouldn't have to pay the cost of re-parsing script code as the user types in the seed selection field.

handleFBEvent :: BrickEvent Name AppEvent -> EventM Name AppState () Source #

If the FileBrowser is in "search mode", then we allow more of the key events to pass through. Otherwise, we intercept things like "q" (for quit) and Space (so that we can restrict file selection to at most one).