# Icon in option menu with wireframe superimposed
#!/bin/sh +xv
set -o verbose

export IMAGE=$1
export TmpDIR=$2

export VERBOSE=

export RBICON_YSIZE=36


$iCM -A -i Icons/images/$IMAGE.png -i Icons/images/$IMAGE-Wire.png -o $TmpDIR/$IMAGE.sgi
$iS -ma $EITHREADS -s 0 $RBICON_YSIZE $TmpDIR/$IMAGE.sgi $TmpDIR/$IMAGE.c
$iCM -A -i Icons/images/RBBoxActive.png -i Icons/images/$IMAGE-Wire.png -o $TmpDIR/$IMAGE.sgi
$iS -ma $EITHREADS -s 0 $RBICON_YSIZE $TmpDIR/$IMAGE.sgi $TmpDIR/$IMAGE-Active.c
$iCM -A -i Icons/images/$IMAGE.png -i Icons/images/$IMAGE-Wire.png -o $TmpDIR/$IMAGE.sgi
$iS -ma $EITHREADS -s 0 $RBICON_YSIZE $TmpDIR/$IMAGE.sgi $TmpDIR/$IMAGE-Armed.c;rm -f $TmpDIR/$IMAGE.sgi
cat $TmpDIR/$IMAGE.c $TmpDIR/$IMAGE-Active.c $TmpDIR/$IMAGE-Armed.c > $TmpDIR/$IMAGE-all.c;rm -f $TmpDIR/$IMAGE.c $TmpDIR/$IMAGE-Active.c $TmpDIR/$IMAGE-Armed.c
