Safe Haskell | None |
---|---|
Language | Haskell2010 |
A set of Frame monad operations.
- drawOverlay :: MonadClientUI m => ColorMode -> Bool -> [AttrLine] -> LevelId -> m FrameForall
- promptGetKey :: MonadClientUI m => ColorMode -> [AttrLine] -> Bool -> [KM] -> m KM
- stopPlayBack :: MonadClientUI m => m ()
- animate :: MonadClientUI m => LevelId -> Animation -> m ()
- fadeOutOrIn :: MonadClientUI m => Bool -> m ()
Documentation
drawOverlay :: MonadClientUI m => ColorMode -> Bool -> [AttrLine] -> LevelId -> m FrameForall 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.
promptGetKey :: MonadClientUI m => ColorMode -> [AttrLine] -> 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 #