From 0d4c16d284b91cf957223f836913158170b8b959 Mon Sep 17 00:00:00 2001 From: Laura <L.Spilling@web.de> Date: Sat, 11 Jul 2020 16:56:17 +0200 Subject: [PATCH] fixed Enemy Icon --- out/main.js | 14 ++--- res/icons/Enemy.svg | 144 -------------------------------------------- src/DungeonMap.elm | 14 ++--- 3 files changed, 14 insertions(+), 158 deletions(-) diff --git a/out/main.js b/out/main.js index 93c75e1..d174dc7 100644 --- a/out/main.js +++ b/out/main.js @@ -12360,22 +12360,22 @@ var $author$project$DungeonMap$placeIcon = F5( $elm$svg$Svg$image, _List_fromArray( [ - $elm$svg$Svg$Attributes$width('30'), - $elm$svg$Svg$Attributes$height('30'), + $elm$svg$Svg$Attributes$width('50'), + $elm$svg$Svg$Attributes$height('50'), $elm$svg$Svg$Attributes$x( $elm$core$String$fromFloat( A2( $elm$core$Maybe$withDefault, 0, - $elm$core$String$toFloat(x)) - 17.5)), + $elm$core$String$toFloat(x)) - 25.5)), $elm$svg$Svg$Attributes$y( $elm$core$String$fromFloat( A2( $elm$core$Maybe$withDefault, 0, - $elm$core$String$toFloat(y)) - 17.5)), + $elm$core$String$toFloat(y)) - 24.5)), $elm$svg$Svg$Attributes$title('MonsterIcon'), - $elm$svg$Svg$Attributes$xlinkHref('res/icons/enemy.png') + $elm$svg$Svg$Attributes$xlinkHref('res/icons/Enemy.svg') ]), _List_Nil), A2( @@ -12388,13 +12388,13 @@ var $author$project$DungeonMap$placeIcon = F5( A2( $elm$core$Maybe$withDefault, 0, - $elm$core$String$toFloat(x)) - 3)), + $elm$core$String$toFloat(x)))), $elm$svg$Svg$Attributes$y( $elm$core$String$fromFloat( A2( $elm$core$Maybe$withDefault, 0, - $elm$core$String$toFloat(y)) - 0.5)), + $elm$core$String$toFloat(y)))), $elm$svg$Svg$Attributes$dominantBaseline('middle') ]), _List_fromArray( diff --git a/res/icons/Enemy.svg b/res/icons/Enemy.svg index ed9b4a6..97f127f 100644 --- a/res/icons/Enemy.svg +++ b/res/icons/Enemy.svg @@ -42,150 +42,6 @@ end_point="375.77734,371.73633" start_point="375.77734,115.5" effect="mirror_symmetry" /> - <inkscape:path-effect - end_linecap_type="zerowidth" - scale_width="1" - miter_limit="4" - linejoin_type="round" - start_linecap_type="zerowidth" - interpolator_beta="0.55555556" - interpolator_type="CentripetalCatmullRom" - sort_points="true" - offset_points="4,16.5" - lpeversion="1" - is_visible="true" - id="path-effect32" - effect="powerstroke" /> - <inkscape:path-effect - crossing_points_vector="" - add_other_stroke_width="inkscape_1.0_and_up" - inverse_width="false" - both="false" - add_stroke_width="inkscape_1.0_and_up" - prop_to_stroke_width="true" - interruption_width="3" - switcher_size="18.4" - lpeversion="1" - is_visible="true" - id="path-effect30" - effect="knot" /> - <inkscape:path-effect - interpolator_type="CentripetalCatmullRom" - lpeversion="1" - is_visible="true" - id="path-effect28" - effect="interpolate_points" /> - <inkscape:path-effect - spray_tool_friendly="true" - fixed_displacement="true" - shift_nodes="true" - handles="along" - global_randomize="1;1" - displace_y="10;1" - displace_x="10;1" - segments="8" - max_segment_size="78.562" - method="segments" - lpeversion="1" - is_visible="true" - id="path-effect26" - effect="roughen" /> - <inkscape:path-effect - simplify_just_coalesce="false" - simplify_individual_paths="false" - helper_size="5" - smooth_angles="90" - threshold="0.0265" - steps="70" - lpeversion="1" - is_visible="true" - id="path-effect24" - effect="simplify" /> - <inkscape:path-effect - allow_transforms="true" - css_properties="" - attributes="" - method="d" - linkeditem="" - lpeversion="1" - is_visible="true" - id="path-effect22" - effect="clone_original" /> - <inkscape:path-effect - min_radius="5" - phi="5" - teeth="9" - lpeversion="1" - is_visible="true" - id="path-effect20" - effect="gears" /> - <inkscape:path-effect - split_items="false" - mirror_copies="false" - copies_to_360="true" - gap="-0.01" - rotation_angle="60" - starting_angle="0" - num_copies="58" - method="normal" - lpeversion="1" - is_visible="true" - id="path-effect18" - origin="113.38477,243.61817" - starting_point="0,0" - effect="copy_rotate" /> - <inkscape:path-effect - effect="mirror_symmetry" - start_point="678.99452,392.80498" - end_point="-443.52518,392.81498" - center_point="117.73467,392.80998" - id="path-effect902" - is_visible="true" - lpeversion="1" - mode="free" - discard_orig_path="false" - fuse_paths="true" - oposite_fuse="false" - split_items="false" /> - <inkscape:path-effect - effect="mirror_symmetry" - start_point="375.77734,115.5" - end_point="375.77734,371.73633" - center_point="375.77734,243.61817" - id="path-effect900" - is_visible="true" - lpeversion="1" - mode="free" - discard_orig_path="false" - fuse_paths="false" - oposite_fuse="false" - split_items="false" /> - <inkscape:path-effect - effect="mirror_symmetry" - start_point="113.38477,243.61817" - end_point="375.77734,371.73633" - center_point="375.77734,243.61817" - id="path-effect898" - is_visible="true" - lpeversion="1" - mode="free" - discard_orig_path="true" - fuse_paths="false" - oposite_fuse="false" - split_items="false" /> - <inkscape:path-effect - effect="mirror_symmetry" - start_point="375.77734,115.5" - end_point="375.77734,371.73633" - center_point="375.77734,243.61817" - id="path-effect896" - is_visible="true" - lpeversion="1" - mode="free" - discard_orig_path="false" - fuse_paths="true" - oposite_fuse="false" - split_items="false" /> </defs> <sodipodi:namedview id="base" diff --git a/src/DungeonMap.elm b/src/DungeonMap.elm index 14c87ca..2131be0 100644 --- a/src/DungeonMap.elm +++ b/src/DungeonMap.elm @@ -244,16 +244,16 @@ placeIcon iconType id x y color = case iconType of "monster" -> [ Svg.image - [ SvgAtt.width "30" - , SvgAtt.height "30" - , SvgAtt.x (String.fromFloat (Maybe.withDefault 0 (String.toFloat x) - 17.5)) - , SvgAtt.y (String.fromFloat (Maybe.withDefault 0 (String.toFloat y) - 17.5)) + [ SvgAtt.width "50" + , SvgAtt.height "50" + , SvgAtt.x (String.fromFloat (Maybe.withDefault 0 (String.toFloat x) - 25.5)) + , SvgAtt.y (String.fromFloat (Maybe.withDefault 0 (String.toFloat y) - 24.5)) , SvgAtt.title "MonsterIcon" - , SvgAtt.xlinkHref ("res/icons/enemy.png") + , SvgAtt.xlinkHref "res/icons/Enemy.svg" ] [] , Svg.text_ [ SvgAtt.textAnchor "middle" - , SvgAtt.x (String.fromFloat (Maybe.withDefault 0 (String.toFloat x) - 3)) - , SvgAtt.y (String.fromFloat (Maybe.withDefault 0 (String.toFloat y) - 0.5)) + , SvgAtt.x (String.fromFloat (Maybe.withDefault 0 (String.toFloat x))) + , SvgAtt.y (String.fromFloat (Maybe.withDefault 0 (String.toFloat y))) , SvgAtt.dominantBaseline "middle" ] [ Svg.text (String.fromInt id) ] -- GitLab