home *** CD-ROM | disk | FTP | other *** search
- ' 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,countdirection.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,18,28
- ALPHA 602,labelfont.gif,9,11
- ALPHA 603,separatorfont.gif,9,28
- ' these alpha bitmaps are pretty much standalone
-
- ONOFF PLAY,101,101,101,101,RECT[178;21;196;39],178,21,18,18,0,0,0,18,0,36,0,54
- ' 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[189;0;207;18],189,0,18,18,0,0,0,18
- ' just a regular button here
-
- COUNTBUTTON COUNTTYPES,102,102,102,102,102,102,102,102,RECT[189;43;207;61],189,43,18,18,0,108,0,126,0,0,0,18,0,72,0,90,0,36,0,54
- ' 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[205;24;217;38],205,24,12,14,0,0,0,14
- ' not a strictly necessary button, but convenient
-
- LABEL NAME,100,602,RECT[16;4;110;15]
- ' 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[5;18;41;46]
- LABEL HOURCOLON,100,603,RECT[41;18;50;46]
-
- LABEL MINUTES,100,601,RECT[50;18;86;46]
- LABEL MINUTECOLON,100,603,RECT[86;18;95;46]
-
- LABEL SECONDS,100,601,RECT[95;18;131;46]
- LABEL SECONDDOT,100,603,RECT[131;18;140;46]
- LABEL TENTHS,100,601,RECT[140;18;158;46]
- ' 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"
-
-