X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=bin%2Fspriter.sh;h=f8df9dd33d7f069e7304e9cd1a400121add342c2;hb=beefda31077f0d6a9cdd0dcad26d32dd3ef5bf2b;hp=4698d634ebff5a52774a4b56d29f6c8664c41687;hpb=747d3972d411c6e2d2b9bcd9f9bcf69509cfa2bf;p=brisk-img.git diff --git a/bin/spriter.sh b/bin/spriter.sh index 4698d63..f8df9dd 100755 --- a/bin/spriter.sh +++ b/bin/spriter.sh @@ -47,9 +47,10 @@ for direction in "" "_ea" "_we"; do if [ "$card_id" = "40" ]; then card_id="cover" fi + card_url=$(echo "$fou" | sed 's@.*/\([^/]\+/[^/]\+$\)@\1@g') cat <> $cssname img[data-card-id="${card_id}${direction}"] { - background: url('img/cards_xx${direction}.png') -${x}px -${y}px; + background: url('${card_url}${direction}.png') -${x}px -${y}px; } EOF