| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-15 17:41:07 +0200 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-09-15 17:41:07 +0200 | 
| commit | c9786fd27954c79faf901963003a8b7b3131ca4c (patch) | |
| tree | 85919cf11c2e54908cfeeebe59acf03283f131c8 /client/elm/battlemap/src/View.elm | |
| parent | 9a2d8f37dea8e14afa57affb135def13954df547 (diff) | |
Adds UI to test the Navigator.
Diffstat (limited to 'client/elm/battlemap/src/View.elm')
| -rw-r--r-- | client/elm/battlemap/src/View.elm | 21 | 
1 files changed, 13 insertions, 8 deletions
| diff --git a/client/elm/battlemap/src/View.elm b/client/elm/battlemap/src/View.elm index f4774c7..7058681 100644 --- a/client/elm/battlemap/src/View.elm +++ b/client/elm/battlemap/src/View.elm @@ -3,10 +3,11 @@ module View exposing (view)  import Html exposing (Html, button, div, text, table, tr, td)  import Html.Events exposing (onClick) -import Update exposing (Msg(Increment, Decrement)) +import Update exposing (..)  import Model exposing (Model)  import Battlemap.Html as Batmap exposing (view) +import Battlemap.Direction exposing (..)  -- VIEW @@ -16,16 +17,20 @@ view model =        []        [           (button -            [ (onClick Decrement) ] -            [ (text "-") ] +            [ (onClick (DirectionRequest Left)) ] +            [ (text "Left") ]           ), -         (div -            [] -            [ (text (toString model)) ] +         (button +            [ (onClick (DirectionRequest Down)) ] +            [ (text "Down") ] +         ), +         (button +            [ (onClick (DirectionRequest Up)) ] +            [ (text "Up") ]           ),           (button -            [ (onClick Increment) ] -            [ (text "+") ] +            [ (onClick (DirectionRequest Right)) ] +            [ (text "Right") ]           ),           (div              [] | 


