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,12,15
- ALPHA 602,labeltext.gif,9,7
- ' these alpha bitmaps are pretty much standal
-
- ONOFF PLAY,101,101,101,101,RECT[3;3;38;29],1,1,38,29,0,0,0,29,0,58,0,87
- ' 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[123;25;143;44],123,25,20,19,0,0,0,19
- ' just a regular button here
-
- COUNTBUTTON COUNTTYPES,102,102,102,102,102,102,102,102,RECT[146;25;166;44],146,25,20,19,0,57,20,57,0,0,20,0,0,38,20,38,0,19,20,19
- ' 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[168;25;188;44],168,25,20,19,0,0,0,19
- ' not a strictly necessary button, but convenient
-
- LABEL NAME,100,602,RECT[66;0;188;7]
- ' 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[67;8;91;23]
- LABEL HOURCOLON,100,601,RECT[91;8;103;23]
-
- LABEL MINUTES,100,601,RECT[103;8;127;23]
- LABEL MINUTECOLON,100,601,RECT[127;8;139;23]
-
- LABEL SECONDS,100,601,RECT[139;8;163;23]
- LABEL SECONDDOT,100,601,RECT[163;8;175;23]
- LABEL TENTHS,100,601,RECT[175;8;187;23]
- ' 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"
-
-