blob: 62aa89f93eaf4884fd0c90626cda15250ed03b71 (
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
39
40
41
42
43
44
45
46
47
48
49
50
|
module View.SubMenu.Markers exposing (get_html)
-- Elm -------------------------------------------------------------------------
import Dict
import Html
import Html.Attributes
import Html.Events
-- Battle Map ------------------------------------------------------------------
import BattleMap.Struct.Tile
import BattleMap.Struct.Map
import BattleMap.Struct.Marker
import BattleMap.Struct.TileInstance
import BattleMap.View.Tile
-- Local Module ----------------------------------------------------------------
import Struct.Event
import Struct.Model
--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------
get_marker_html : (
(String, BattleMap.Struct.Marker.Type)
-> (Html.Html Struct.Event.Type)
)
get_marker_html (ref, marker) =
(Html.div
[
]
[(Html.text ref)]
)
--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
get_html : Struct.Model.Type -> (Html.Html Struct.Event.Type)
get_html model =
(Html.div
[
(Html.Attributes.class "tabmenu-content"),
(Html.Attributes.class "tabmenu-markers-tab")
]
(List.map
(get_marker_html)
(Dict.toList (BattleMap.Struct.Map.get_markers model.map))
)
)
|