summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-05-25 09:28:58 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-05-25 09:28:58 +0200 |
commit | ed0a0286a6bc1772c0bace457e900bf7123cb39e (patch) | |
tree | a3bdc40ce192f700b25a52433873d760c87b769a /src/battle/src/View | |
parent | f880b395bf66b12abefc15c46902464bf9d542d1 (diff) |
Displays some of the effects using the new approach.
Diffstat (limited to 'src/battle/src/View')
-rw-r--r-- | src/battle/src/View/Character.elm | 4 | ||||
-rw-r--r-- | src/battle/src/View/Map.elm | 1 | ||||
-rw-r--r-- | src/battle/src/View/Map/Character.elm | 6 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/battle/src/View/Character.elm b/src/battle/src/View/Character.elm index dac5989..1b2d2e4 100644 --- a/src/battle/src/View/Character.elm +++ b/src/battle/src/View/Character.elm @@ -11,6 +11,8 @@ import BattleCharacters.Struct.Character import BattleCharacters.View.Portrait -- Local Module ---------------------------------------------------------------- +import Constants.DisplayEffects + import Struct.Character import Struct.Event @@ -33,7 +35,7 @@ get_portrait_html char = ( \effect_name -> (Html.Attributes.class - ("character-portrait-effect-" ++ effect_name) + (Constants.DisplayEffects.css_class_prefix ++ effect_name) ) ) (Struct.Character.get_extra_display_effects_list char) diff --git a/src/battle/src/View/Map.elm b/src/battle/src/View/Map.elm index 5b0182e..f6e6c28 100644 --- a/src/battle/src/View/Map.elm +++ b/src/battle/src/View/Map.elm @@ -18,6 +18,7 @@ import BattleMap.Struct.Map import BattleMap.View.Tile -- Local Module ---------------------------------------------------------------- +import Constants.DisplayEffects import Constants.UI import Struct.Battle diff --git a/src/battle/src/View/Map/Character.elm b/src/battle/src/View/Map/Character.elm index 49150eb..67a165b 100644 --- a/src/battle/src/View/Map/Character.elm +++ b/src/battle/src/View/Map/Character.elm @@ -14,6 +14,7 @@ import BattleCharacters.Struct.Character import BattleCharacters.Struct.Equipment -- Local Module ---------------------------------------------------------------- +import Constants.DisplayEffects import Constants.UI import Struct.Character @@ -101,7 +102,10 @@ get_actual_html char = ( \effect_name -> (Html.Attributes.class - ("character-icon-effect-" ++ effect_name) + ( + Constants.DisplayEffects.css_class_prefix + ++ effect_name + ) ) ) (Struct.Character.get_extra_display_effects_list char) |