' this is an example of a timer script file

' All bitmaps are put in a global cache, so it doesn't
' matter how many script files use them or what id's 
' they give them.
BITMAP 100,timerbg.gif
BITMAP 101,playstop.gif
BITMAP 102,counts.gif
BITMAP 103,reset.gif
BITMAP 104,quickset.gif
' We use several images from most of these bitmaps.  
' The background image is standalone though.
'
' NOTE: despite appearances, these bitmap id's may NOT be 
' reused between timer script files.  If you have a 
' script2.txt file, either use the same id numbers for the
' same bitmaps, or make up new ones.

BACKGROUND 100
' note that we need an id here, not a filename.  We don't
' get to specify source coordinates

ALPHA 601,timerfont.gif,17,24
ALPHA 602,labeltext.gif,9,17
' these alpha bitmaps are pretty much standalone

ONOFF PLAY,101,101,101,101,RECT[3;2;37;36],3,2,74,37,0,0,0,37,0,74,0,111
' we often specify the same bitmap id for all images, we just
' use different coordinates.  The first set of coordinates is used
' for the Play image

BUTTON RESET,103,103,RECT[125;1;152;13],125,1,27,12,0,0,0,12
' just a regular button here

COUNTBUTTON COUNTTYPES,102,102,102,102,102,102,102,102,RECT[152;1;179;13],152,1,27,12,0,36,0,36,0,0,0,0,0,24,0,24,0,12,0,12
' this is a huge statement.  There are four basic states.  
' We didn't bother to give 'down' images for any of these, so
' each of the coordinate pairs is just repeated

BUTTON PRESETS,104,104,RECT[179;1;206;13],179,1,27,12,0,0,0,12
' not a strictly necessary button, but convenient

LABEL NAME,100,602,RECT[37;0;122;17]
' this is a nicety for the user, effectively disappears if
' names are cleared

'LABEL LAPS,100,602,???
' we don't have room for a LAPS display in this timer
' VERY useful if the user is going to use the lap functionality
' though

LABEL HOURS,100,601,RECT[37;16;71;40]
LABEL HOURCOLON,100,601,RECT[71;16;88;40]

LABEL MINUTES,100,601,RECT[88;16;122;40]
LABEL MINUTECOLON,100,601,RECT[122;16;139;40]

LABEL SECONDS,100,601,RECT[139;16;173;40]
LABEL SECONDDOT,100,601,RECT[173;16;190;40]
LABEL TENTHS,100,601,RECT[190;16;207;40]
' we use a typical arrangement for the timer display
' NOTE that the presets list will ALWAYS drop down
' times formatted as "00:00:00.0"

