Safe Haskell | None |
---|---|
Language | Haskell2010 |
GameViewInternal
Description
This module contains things used in GameView.hs
but which are likely rarely modified, to avoid
GameView.hs growing too much. Other modules besides
GameView
should nod depend on this module.
|
Synopsis
- animToFade :: Animation -> Fade
- newtype Border = Border {}
- data Borders = Borders {}
- errView :: Game -> Int -> Maybe (View Action)
- fadeouts :: Model -> Int -> T -> Styled (Maybe (View Action))
- heartWobble :: Int -> T -> Styled [View Action]
- hintView :: Int -> Game -> Borders -> Maybe (View Action)
- keyframes :: MisoString -> MisoString -> [(Int, String)] -> MisoString -> MisoString
- manaView :: Game -> Int -> View a
- messageView :: Animation -> Maybe (Styled (View a))
- mkBorders :: Game -> Borders
- noDrag :: Attribute a
- scoreViews :: Game -> Int -> [Styled (View Action)]
- data StackPosition
- stackView :: Game -> Int -> Player -> StackPosition -> StackKind -> Styled [View Action]
- turnView :: Game -> Int -> Styled (View Action)
- statChange :: Int -> StatChangeKind -> T -> Styled [View Action]
- data StatChangeKind
Documentation
animToFade :: Animation -> Fade #
What fading a Animation
triggers
Data for drawing a border. The only data is the color, since for now all borders have the same width.
keyframes :: MisoString -> MisoString -> [(Int, String)] -> MisoString -> MisoString #
data StackPosition #
stackView :: Game -> Int -> Player -> StackPosition -> StackKind -> Styled [View Action] #
The widget showing the number of cards in the stack/discarded stack
statChange :: Int -> StatChangeKind -> T -> Styled [View Action] #
data StatChangeKind #