changeset 148:ed69e9f5ffaf

Lock graphic, and hacky make_pngs change
author Stefano Rivera <stefano@rivera.za.net>
date Tue, 13 Sep 2011 18:22:28 +0200
parents daa0ca026e76
children e26280d809d3
files data/menus/lock.png scripts/make_pngs.sh source/svg/menus/lock.svg
diffstat 3 files changed, 137 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file data/menus/lock.png has changed
--- a/scripts/make_pngs.sh	Tue Sep 13 08:17:28 2011 +0200
+++ b/scripts/make_pngs.sh	Tue Sep 13 18:22:28 2011 +0200
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+set -e
+set -u
+
 tilesize=20
 svgdir=source/svg
 pngdir=data/tiles
@@ -14,3 +17,15 @@
         pngcrush -q $filepath tmp && mv tmp $filepath
     done
 done
+
+pngdir=data
+for subdir in menus
+do
+    for x in $svgdir/$subdir/*.svg
+    do
+        filename=`basename $x`
+        filepath=$pngdir/$subdir/${filename/svg/png}
+        rsvg-convert $x -o $filepath
+        pngcrush -q $filepath tmp && mv tmp $filepath
+    done
+done
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/svg/menus/lock.svg	Tue Sep 13 18:22:28 2011 +0200
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="100"
+   height="100"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="New document 1">
+  <defs
+     id="defs4" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="3.959798"
+     inkscape:cx="84.632209"
+     inkscape:cy="45.213653"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     showguides="true"
+     inkscape:guide-bbox="true"
+     inkscape:window-width="1678"
+     inkscape:window-height="1023"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="0">
+    <sodipodi:guide
+       orientation="1,0"
+       position="20,0"
+       id="guide3761" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="80,0"
+       id="guide3763" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="30,0"
+       id="guide3765" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="50,0"
+       id="guide3767" />
+    <sodipodi:guide
+       orientation="1,0"
+       position="70,0"
+       id="guide3769" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,5"
+       id="guide3781" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,50"
+       id="guide3783" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,95"
+       id="guide3785" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,70"
+       id="guide3787" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,27.5"
+       id="guide3791" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,90"
+       id="guide3793" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,10"
+       id="guide3799" />
+    <sodipodi:guide
+       orientation="0,1"
+       position="0,45"
+       id="guide3801" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-952.36218)">
+    <path
+       style="fill:#000000;fill-opacity:1;stroke:none"
+       d="M 20 50 L 20 95 L 80 95 L 80 50 L 20 50 z M 50 55 C 54.142135 55 57.5 58.357865 57.5 62.5 C 57.5 65.267769 55.980686 67.669133 53.75 68.96875 L 53.75 90 L 46.25 90 L 46.25 68.96875 C 44.019314 67.669133 42.5 65.267769 42.5 62.5 C 42.5 58.357865 45.857864 55 50 55 z "
+       transform="translate(0,952.36218)"
+       id="rect2987" />
+    <path
+       style="fill:none;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       d="m 30,1024.8622 0,-42.50002 c 0,0 0,-20 20,-20 20,0 20,20 20,20 l 0,42.50002"
+       id="path3789"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="ccscc" />
+  </g>
+</svg>