Safe Haskell | None |
---|---|
Language | Haskell2010 |
A set of Frame monad operations.
Synopsis
- pushFrame :: MonadClientUI m => Bool -> m ()
- promptGetKey :: (MonadClient m, MonadClientUI m) => ColorMode -> FontOverlayMap -> Bool -> [KM] -> m KM
- addToMacro :: Map KM CmdTriple -> KM -> KeyMacroFrame -> KeyMacroFrame
- dropEmptyMacroFrames :: KeyMacroFrame -> [KeyMacroFrame] -> (KeyMacroFrame, [KeyMacroFrame])
- lastMacroFrame :: KeyMacroFrame -> [KeyMacroFrame] -> KeyMacroFrame
- stopPlayBack :: (MonadClient m, MonadClientUI m) => m ()
- animate :: MonadClientUI m => LevelId -> Animation -> m ()
- fadeOutOrIn :: MonadClientUI m => Bool -> m ()
- drawOverlay :: MonadClientUI m => ColorMode -> Bool -> FontOverlayMap -> LevelId -> m PreFrame3
- oneLineBasicFrame :: MonadClientUI m => LevelId -> DisplayFont -> m PreFrame3
- renderAnimFrames :: MonadClientUI m => Bool -> LevelId -> Animation -> m PreFrames3
- resetPlayBack :: MonadClientUI m => m ()
Documentation
pushFrame :: MonadClientUI m => Bool -> 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 :: (MonadClient m, MonadClientUI m) => ColorMode -> FontOverlayMap -> Bool -> [KM] -> m KM Source #
addToMacro :: Map KM CmdTriple -> KM -> KeyMacroFrame -> KeyMacroFrame Source #
dropEmptyMacroFrames :: KeyMacroFrame -> [KeyMacroFrame] -> (KeyMacroFrame, [KeyMacroFrame]) Source #
lastMacroFrame :: KeyMacroFrame -> [KeyMacroFrame] -> KeyMacroFrame Source #
stopPlayBack :: (MonadClient m, 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 -> FontOverlayMap -> LevelId -> m PreFrame3 Source #
Draw the current level with the overlay on top.
oneLineBasicFrame :: MonadClientUI m => LevelId -> DisplayFont -> m PreFrame3 Source #
renderAnimFrames :: MonadClientUI m => Bool -> LevelId -> Animation -> m PreFrames3 Source #
Render animations on top of the current screen frame.
resetPlayBack :: MonadClientUI m => m () Source #