summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/battle-map/BattleMap/View/Tile.elm')
-rw-r--r--src/shared/battle-map/BattleMap/View/Tile.elm17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/shared/battle-map/BattleMap/View/Tile.elm b/src/shared/battle-map/BattleMap/View/Tile.elm
index d2bf044..1d92493 100644
--- a/src/shared/battle-map/BattleMap/View/Tile.elm
+++ b/src/shared/battle-map/BattleMap/View/Tile.elm
@@ -10,6 +10,8 @@ import Html
import Html.Attributes
import Html.Events
+import Set
+
-- Battle Map ------------------------------------------------------------------
import Constants.UI
import Constants.IO
@@ -58,6 +60,21 @@ get_content_html tile =
(
(Html.div
[
+ (Html.Attributes.class "tile-icon-dg")
+ ]
+ (
+ case
+ (Set.size
+ (BattleMap.Struct.TileInstance.get_triggers tile)
+ )
+ of
+ 0 -> []
+ other -> [(Html.text (String.fromInt other))]
+ )
+ )
+ ::
+ (Html.div
+ [
(Html.Attributes.class "tile-icon-bg"),
(Html.Attributes.style
"background-image"