projects
/
brisk-img.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix cards css generator
[brisk-img.git]
/
bin
/
spriter.sh
diff --git
a/bin/spriter.sh
b/bin/spriter.sh
index
e9f4026
..
f8df9dd
100755
(executable)
--- a/
bin/spriter.sh
+++ b/
bin/spriter.sh
@@
-20,8
+20,8
@@
convert -size $((w * 9))x$((h * 5)) xc:none ${fou}${sfx}_bg.png
convert -size $((h * 9))x$((w * 5)) xc:none ${fou}${sfx}_oriz_bg.png
convert -size ${w}x${h} xc:none ${fou}${sfx}_empty.png
convert -size $((h * 9))x$((w * 5)) xc:none ${fou}${sfx}_oriz_bg.png
convert -size ${w}x${h} xc:none ${fou}${sfx}_empty.png
-convert -size ${h}x${w} xc:none ${fou}${sfx}_empty_ea
we
.png
-
+convert -size ${h}x${w} xc:none ${fou}${sfx}_empty_ea.png
+cp ${fou}${sfx}_empty_ea.png ${fou}${sfx}_empty_we.png
cssname="${fou}${sfx}.css"
rm -f $cssname
touch $cssname
cssname="${fou}${sfx}.css"
rm -f $cssname
touch $cssname
@@
-44,9
+44,13
@@
for direction in "" "_ea" "_we"; do
fi
card_id=$(printf "%02d" "$((seed * 10 + card))")
fi
card_id=$(printf "%02d" "$((seed * 10 + card))")
+ if [ "$card_id" = "40" ]; then
+ card_id="cover"
+ fi
+ card_url=$(echo "$fou" | sed 's@.*/\([^/]\+/[^/]\+$\)@\1@g')
cat <<EOF >> $cssname
img[data-card-id="${card_id}${direction}"] {
cat <<EOF >> $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
}
EOF