home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / Chip_2004-07_cd2.bin / software / other / timekeep / Timekeeper.exe / Timekeeper / Timekeeper.PPC_ARM.CAB / 00Ojster.009 / script.txt < prev    next >
Encoding:
Text File  |  2001-04-29  |  2.3 KB  |  65 lines

  1. ' this is an example of a timer script file
  2.  
  3. ' All bitmaps are put in a global cache, so it doesn't
  4. ' matter how many script files use them or what id's 
  5. ' they give them.
  6. BITMAP 100,timerbg.gif
  7. BITMAP 101,playstop.gif
  8. BITMAP 102,counts.gif
  9. BITMAP 103,reset.gif
  10. BITMAP 104,quickset.gif
  11. ' We use several images from most of these bitmaps.  
  12. ' The background image is standalone though.
  13. '
  14. ' NOTE: despite appearances, these bitmap id's may NOT be 
  15. ' reused between timer script files.  If you have a 
  16. ' script2.txt file, either use the same id numbers for the
  17. ' same bitmaps, or make up new ones.
  18.  
  19. BACKGROUND 100
  20. ' note that we need an id here, not a filename.  We don't
  21. ' get to specify source coordinates
  22.  
  23. ALPHA 601,timerfont.gif,12,15
  24. ALPHA 602,labeltext.gif,9,7
  25. ' these alpha bitmaps are pretty much standal
  26.  
  27. ONOFF PLAY,101,101,101,101,RECT[3;3;38;29],1,1,38,29,0,0,0,29,0,58,0,87
  28. ' we often specify the same bitmap id for all images, we just
  29. ' use different coordinates.  The first set of coordinates is used
  30. ' for the Play image
  31.  
  32. BUTTON RESET,103,103,RECT[123;25;143;44],123,25,20,19,0,0,0,19
  33. ' just a regular button here
  34.  
  35. 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
  36. ' this is a huge statement.  There are four basic states.  
  37. ' We didn't bother to give 'down' images for any of these, so
  38. ' each of the coordinate pairs is just repeated
  39.  
  40. BUTTON PRESETS,104,104,RECT[168;25;188;44],168,25,20,19,0,0,0,19
  41. ' not a strictly necessary button, but convenient
  42.  
  43. LABEL NAME,100,602,RECT[66;0;188;7]
  44. ' this is a nicety for the user, effectively disappears if
  45. ' names are cleared
  46.  
  47. 'LABEL LAPS,100,602,???
  48. ' we don't have room for a LAPS display in this timer
  49. ' VERY useful if the user is going to use the lap functionality
  50. ' though
  51.  
  52. LABEL HOURS,100,601,RECT[67;8;91;23]
  53. LABEL HOURCOLON,100,601,RECT[91;8;103;23]
  54.  
  55. LABEL MINUTES,100,601,RECT[103;8;127;23]
  56. LABEL MINUTECOLON,100,601,RECT[127;8;139;23]
  57.  
  58. LABEL SECONDS,100,601,RECT[139;8;163;23]
  59. LABEL SECONDDOT,100,601,RECT[163;8;175;23]
  60. LABEL TENTHS,100,601,RECT[175;8;187;23]
  61. ' we use a typical arrangement for the timer display
  62. ' NOTE that the presets list will ALWAYS drop down
  63. ' times formatted as "00:00:00.0"
  64.  
  65.