blob: 11f639ee7868c2d4ac007006a3f4c6c228ab1dd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
module View.SubMenu.Timeline.PlayerTurnStart exposing (get_html)
-- Elm -------------------------------------------------------------------------
import Html
import Html.Attributes
--import Html.Events
-- Battlemap -------------------------------------------------------------------
import Struct.Event
import Struct.TurnResult
--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
get_html : (
Struct.TurnResult.PlayerTurnStart ->
(Html.Html Struct.Event.Type)
)
get_html pturns =
(Html.div
[
(Html.Attributes.class "battlemap-timeline-element"),
(Html.Attributes.class "battlemap-timeline-turn-start")
]
[
(Html.text
(
"Player "
++ (toString pturns.player_index)
++ "'s turn has started."
)
)
]
)
|