summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-01-17 17:45:22 +0100
committernsensfel <SpamShield0@noot-noot.org>2019-01-17 17:45:22 +0100
commit14a7576ecf56f385d78e0c9ba84b895679c42ee8 (patch)
tree41daa4a46edd334a801fe3270d363ed052552e40 /src/battle/src/View
parent883c92cfe2ca94321c995d1a12b44631e77b4518 (diff)
The battle loads, but it's nobody's turn to play...
Diffstat (limited to 'src/battle/src/View')
-rw-r--r--src/battle/src/View/Character.elm16
-rw-r--r--src/battle/src/View/Map/Character.elm9
2 files changed, 20 insertions, 5 deletions
diff --git a/src/battle/src/View/Character.elm b/src/battle/src/View/Character.elm
index 9916723..49de74b 100644
--- a/src/battle/src/View/Character.elm
+++ b/src/battle/src/View/Character.elm
@@ -19,6 +19,7 @@ import Struct.Character
import Struct.CharacterTurn
import Struct.Event
import Struct.Model
+import Struct.Portrait
import Struct.UI
--------------------------------------------------------------------------------
@@ -112,7 +113,13 @@ get_icon_head_html char =
[
(Html.Attributes.class "character-icon-head"),
(Html.Attributes.class
- ("asset-character-icon-" ++ (Struct.Character.get_icon_id char))
+ (
+ "asset-character-icon-"
+ ++
+ (Struct.Portrait.get_icon_id
+ (Struct.Character.get_portrait char)
+ )
+ )
)
]
[
@@ -156,7 +163,7 @@ get_portrait_body_html char =
(Html.Attributes.class
(
"asset-character-portrait-"
- ++ (Struct.Character.get_portrait_id char)
+ ++ (Struct.Portrait.get_id (Struct.Character.get_portrait char))
)
)
]
@@ -179,7 +186,10 @@ get_portrait_armor_html char =
(Html.Attributes.class
(
"asset-armor-variation-"
- ++ (Struct.Character.get_armor_variation char)
+ ++
+ (Struct.Portrait.get_body_id
+ (Struct.Character.get_portrait char)
+ )
)
)
]
diff --git a/src/battle/src/View/Map/Character.elm b/src/battle/src/View/Map/Character.elm
index d7934d3..af41050 100644
--- a/src/battle/src/View/Map/Character.elm
+++ b/src/battle/src/View/Map/Character.elm
@@ -5,7 +5,7 @@ import Html
import Html.Attributes
import Html.Events
--- Map ------------------------------------------------------------------
+-- Battle ----------------------------------------------------------------------
import Constants.UI
import Util.Html
@@ -14,6 +14,7 @@ import Struct.Character
import Struct.CharacterTurn
import Struct.Event
import Struct.Model
+import Struct.Portrait
import Struct.TurnResult
import Struct.TurnResultAnimator
import Struct.UI
@@ -145,7 +146,11 @@ get_head_html char =
[
(Html.Attributes.class "character-icon-head"),
(Html.Attributes.class
- ("asset-character-icon-" ++ (Struct.Character.get_icon_id char))
+ ("asset-character-icon-" ++
+ (Struct.Portrait.get_icon_id
+ (Struct.Character.get_portrait char)
+ )
+ )
)
]
[