From fb62df7a557bf6e0a38bd55046d7f367370f719e Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 1 Feb 2019 22:49:42 +0100 Subject: ... --- src/roster-editor/src/View/WeaponSelection.elm | 57 +++++++++++++++----------- 1 file changed, 34 insertions(+), 23 deletions(-) (limited to 'src/roster-editor') 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) + ) + ) ) ] ), -- cgit v1.2.3-70-g09d2