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,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,8,11
- ALPHA 602,labeltext.gif,4,8
- ' these alpha bitmaps are pretty much standalone
-
- ONOFF PLAY,101,101,101,101,RECT[1;1;18;18],1,1,37,17,0,0,0,17,0,37,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[62;0;76;6],62,0,13,6,0,0,0,6
- ' just a regular button here
-
- COUNTBUTTON COUNTTYPES,102,102,102,102,102,102,102,102,RECT[76;0;89;6],76,0,13,6,0,18,0,18,0,0,0,0,0,12,0,12,0,6,0,6
- ' 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[89;0;103;6],89,0,13,6,0,0,0,6
- ' not a strictly necessary button, but convenient
-
- LABEL NAME,100,602,RECT[18;0;61;8]
- ' 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[18;8;35;20]
- LABEL HOURCOLON,100,601,RECT[35;8;44;20]
-
- LABEL MINUTES,100,601,RECT[44;8;61;20]
- LABEL MINUTECOLON,100,601,RECT[61;8;69;20]
-
- LABEL SECONDS,100,601,RECT[69;8;86;20]
- LABEL SECONDDOT,100,601,RECT[86;8;95;20]
- LABEL TENTHS,100,601,RECT[95;8;103;20]
- ' 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"
-
-