home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 August / Chip_2003-08_cd2.bin / pda / app / 3997_5699.exe / Timekeeper / Timekeeper.PPC_ARM.CAB / TECHTI~1.008 / script.txt < prev    next >
Text File  |  2001-04-22  |  2KB  |  66 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,countdirection.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,18,28
  24. ALPHA 602,labelfont.gif,9,11
  25. ALPHA 603,separatorfont.gif,9,28
  26. ' these alpha bitmaps are pretty much standalone
  27.  
  28. ONOFF PLAY,101,101,101,101,RECT[178;21;196;39],178,21,18,18,0,0,0,18,0,36,0,54
  29. ' we often specify the same bitmap id for all images, we just
  30. ' use different coordinates.  The first set of coordinates is used
  31. ' for the Play image
  32.  
  33. BUTTON RESET,103,103,RECT[189;0;207;18],189,0,18,18,0,0,0,18
  34. ' just a regular button here
  35.  
  36. 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
  37. ' this is a huge statement.  There are four basic states.  
  38. ' We didn't bother to give 'down' images for any of these, so
  39. ' each of the coordinate pairs is just repeated
  40.  
  41. BUTTON PRESETS,104,104,RECT[205;24;217;38],205,24,12,14,0,0,0,14
  42. ' not a strictly necessary button, but convenient
  43.  
  44. LABEL NAME,100,602,RECT[16;4;110;15]
  45. ' this is a nicety for the user, effectively disappears if
  46. ' names are cleared
  47.  
  48. 'LABEL LAPS,100,602,???
  49. ' we don't have room for a LAPS display in this timer
  50. ' VERY useful if the user is going to use the lap functionality
  51. ' though
  52.  
  53. LABEL HOURS,100,601,RECT[5;18;41;46]
  54. LABEL HOURCOLON,100,603,RECT[41;18;50;46]
  55.  
  56. LABEL MINUTES,100,601,RECT[50;18;86;46]
  57. LABEL MINUTECOLON,100,603,RECT[86;18;95;46]
  58.  
  59. LABEL SECONDS,100,601,RECT[95;18;131;46]
  60. LABEL SECONDDOT,100,603,RECT[131;18;140;46]
  61. LABEL TENTHS,100,601,RECT[140;18;158;46]
  62. ' we use a typical arrangement for the timer display
  63. ' NOTE that the presets list will ALWAYS drop down
  64. ' times formatted as "00:00:00.0"
  65.  
  66.