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

Swarm.TUI.View.Popup

Description

Rendering (& animating) notification popups.

Synopsis

Documentation

animFrames :: Int Source #

The number of frames taken by each step of the notification popup animation.

drawPopups :: AppState -> Widget Name Source #

Draw the current notification popup (if any).

popupRows :: Int -> Int Source #

Compute the number of rows of the notification popup we should be showing, based on the number of frames the popup has existed. This is what causes the popup to animate in and out of existence.