home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1998 July / WPCJUL98.ISO / DXRS / BUYERS07.DXR / Internal_4.ls < prev    next >
Encoding:
Text File  |  1998-05-11  |  1.1 KB  |  26 lines

  1. on drawHighLight s
  2.   global SpriteHighlight
  3.   set t to the top of sprite s
  4.   set B to the bottom of sprite s
  5.   set r to the right of sprite s
  6.   set l to the left of sprite s
  7.   set the rect of sprite SpriteHighlight to rect(l, t, r, t + 1)
  8.   set the rect of sprite (SpriteHighlight + 1) to rect(r - 1, t, r, B)
  9.   set the rect of sprite (SpriteHighlight + 2) to rect(l, B, r, B - 1)
  10.   set the rect of sprite (SpriteHighlight + 3) to rect(l, t, l + 1, B)
  11.   set the rect of sprite (SpriteHighlight + 4) to rect(r, t + 2, r + 2, B + 2)
  12.   set the rect of sprite (SpriteHighlight + 5) to rect(l + 2, B, r + 2, B + 2)
  13.   updateStage()
  14. end
  15.  
  16. on HideHighLight
  17.   global SpriteHighlight
  18.   set the rect of sprite (SpriteHighlight + 0) to rect(0, 0, 0, 0)
  19.   set the rect of sprite (SpriteHighlight + 1) to rect(0, 0, 0, 0)
  20.   set the rect of sprite (SpriteHighlight + 2) to rect(0, 0, 0, 0)
  21.   set the rect of sprite (SpriteHighlight + 3) to rect(0, 0, 0, 0)
  22.   set the rect of sprite (SpriteHighlight + 4) to rect(0, 0, 0, 0)
  23.   set the rect of sprite (SpriteHighlight + 5) to rect(0, 0, 0, 0)
  24.   updateStage()
  25. end
  26.