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 / 20TIME~1.010 / script.txt < prev    next >
Encoding:
Text File  |  2001-04-24  |  2.2 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,8,11
  24. ALPHA 602,labeltext.gif,4,8
  25. ' these alpha bitmaps are pretty much standalone
  26.  
  27. ONOFF PLAY,101,101,101,101,RECT[1;1;18;18],1,1,37,17,0,0,0,17,0,37,0,54
  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[62;0;76;6],62,0,13,6,0,0,0,6
  33. ' just a regular button here
  34.  
  35. 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
  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[89;0;103;6],89,0,13,6,0,0,0,6
  41. ' not a strictly necessary button, but convenient
  42.  
  43. LABEL NAME,100,602,RECT[18;0;61;8]
  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[18;8;35;20]
  53. LABEL HOURCOLON,100,601,RECT[35;8;44;20]
  54.  
  55. LABEL MINUTES,100,601,RECT[44;8;61;20]
  56. LABEL MINUTECOLON,100,601,RECT[61;8;69;20]
  57.  
  58. LABEL SECONDS,100,601,RECT[69;8;86;20]
  59. LABEL SECONDDOT,100,601,RECT[86;8;95;20]
  60. LABEL TENTHS,100,601,RECT[95;8;103;20]
  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.