rem Get the latest versions of all the art
copy \\lfp\e\bbart\overlays\score\*.*

rem Use the latest file to output the 8-bit palette
bmp2n64 -fci -b8 -p ball.bmp Pal.tex

rem Scoring overlays
tga2n64 -fia -b8 -t score.tga scorebox.tex
bmp2n64 -fci -b8 -t scman.bmp scorelog.tex
del Scoring.tex
copy /b scorebox.tex+scorelog.tex Scoring.tex

rem Time overlays
bmp2n64 -fci -b8 -t timeboxa.bmp TimeA.tex
bmp2n64 -fci -b8 -t timeboxb.bmp TimeB.tex
bmp2n64	-fci -b8 -t timeboxc.bmp TimeC.tex
del Time.tex
copy /b TimeA.tex+TimeB.tex+TimeC.tex Time.tex

rem Stat box overlays
bmp2n64 -fci -b8 -t stattop.bmp StatTop.tex
tga2n64 -fia -b8 -t stat.tga StatBot.tex
del Stat.tex
copy /b StatTop.tex+StatBot.tex Stat.tex

rem Turbo overlays
tga2n64 -fia -b8 -t turbo.tga TurboB.tex
bmp2n64 -fci -b8 -t turbo.bmp TurboF.tex
del Turbo.tex
copy /b TurboB.tex+TurboF.tex Turbo.tex

rem Momentum overlays
tga2n64 -fia -b8 -t momentum.tga MomB.tex
bmp2n64 -fci -b8 -t momentum.bmp MomF.tex
del Mom.tex
copy /b MomB.tex+MomF.tex Mom.tex

rem Pause menu overlays
tga2n64 -fia -b8 -t pause.tga PauseB.tex
bmp2n64 -fci -b8 -t pause.bmp PauseF.tex
del Pause.tex
copy /b PauseB.tex+PauseF.tex Pause.tex

rem Camera menu overlays
tga2n64 -fia -b8 -t camera.tga CamMenu.tex
bmp2n64 -fci -b8 -t camlevel.bmp CamLevel.tex
bmp2n64 -fci -b8 -t cambar1.bmp CamBar1.tex
bmp2n64 -fci -b8 -t cambar2.bmp CamBar2.tex
del Camera.tex
copy /b CamMenu.tex+CamLevel.tex+CamBar1.tex+CamBar2.tex Camera.tex

rem Process the fonts
getpfont swiss11.pcx swiss11.fnt
getpfont swiss13.pcx swiss13.fnt

rem Create final file
del Over.tex
copy /b Pal.tex+Scoring.tex+Time.tex+Stat.tex+Turbo.tex+Mom.tex+Pause.tex+Camera.tex Over.tex

rem Copy the file over to its data directory
copy Over.tex ..\GfxData
copy swiss11.fnt ..\GfxData
copy swiss13.fnt ..\GfxData
