@echo off
rem This file is part of the Skin Generator, Copyright (c) 2004 Alexander R. Pruss
rem
rem This program is free software; you can redistribute it and/or
rem modify it under the terms of the GNU General Public License
rem as published by the Free Software Foundation; either version 2
rem of the License, or (at your option) any later version.
rem
rem This program is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
rem GNU General Public License for more details.
rem
rem You should have received a copy of the GNU General Public License
rem along with this program; if not, write to the Free Software
rem Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
rem  generate full color NR statusbar
rem
rem  %1 = unselected buttons, disabled down arrow, right arrow grayed
rem  %2 = unselected buttons, disabled up arrow, charging, no right arrow
rem  %3 = unselected buttons, normal down arrow, empty battery, right arrow
rem  %4 = unselected buttons, normal up arrow, full battery
rem  %5 = selected buttons, normal down arrow, right arrow enabled
rem  %6 = selected buttons, normal up arrow
rem
rem  %7 = output
convert +compress -crop 24x24+2+134 "%1" temp/image1000-16.bmp
rem  home
convert +compress -crop 24x24+2+134 "%6" temp/image1050-16.bmp
rem  home
convert +compress -crop 24x24+26+134 "%1" temp/image1100-16.bmp  
rem  menu
convert +compress -crop 24x24+26+134 "%6" temp/image1150-16.bmp  
rem  menu
convert +compress -crop 24x24+50+134 "%1" temp/image1200-16.bmp  
rem  search
convert +compress -crop 24x24+50+134 "%6" temp/image1250-16.bmp  
rem  search
convert +compress -crop 320x30+0+130 "%2" temp/image3000-16.bmp 
rem  main bar
convert +compress -crop 84x24+236+134 "%1" temp/image3200-16.bmp
rem  time bar
convert +compress -crop 24x24+74+134 "%4" temp/image1400-16.bmp  
rem  up arrow, unselected
convert +compress -crop 24x24+74+134 "%6" temp/image1450-16.bmp  
rem  up arrow, selected
convert +compress -crop 24x24+74+134 "%3" temp/image1500-16.bmp  
rem  down arrow, unselected
convert +compress -crop 24x24+74+134 "%5" temp/image1550-16.bmp  
rem  down arrow, selected
convert +compress -crop 24x24+74+134 "%1" temp/image1600-16.bmp  
rem  disabled down arrow
convert +compress -crop 24x24+74+134 "%2" temp/image1650-16.bmp  
rem  disabled up arrow
convert +compress -crop 24x24+128+134 "%3" temp/image1700-16.bmp  
rem  right arrow
convert +compress -crop 24x24+154+134 "%5" temp/image1750-16.bmp  
rem  selected right arrow
convert +compress -crop 24x24+154+134 "%1" temp/image1850-16.bmp  
rem  disabled right arrow
convert +compress -crop 24x24+154+134 "%2" temp/image1800-16.bmp  
rem  blank square
convert +compress -crop 24x24+128+134 "%4" temp/image6200-16.bmp  
rem  full battery
convert +compress -crop 24x24+128+134 "%2" temp/image6300-16.bmp
rem  battery charging
composite arp-icons/abmp2400.png temp/image1800-16.bmp temp/image1300-16.bmp
composite arp-icons/abmp2450.png temp/image1800-16.bmp temp/image1350-16.bmp
call dobatterynr "%4" "%3" 24 temp/image5000-16.bmp
call dobatterynr "%4" "%3" 22 temp/image5100-16.bmp
call dobatterynr "%4" "%3" 20 temp/image5200-16.bmp
call dobatterynr "%4" "%3" 18 temp/image5300-16.bmp
call dobatterynr "%4" "%3" 16 temp/image5400-16.bmp
call dobatterynr "%4" "%3" 14 temp/image5500-16.bmp
call dobatterynr "%4" "%3" 12 temp/image5600-16.bmp
call dobatterynr "%4" "%3" 10 temp/image5700-16.bmp
call dobatterynr "%4" "%3" 8 temp/image5800-16.bmp
call dobatterynr "%4" "%3" 6 temp/image5900-16.bmp
call dobatterynr "%4" "%3" 4 temp/image6000-16.bmp
call dobatterynr "%4" "%3" 2 temp/image6100-16.bmp
cd temp
..\bin\pilrc -ro -type SknS -creator SeSi -name "%7" "../rcp/sb16nr.rcp" "../%7.prc"
del *.bmp
cd ..
