home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1999 January / WPCJAN99.ISO / DXRS / Mainmn01.dxr / Internal_5_INTChooseSection.ls < prev    next >
Encoding:
Text File  |  1998-11-09  |  5.9 KB  |  169 lines

  1. on INTChooseSection
  2.   global MainMenuChooseList, MainBackgroundSprite, MainHilightSprite1, MainHilightSprite2, MAINQuitButtonSprite, MainRegularGraphic, DriveLtr
  3.   set IntLeave to 0
  4.   repeat with t = 1 to count(MainMenuChooseList)
  5.     repeat with s = 1 to count(getAt(MainMenuChooseList, t))
  6.       if count(getAt(getAt(MainMenuChooseList, t), s)) > 0 then
  7.         set whichList to getAt(getAt(MainMenuChooseList, t), s)
  8.         set thisrectangle to rect(getAt(whichList, 1), getAt(whichList, 2), getAt(whichList, 3), getAt(whichList, 4))
  9.         set thispoint to point(the mouseH, the mouseV)
  10.         if inside(thispoint, thisrectangle) = 1 then
  11.           set HeadList to getAt(getAt(MainMenuChooseList, t), 1)
  12.           set ImageList to getAt(getAt(MainMenuChooseList, t), 2)
  13.           if count(HeadList) > 0 then
  14.             set thismembername to getAt(HeadList, 5)
  15.             set thisspritelocation to point(getAt(HeadList, 6), getAt(HeadList, 7))
  16.             set the member of sprite MainHilightSprite1 to member thismembername
  17.             set the loc of sprite MainHilightSprite1 to thisspritelocation
  18.           end if
  19.           set the ink of sprite MainHilightSprite1 to 0
  20.           updateStage()
  21.           if count(ImageList) > 0 then
  22.             set the member of sprite MainHilightSprite2 to member getAt(ImageList, 5)
  23.             set the loc of sprite MainHilightSprite2 to point(getAt(ImageList, 6), getAt(ImageList, 7))
  24.             set the ink of sprite MainHilightSprite2 to 0
  25.           end if
  26.           updateStage()
  27.           repeat while inside(thispoint, thisrectangle) = 1
  28.             set thispoint to point(the mouseH, the mouseV)
  29.             if the mouseDown then
  30.               repeat while the mouseDown
  31.               end repeat
  32.               case t of
  33.                 1:
  34.                   set INTRunAppSprite to 0
  35.                 2:
  36.                   set INTRunAppSprite to 0
  37.                 3:
  38.                   set INTRunAppSprite to 0
  39.                 4:
  40.                   set INTRunAppSprite to 0
  41.                 5:
  42.                   set INTRunAppSprite to 0
  43.                 6:
  44.                   set INTRunAppSprite to 0
  45.                 7:
  46.                   set INTRunAppSprite to 0
  47.                 8:
  48.                   set INTRunAppSprite to 1
  49.                   set IntLeave to 1
  50.                   exit repeat
  51.                 9:
  52.                   set INTRunAppSprite to 1
  53.                   set IntLeave to 1
  54.                   exit repeat
  55.                 otherwise:
  56.               end case
  57.               if inside(thispoint, thisrectangle) = 1 then
  58.                 if INTRunAppSprite = 0 then
  59.                   set the locH of sprite MAINQuitButtonSprite to 2000
  60.                   set the locH of sprite MainHilightSprite2 to 2000
  61.                   set the locH of sprite MainRegularGraphic to 2000
  62.                   set the member of sprite 1 to member "menu1"
  63.                   updateStage()
  64.                   set the locH of sprite MainHilightSprite1 to 2000
  65.                   updateStage()
  66.                   set IntLeave to 1
  67.                   exit repeat
  68.                   next repeat
  69.                 end if
  70.                 set IntLeave to 0
  71.                 exit repeat
  72.               end if
  73.             end if
  74.           end repeat
  75.           if IntLeave = 0 then
  76.             set the locH of sprite MainHilightSprite1 to 2000
  77.             set the locH of sprite MainHilightSprite2 to 2000
  78.             updateStage()
  79.             next repeat
  80.           end if
  81.           exit repeat
  82.         end if
  83.       end if
  84.     end repeat
  85.     if IntLeave = 1 then
  86.       exit repeat
  87.     end if
  88.   end repeat
  89.   if IntLeave = 1 then
  90.     case t of
  91.       1:
  92.         cursor(4)
  93.         updateStage()
  94.         set the member of sprite 1 to member "MAINSoftwareBack"
  95.         set the loc of sprite 1 to point(320, 240)
  96.         updateStage()
  97.         tell the stage
  98.           openFirstWindow("Sofwpc01")
  99.         end tell
  100.       2:
  101.         if (the colorDepth < 16) or (the platform <> "Windows,32") then
  102.           set the member of sprite 1 to member "INTICVWarnback"
  103.           set the loc of sprite 1 to point(320, 240)
  104.           updateStage()
  105.           go("INTERNAL")
  106.         else
  107.           set the member of sprite 1 to member "INTICVback"
  108.           set the loc of sprite 1 to point(320, 240)
  109.           updateStage()
  110.           set openingname to "\files\startup.dxr"
  111.           put openingname
  112.           tell the stage
  113.             openFirstWindow(openingname)
  114.           end tell
  115.         end if
  116.       3:
  117.         cursor(4)
  118.         updateStage()
  119.         set the member of sprite 1 to member "MAINBuyersBack"
  120.         set the loc of sprite 1 to point(320, 240)
  121.         updateStage()
  122.         tell the stage
  123.           openFirstWindow("Buyers01")
  124.         end tell
  125.       4:
  126.         cursor(4)
  127.         updateStage()
  128.         set the member of sprite 1 to member "MAINJargonBack"
  129.         set the loc of sprite 1 to point(320, 240)
  130.         updateStage()
  131.         tell the stage
  132.           openFirstWindow("Jargonb")
  133.         end tell
  134.       5:
  135.         cursor(4)
  136.         updateStage()
  137.         set the member of sprite 1 to member "MAINGettingStartedBack"
  138.         set the loc of sprite 1 to point(320, 240)
  139.         updateStage()
  140.         tell the stage
  141.           openFirstWindow("Getstart")
  142.         end tell
  143.       6:
  144.         INTLaunchWWW()
  145.         set the member of sprite 1 to member "menu1"
  146.         set the loc of sprite MainRegularGraphic to point(483, 39)
  147.         updateStage()
  148.       7:
  149.         cursor(4)
  150.         updateStage()
  151.         set the member of sprite 1 to member "MAINCreditsBack"
  152.         set the loc of sprite 1 to point(320, 240)
  153.         updateStage()
  154.         tell the stage
  155.           openFirstWindow("Credits")
  156.         end tell
  157.       8:
  158.         set commandline to DriveLtr & "\software\isp\compwise.exe"
  159.         put commandline
  160.         open(commandline)
  161.       9:
  162.         set commandline to DriveLtr & "\software\isp\aolwyse.exe"
  163.         put commandline
  164.         open(commandline)
  165.     end case
  166.     set IntLeave to 0
  167.   end if
  168. end
  169.