| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-02-01 22:49:42 +0100 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-02-01 22:49:42 +0100 | 
| commit | fb62df7a557bf6e0a38bd55046d7f367370f719e (patch) | |
| tree | e10090225c2ea2cab1eb307f32746e57534d1aca /src/roster-editor | |
| parent | a6734aa05a940cff59c6a7d637d47114db66f74e (diff) | |
...
Diffstat (limited to 'src/roster-editor')
| -rw-r--r-- | src/roster-editor/src/View/WeaponSelection.elm | 57 | 
1 files changed, 34 insertions, 23 deletions
| diff --git a/src/roster-editor/src/View/WeaponSelection.elm b/src/roster-editor/src/View/WeaponSelection.elm index c3dd805..d43a8d9 100644 --- a/src/roster-editor/src/View/WeaponSelection.elm +++ b/src/roster-editor/src/View/WeaponSelection.elm @@ -26,9 +26,15 @@ get_mod_html mod =              (Html.Attributes.class "info-card-mod")           ]           [ -            (Html.text -               (category ++ ": " ++ (String.fromInt value)) -            ) +            (Html.div +               [ +                  (Html.Attributes.class "omnimod-icon"), +                  (Html.Attributes.class ("omnimod-icon-" ++ category)) +               ] +               [ +               ] +            ), +            (Html.text (String.fromInt value))           ]        ) @@ -60,29 +66,34 @@ get_weapon_html weapon =                 ),                 (Html.div                    [ +                     (Html.Attributes.class "omnimod-icon"), +                     (Html.Attributes.class "omnimod-icon-dmg") +                  ] +                  [ +                  ] +               ), +               (Html.text +                  (String.fromInt (Struct.Weapon.get_damage_sum weapon)) +               ), +               (Html.div +                  [ +                     (Html.Attributes.class "omnimod-icon"), +                     (Html.Attributes.class "omnimod-icon-range")                    ]                    [ -                     (Html.text -                        ( -                           "~" -                           ++ -                           (String.fromInt -                              (Struct.Weapon.get_damage_sum weapon) -                           ) -                           ++ " dmg @ [" -                           ++ -                           (String.fromInt -                              (Struct.Weapon.get_defense_range weapon) -                           ) -                           ++ ", " -                           ++ -                           (String.fromInt -                              (Struct.Weapon.get_attack_range weapon) -                           ) -                           ++ "]" -                        ) -                     )                    ] +               ), +               (Html.text +                  ( +                     (String.fromInt +                        (Struct.Weapon.get_defense_range weapon) +                     ) +                     ++ "-" +                     ++ +                     (String.fromInt +                        (Struct.Weapon.get_attack_range weapon) +                     ) +                  )                 )              ]           ), | 


