Prev and Next are buttons added.

This commit is contained in:
2013-06-05 13:38:30 +04:00
parent a68b38181d
commit 70e287006f
26 changed files with 737 additions and 255 deletions

View File

@@ -16,11 +16,11 @@
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="icon.svg"
sodipodi:docname="icon_debug.svg"
enable-background="new"
inkscape:export-filename="C:\Users\vahagnk\devel\_private\org.dyndns.vahagn.sokoban\art\icon3_36.png"
inkscape:export-xdpi="6.48"
inkscape:export-ydpi="6.48">
inkscape:export-filename="C:\Users\vahagnk\devel\_private\org.dyndns.vahagn.sokoban\res\drawable-xhdpi\icon_debug.png"
inkscape:export-xdpi="17.280001"
inkscape:export-ydpi="17.280001">
<defs
id="defs4">
<linearGradient
@@ -202,15 +202,15 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.17"
inkscape:cx="181.6373"
inkscape:cy="169.00407"
inkscape:zoom="1.19"
inkscape:cx="351.60858"
inkscape:cy="201.98681"
inkscape:document-units="px"
inkscape:current-layer="layer7"
showgrid="false"
inkscape:current-layer="layer6"
showgrid="true"
inkscape:snap-smooth-nodes="false"
inkscape:object-paths="true"
inkscape:snap-global="false"
inkscape:snap-global="true"
inkscape:object-nodes="false"
inkscape:snap-intersection-paths="false"
inkscape:window-width="1920"
@@ -245,7 +245,8 @@
inkscape:groupmode="layer"
id="layer7"
inkscape:label="BigBox"
style="opacity:0.2964602;display:none">
style="opacity:0.2964602;display:none"
sodipodi:insensitive="true">
<rect
y="2.2209995"
x="4.2691622"
@@ -539,4 +540,25 @@
inkscape:connector-curvature="0"
sodipodi:nodetypes="scscs" />
</g>
<g
inkscape:groupmode="layer"
id="layer6"
inkscape:label="Debug"
sodipodi:insensitive="true">
<g
id="g3905"
transform="matrix(0.98040698,0,0,1.1018985,-231.55864,-107.84749)"
style="fill:none;stroke:#f90000;stroke-width:9.36715698;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none">
<path
id="Selection #4"
d="m 264.53125,126.46875 c -4.33805,-0.0576 -8.61719,3.71125 -8.125,12.53125 0.66,11.68 3.4825,24.69 9.0625,35 3.66634,9.32507 13.0186,14.43224 17.5625,21.4375 1.59,2.61 1.38125,6.5725 1.28125,9.5625 -0.05,1.84 -0.10625,4.0975 -1.15625,5.6875 -1.6,2.38 1.3125,3 -8.6875,3 l -25,0 c -10,0 -10,15 0,15 l 30,0 c 6.4,0.16 7.77,-0.13875 8,8.28125 0.13,4.84 -8.2625,9.5325 -12.0625,11.8125 -15.25031,9.72362 -23.93379,21.43976 -26.625,38.21875 -0.87,5.55 -2.44125,14.81 3.96875,17.25 3.96,1.51 8.89375,-0.255 10.34375,-4.375 L 265.625,284 c 7.68921,-14.25194 18.84375,-25.3125 28.84375,-25.3125 l 5,0 c 5,5 32.4,31.41 45,35 l 0,-75 c 0,-4.214 2.66703,-6.64779 5.75,-7.3125 0.54062,-0.11656 1.10201,-0.18026 1.65625,-0.1875 0.30775,-0.004 0.63136,0.002 0.9375,0.0312 0.0106,10e-4 0.0207,-0.001 0.0312,0 0.0533,0.005 0.10307,0.0248 0.15625,0.0312 0.23376,0.0298 0.48871,0.0754 0.71875,0.125 0.25757,0.0547 0.49953,0.108 0.75,0.1875 2.74711,0.88121 4.96875,3.26291 4.96875,7.125 l 0,75 c 12.6,-3.59 40,-30 45,-35 l 5,0 c 10,0 21.15454,11.06056 28.84375,25.3125 l 2.53125,15.875 c 1.45,4.12 6.38375,5.885 10.34375,4.375 6.41,-2.44 4.83875,-11.7 3.96875,-17.25 -2.69121,-16.77899 -11.37469,-28.49513 -26.625,-38.21875 -3.8,-2.28 -12.1925,-6.9725 -12.0625,-11.8125 0.23,-8.42 1.6,-8.12125 8,-8.28125 l 30,0 c 10,0 10,-15 0,-15 l -25,0 c -10,0 -7.0875,-0.62 -8.6875,-3 -1.05,-1.59 -1.10625,-3.8475 -1.15625,-5.6875 -0.1,-2.99 -0.30875,-6.9525 1.28125,-9.5625 4.5439,-7.00526 13.89616,-12.11243 17.5625,-21.4375 5.58,-10.31 8.4025,-23.32 9.0625,-35 0.49219,-8.82 -3.78695,-12.58885 -8.125,-12.53125 -2.27231,0.0302 -4.565,1.12031 -6.1875,3.0625 C 430.998,132.15125 431.58,140.96 431,145 c -2.22,15.45 -1.515,17.41 -11.625,30 -14.89167,14.29404 -39.82403,21.40669 -64.90625,21.71875 l 0,-0.0312 c -0.83523,0.0197 -1.66396,0.0266 -2.5,0.0312 -0.84123,-0.005 -1.69083,-0.0114 -2.53125,-0.0312 l 0,0.0312 C 324.36577,196.4012 299.41676,189.28813 284.53125,175 c -10.11,-12.59 -9.405,-14.55 -11.625,-30 -0.58,-4.04 0.002,-12.84875 -2.1875,-15.46875 -1.6225,-1.94219 -3.91519,-3.03235 -6.1875,-3.0625 z"
style="fill:none;stroke:#f90000;stroke-width:9.36715698;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
inkscape:connector-curvature="0" />
<path
id="path3862"
d="m 347.65625,103.34375 c -9.48344,2.07571 -16.71892,10.22816 -17.5,20.21875 -17.80948,5.15553 -30.125,16.29235 -30.125,29.1875 0,17.80423 23.48386,32.21875 52.46875,32.21875 28.98489,0 52.46875,-14.41452 52.46875,-32.21875 0,-12.93887 -12.4054,-24.08642 -30.3125,-29.21875 -0.7555,-9.49386 -7.35456,-17.32688 -16.15625,-19.84375 4.12235,2.1741 6.9375,6.61131 6.9375,11.71875 0,7.25653 -5.69061,13.125 -12.71875,13.125 -7.02814,0 -12.71875,-5.86847 -12.71875,-13.125 0,-5.392 3.1563,-10.03743 7.65625,-12.0625 z"
style="fill:none;stroke:#f90000;stroke-width:9.36715698;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 24 KiB

369
art/prev_next.svg Normal file
View File

@@ -0,0 +1,369 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
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="300"
height="500"
id="svg3081"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="prev_next.svg"
inkscape:export-filename="C:\Users\vahagnk\devel\_private\org.dyndns.vahagn.sokoban\res\drawable-xhdpi\next.png"
inkscape:export-xdpi="17.280001"
inkscape:export-ydpi="17.280001">
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.29"
inkscape:cx="217.24802"
inkscape:cy="230.02585"
inkscape:document-units="px"
inkscape:current-layer="layer3"
showgrid="true"
inkscape:snap-global="false"
inkscape:window-width="1920"
inkscape:window-height="1018"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true">
<inkscape:grid
snapvisiblegridlinesonly="true"
enabled="true"
visible="true"
empspacing="5"
id="grid3093"
type="xygrid" />
<sodipodi:guide
id="guide3822"
position="260,220"
orientation="0,1" />
<sodipodi:guide
id="guide3824"
position="260,280"
orientation="0,1" />
<sodipodi:guide
id="guide3826"
position="290,160"
orientation="0,1" />
<sodipodi:guide
id="guide3828"
position="250,190"
orientation="1,0" />
<sodipodi:guide
id="guide3830"
position="110,130"
orientation="1,0" />
<sodipodi:guide
id="guide3832"
position="400,130"
orientation="1,0" />
<sodipodi:guide
id="guide3834"
position="350,240"
orientation="1,0" />
<sodipodi:guide
id="guide3836"
position="150,190"
orientation="1,0" />
<sodipodi:guide
id="guide3890"
position="-190,30"
orientation="1,0" />
</sodipodi:namedview>
<defs
id="defs3083">
<linearGradient
osb:paint="solid"
id="linearGradient5386">
<stop
id="stop5388"
offset="0"
style="stop-color:#000000;stop-opacity:1;" />
</linearGradient>
<filter
color-interpolation-filters="sRGB"
inkscape:menu-tooltip="Smooth the outside of shapes and pictures without altering their contents"
inkscape:menu="Morphology"
inkscape:label="Smooth edges"
id="filter3837">
<feGaussianBlur
result="result1"
stdDeviation="3"
id="feGaussianBlur3839" />
<feComposite
result="result2"
in="result1"
k4="-1"
k2="2"
operator="arithmetic"
in2="SourceGraphic"
id="feComposite3841"
k1="0"
k3="0" />
<feColorMatrix
result="result3"
values="0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 8 -6 "
id="feColorMatrix3843" />
<feComposite
result="fbSourceGraphic"
operator="in"
in="SourceGraphic"
in2="result3"
id="feComposite3845" />
<feColorMatrix
id="feColorMatrix3851"
values="0 0 0 -1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 0"
in="fbSourceGraphic"
result="fbSourceGraphicAlpha" />
<feGaussianBlur
in="fbSourceGraphic"
result="result1"
stdDeviation="3"
id="feGaussianBlur3853" />
<feComposite
result="result2"
in="result1"
k4="-1"
k2="2"
operator="arithmetic"
in2="fbSourceGraphic"
id="feComposite3855"
k1="0"
k3="0" />
<feColorMatrix
result="result3"
values="0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 8 -6 "
id="feColorMatrix3857" />
<feComposite
operator="in"
in="fbSourceGraphic"
in2="result3"
id="feComposite3859" />
</filter>
<filter
color-interpolation-filters="sRGB"
inkscape:menu-tooltip="Smooth the outside of shapes and pictures without altering their contents"
inkscape:menu="Morphology"
inkscape:label="Smooth edges"
id="filter4019">
<feGaussianBlur
result="result1"
stdDeviation="3"
id="feGaussianBlur4021" />
<feComposite
result="result2"
in="result1"
k4="-1"
k2="2"
operator="arithmetic"
in2="SourceGraphic"
id="feComposite4023"
k1="0"
k3="0" />
<feColorMatrix
result="result3"
values="0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 8 -6 "
id="feColorMatrix4025" />
<feComposite
operator="in"
in="SourceGraphic"
in2="result3"
id="feComposite4027" />
</filter>
<filter
color-interpolation-filters="sRGB"
inkscape:menu-tooltip="Smooth the outside of shapes and pictures without altering their contents"
inkscape:menu="Morphology"
inkscape:label="Smooth edges"
id="filter4029">
<feGaussianBlur
result="result1"
stdDeviation="3"
id="feGaussianBlur4031" />
<feComposite
result="result2"
in="result1"
k4="-1"
k2="2"
operator="arithmetic"
in2="SourceGraphic"
id="feComposite4033"
k1="0"
k3="0" />
<feColorMatrix
result="result3"
values="0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 8 -6 "
id="feColorMatrix4035" />
<feComposite
operator="in"
in="SourceGraphic"
in2="result3"
id="feComposite4037" />
</filter>
<filter
color-interpolation-filters="sRGB"
inkscape:menu-tooltip="Smooth the outside of shapes and pictures without altering their contents"
inkscape:menu="Morphology"
inkscape:label="Smooth edges"
id="filter4061">
<feGaussianBlur
result="result1"
stdDeviation="3"
id="feGaussianBlur4063" />
<feComposite
result="result2"
in="result1"
k4="-1"
k2="2"
operator="arithmetic"
in2="SourceGraphic"
id="feComposite4065"
k1="0"
k3="0" />
<feColorMatrix
result="result3"
values="0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 8 -6 "
id="feColorMatrix4067" />
<feComposite
operator="in"
in="SourceGraphic"
in2="result3"
id="feComposite4069" />
</filter>
</defs>
<metadata
id="metadata3086">
<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
style="display:none"
sodipodi:insensitive="true"
inkscape:label="Background"
id="layer4"
inkscape:groupmode="layer">
<rect
inkscape:export-filename="C:\Users\vahagnk\devel\_private\org.dyndns.vahagn.sokoban\art\wall.png"
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
transform="matrix(0,-1,1,0,0,0)"
y="0.78125"
x="-500"
height="500"
width="500"
id="rect3089"
style="fill:#e3dbdb;stroke:none;display:inline" />
</g>
<g
sodipodi:insensitive="true"
style="display:none"
inkscape:label="Reset"
id="layer1"
inkscape:groupmode="layer">
<path
inkscape:connector-curvature="0"
id="rect3901"
d="m 221.40625,29.521137 c 0,62.123585 0,124.247163 0,186.370753 19.36458,0 38.72917,0 58.09375,0 0,-62.72672 0,-125.453452 0,-188.180178 -19.36458,0 -38.72917,0 -58.09375,0 l 0,0.904712 0,0.904713 z"
style="fill:#ffe680;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
inkscape:export-ydpi="17.280001"
inkscape:export-xdpi="17.280001"
inkscape:export-filename="C:\Users\vahagnk\devel\_private\org.dyndns.vahagn.sokoban\res\drawable-xhdpi\reset.png"
inkscape:connector-curvature="0"
id="path3838"
d="M 201.5,80.71875 C 130.81755,95.933716 71.412943,152.6505 52.920914,222.55756 34.998029,287.18672 52.385119,360.38568 98.125,409.34375 c 43.13092,47.66639 110.39387,72.18569 174.26316,62.85662 66.87664,-8.9225 127.127,-54.12595 154.31742,-115.7385 C 453.69341,296.65267 448.83464,223.48409 413.09375,168.375 386.55282,126.53207 343.97192,95.167041 296,82.53125 c 0,20.32292 0,40.64583 0,60.96875 52.98338,19.91702 90.48404,74.07355 90.04458,130.81241 0.87967,54.31251 -33.04232,107.18153 -82.76333,129.21884 -47.49498,21.76924 -106.82304,14.53732 -147.15625,-18.96875 -38.48002,-30.99322 -58.677568,-82.853 -50.47294,-131.73837 7.90077,-51.18957 46.08373,-96.51134 95.72294,-111.88663 5.36976,-3.36787 1.37567,-10.94305 2.625,-15.96875 0,-14.95833 0,-29.916667 0,-44.875 -0.83333,0.208333 -1.66667,0.416667 -2.5,0.625 z"
style="fill:#ffe680;fill-opacity:1;stroke:none" />
</g>
<g
sodipodi:insensitive="true"
inkscape:groupmode="layer"
id="g4013"
inkscape:label="Reset Smooth"
style="display:none">
<g
id="g4079">
<path
style="fill:#ffe680;fill-opacity:1;fill-rule:nonzero;stroke:none;filter:url(#filter4029)"
d="m 217.40625,25.71875 c 0,64.729167 0,129.45833 0,194.1875 22.03125,0 44.0625,0 66.09375,0 0,-65.39583 0,-130.791667 0,-196.1875 -22.03125,0 -44.0625,0 -66.09375,0 l 0,1 0,1 z"
id="path4015"
inkscape:connector-curvature="0" />
<path
style="fill:#ffe680;fill-opacity:1;stroke:none;filter:url(#filter4019)"
d="M 205.5,75.59375 C 126.65145,90.785088 60.622157,156.19217 45.8125,235.1875 c -14.49323,70.90601 12.17842,148.79427 67.95601,194.86408 54.3218,46.27441 134.04972,61.23875 201.10651,35.66298 C 378.92198,442.28562 429.90929,385.10928 443.5,317.9375 457.4655,253.60419 438.48699,182.70318 392.52718,135.59019 365.58631,107.10695 330.27231,86.444381 292,77.375 c 0,22.96875 0,45.9375 0,68.90625 58.70731,20.27137 97.98986,84.65353 89.0625,146.09375 -6.9196,56.53216 -52.27104,106.48882 -108.32983,116.89142 -48.88686,10.14767 -103.07399,-8.2812 -134.02366,-47.6954 -32.7155,-39.91395 -40.716728,-99.05765 -17.40592,-145.50601 16.34544,-33.89164 46.30949,-60.5923 82.38441,-71.84626 7.7017,-5.34129 3.01004,-15.61016 4.3125,-23.25 0,-15.33333 0,-30.666667 0,-46 -0.83333,0.208333 -1.66667,0.416667 -2.5,0.625 z"
id="path4017"
inkscape:connector-curvature="0" />
</g>
</g>
<g
sodipodi:insensitive="true"
style="display:none"
transform="translate(0,-552.36217)"
inkscape:label="Undo"
id="layer2"
inkscape:groupmode="layer">
<path
inkscape:connector-curvature="0"
id="path3879"
d="M 242.40625,628.40625 C 171.91621,628.49568 103.97694,669.76321 70.536398,731.41354 37.792119,790.16057 37.78391,866.1231 71.34375,924.53125 54.614776,934.1045 37.884169,943.6749 21.15625,953.25 c 42.294428,14.24147 84.60624,28.43136 126.90625,42.65625 9.15248,-43.66527 18.2971,-87.3322 27.4375,-131 -17.99063,10.18545 -35.90244,20.50934 -53.84375,30.78125 -28.328918,-49.52602 -21.900064,-116.14241 15.51914,-159.29616 31.16156,-37.28644 82.68104,-56.63743 130.79336,-48.23509 54.37162,8.49981 101.14778,51.50149 113.97906,105.1213 10.59033,42.59566 0.11197,89.80296 -27.91656,123.72245 -1.51075,6.57627 7.22621,8.33364 10.71875,12.0625 10.74504,8.88507 22.04574,17.21956 32.96875,25.9375 44.97267,-52.71383 58.58082,-130.02687 34.61356,-195.07275 C 408.88655,693.77042 348.30512,642.42372 278.875,631.25 c -12.0194,-2.10077 -24.23517,-3.03848 -36.46875,-2.84375 z"
style="fill:#ffe680;fill-opacity:1;stroke:none" />
</g>
<g
sodipodi:insensitive="true"
inkscape:groupmode="layer"
id="g4047"
inkscape:label="Undo Smoth"
transform="translate(0,-552.36217)"
style="display:none">
<path
inkscape:connector-curvature="0"
id="path4049"
d="M 242.40625,624.40625 C 160.71655,624.27772 82.703133,679.17341 54.967295,755.62603 34.717677,809.51194 38.302928,872.36005 65.875,923 c -18.128958,10.40711 -36.296571,20.74684 -54.40625,31.1875 46.510627,15.71735 93.0566,31.3301 139.59375,46.9687 10.07117,-48.02938 20.11799,-96.06392 30.1875,-144.0937 -19.4531,10.88039 -38.75287,22.03349 -58.0625,33.125 -28.422779,-52.97061 -15.73005,-124.88259 29.71875,-164.34375 40.27465,-36.98006 103.29371,-46.67798 152.28125,-21.625 46.30162,22.59546 78.40941,72.47791 76.8125,124.40625 -0.24572,31.83002 -12.21914,62.85813 -31.90625,87.625 -1.9809,8.28002 7.15123,12.14263 12.4375,16.15625 11.72344,9.61615 23.89779,18.63757 35.71875,28.15625 54.46415,-60.95916 65.56537,-156.53078 26.25522,-228.26942 C 390.75994,668.21619 320.90157,624.33294 247.9375,624.375 c -1.84389,-0.007 -3.68757,0.003 -5.53125,0.0312 z"
style="fill:#ffe680;fill-opacity:1;stroke:none;filter:url(#filter4061)" />
</g>
<g
style="display:inline"
inkscape:label="Next Smooth"
id="layer3"
inkscape:groupmode="layer"
sodipodi:insensitive="true">
<path
inkscape:connector-curvature="0"
id="rect3794"
d="M 73.891955,6.024031 C 56.688485,21.153132 39.504745,36.304689 22.298205,51.430281 77.353585,116.02122 132.40183,180.61825 187.45446,245.21153 133.1079,310.63451 78.765335,376.06085 24.391955,441.46153 c 17.71113,14.84041 35.41387,29.69084 53.125,44.53125 C 145.19458,405.6929 212.8272,325.35264 279.79821,244.46153 211.68719,164.52254 143.57439,84.585028 75.423205,4.680281 c -0.51042,0.4479167 -1.02083,0.8958333 -1.53125,1.34375 z"
style="fill:#ffe680;fill-opacity:1;fill-rule:nonzero;stroke:none;filter:url(#filter3837)" />
</g>
<g
inkscape:groupmode="layer"
id="g4075"
inkscape:label="Prev Smooth"
style="display:none"
sodipodi:insensitive="true">
<path
transform="matrix(-1,0,0,1,481.44525,-1.0939438)"
style="fill:#ffe680;fill-opacity:1;fill-rule:nonzero;stroke:none;filter:url(#filter3837)"
d="m 256.0625,10.21875 c -17.20347,15.129101 -34.38721,30.280658 -51.59375,45.40625 55.05538,64.59094 110.10362,129.18797 165.15625,193.78125 -54.34656,65.42298 -108.68912,130.84932 -163.0625,196.25 17.71113,14.84041 35.41387,29.69084 53.125,44.53125 C 327.36512,409.88762 394.99774,329.54736 461.96875,248.65625 393.85773,168.71726 325.74493,88.779747 257.59375,8.875 c -0.51042,0.4479167 -1.02083,0.8958333 -1.53125,1.34375 z"
id="path4077"
inkscape:connector-curvature="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 848 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
res/drawable-hdpi/next.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

BIN
res/drawable-hdpi/prev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
res/drawable-ldpi/next.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

BIN
res/drawable-ldpi/prev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 930 B

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
res/drawable-mdpi/next.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

BIN
res/drawable-mdpi/prev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
res/drawable-xhdpi/next.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 802 B

BIN
res/drawable-xhdpi/prev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -4,8 +4,19 @@
android:orientation="horizontal"
android:gravity="center_horizontal"
android:background="#60404040"
android:layout_height="50dp"
android:layout_height="48dp"
android:layout_width="match_parent">
<ImageButton
android:src="@drawable/prev"
android:scaleType="fitCenter"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_weight="0"
android:layout_margin="3dp"
android:background="#00000000"
android:onClick="onPrev"
android:id="@+id/prev_btn"/>
<TextView
android:text="Level"
android:layout_width="wrap_content"
@@ -45,5 +56,16 @@
android:background="#00000000"
android:onClick="onReset"
android:id="@+id/reset_btn"/>
<ImageButton
android:src="@drawable/next"
android:scaleType="fitCenter"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_weight="0"
android:layout_margin="3dp"
android:background="#00000000"
android:onClick="onNext"
android:id="@+id/next_btn"/>
</LinearLayout>

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Free Sokoban</string>
<string name="app_name_debug">Debug Sokoban</string>
<string name="menu">Menu</string>
<string name="play_activity">play_activity</string>
<string name="btn_start_begin">Begin</string>

View File

@@ -22,6 +22,7 @@ import android.widget.TextView;
import java.util.Timer;
import java.util.TimerTask;
import java.util.zip.Inflater;
import org.dyndns.vahagn.sokoban.App;
import static org.dyndns.vahagn.sokoban.App.TAG;
import static org.dyndns.vahagn.sokoban.App.theApp;
import org.dyndns.vahagn.sokoban.R;
@@ -163,6 +164,36 @@ public class PlayActivity extends Activity
return true;
}
public boolean onPrev( View v )
{
//
// If current level is less than achived level the move to next
// puzzle.
//
if ( theApp().getCurrentLevel() > App.MIN_LEVEL )
{
theApp().setCurrentLevel( theApp().getCurrentLevel()-1 );
loadCurrentPuzzle();
puzzle_view.invalidate();
}
return true;
}
public boolean onNext( View v )
{
//
// If current level is less than achived level the move to next
// puzzle.
//
if ( theApp().getCurrentLevel() < theApp().getAchivedLevel() )
{
theApp().setCurrentLevel( theApp().getCurrentLevel()+1 );
loadCurrentPuzzle();
puzzle_view.invalidate();
}
return true;
}
public boolean onUndo( View v )
{
if ( puzzle.isUndoable() )