summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-10-18 13:48:58 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-10-18 13:48:58 +0200 |
commit | 2805c647010cbcca126ebf162fcbdd691fc72488 (patch) | |
tree | 2e05d66c8177cc5ff5125e2cbc23fdd4b1d05e36 /elm/battlemap/src/View | |
parent | d0dc7f665ba90d126e41048b2d7b992c3e804163 (diff) |
Correcting whatever the compiler tells me is wrong.
Diffstat (limited to 'elm/battlemap/src/View')
-rw-r--r-- | elm/battlemap/src/View/Battlemap.elm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/elm/battlemap/src/View/Battlemap.elm b/elm/battlemap/src/View/Battlemap.elm new file mode 100644 index 0000000..1e10a2a --- /dev/null +++ b/elm/battlemap/src/View/Battlemap.elm @@ -0,0 +1,26 @@ +module View.Battlemap exposing (view) + +import View.Battlemap.Tile +import View.Battlemap.Navigator + +view : Battlemap.Type -> (Html.Html Event.Type) +view battlemap = + (Html.div + [ + (Html.Attribute.class "battlemap-container") + ] + [ + ( + , + case battlemap.navigator of + (Just navigator) -> + (Html.div + [ + (Html.Attribute.class "battlemap-navigator-container") + ] + [ (Battlemap.Navigator.Html.view battlemap.navigator) ] + ) + + Nothing -> (Html.text "") -- Meaning no element. + ] + ) |