Safe Haskell | None |
---|---|
Language | Haskell2010 |
A set of Frame monad operations.
Synopsis
- pushFrame :: MonadClientUI m => m ()
- promptGetKey :: MonadClientUI m => ColorMode -> Overlay -> Bool -> [KM] -> m KM
- stopPlayBack :: MonadClientUI m => m ()
- animate :: MonadClientUI m => LevelId -> Animation -> m ()
- fadeOutOrIn :: MonadClientUI m => Bool -> m ()
- drawOverlay :: MonadClientUI m => ColorMode -> Bool -> Overlay -> LevelId -> m PreFrame
- renderFrames :: MonadClientUI m => LevelId -> Animation -> m PreFrames
- resetPlayBack :: MonadClientUI m => m ()
Documentation
pushFrame :: MonadClientUI m => m () Source #
Push the frame depicting the current level to the frame queue. Only one line of the report is shown, as in animations, because it may not be our turn, so we can't clear the message to see what is underneath.
promptGetKey :: MonadClientUI m => ColorMode -> Overlay -> Bool -> [KM] -> m KM Source #
stopPlayBack :: MonadClientUI m => m () Source #
animate :: MonadClientUI m => LevelId -> Animation -> m () Source #
Render and display animations on top of the current screen frame.
fadeOutOrIn :: MonadClientUI m => Bool -> m () Source #
Internal operations
drawOverlay :: MonadClientUI m => ColorMode -> Bool -> Overlay -> LevelId -> m PreFrame Source #
Draw the current level with the overlay on top. If the overlay is too long, it's truncated. Similarly, for each line of the overlay, if it's too wide, it's truncated.
renderFrames :: MonadClientUI m => LevelId -> Animation -> m PreFrames Source #
Render animations on top of the current screen frame.
resetPlayBack :: MonadClientUI m => m () Source #