home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gCurrentBook, gCFTBook, gIntro2Movie, gCurrentOrAll, gFirstRun, gFirstMainRun, gFirstChooserRun, gFirstPersonalRun, gFirstRecipeRun, gFirstUtilityRun, gFirstPlannerRun, gFirstVideoRun
- set gCurrentBook to gCFTBook
- set gCurrentOrAll to "Current"
- CFTSetUp()
- set gFirstRun to 1
- set gFirstMainRun to 1
- set gFirstChooserRun to 1
- set gFirstPersonalRun to 1
- set gFirstRecipeRun to 1
- set gFirstUtilityRun to 1
- set gFirstPlannerRun to 1
- set gFirstVideoRun to 1
- set gIntro2Movie to "Intro2" & char 1 of gCFTBook
- startTimer()
- end
-
- on mouseUp
- global gIntro2Movie
- go(1, the pathName & gIntro2Movie)
- dontPassEvent()
- end
-
- on buildRecipesAvailable
- global gRecipesAvailableList, gMyRecipesList, gCFTBook, gSearchList, gOwnsHealthy, gOwnsGAC, gOwnsFandW, gOwnsCFTPasta, gOwnsCFTVegi, gOwnsCFTStir, gOwnsCFTChick
- set config to EMPTY
- if the machineType <> 256 then
- openXLib("prefpath")
- set prefObj to prefpath(mnew)
- set prefName to prefObj(mprefpath)
- if objectp(fileObj) then
- fileObj(mdispose)
- end if
- set fileObj to FileIO(mnew, "read", prefName)
- if objectp(fileObj) then
- repeat with i = 1 to 10
- put fileObj(mReadChar) after config
- end repeat
- else
- set config to "0000000000"
- end if
- if objectp(fileObj) then
- fileObj(mdispose)
- end if
- set driveLetter to char 1 of config
- set gHardDriveP to integer(char 2 of config)
- set gOwnsHealthy to integer(char 3 of config)
- set gOwnsGAC to integer(char 4 of config)
- set gOwnsBundle to integer(char 5 of config)
- set gOwnsCFTPasta to integer(char 6 of config)
- set gOwnsCFTVegi to integer(char 7 of config)
- set gOwnsCFTStir to integer(char 8 of config)
- set gOwnsCFTChick to integer(char 9 of config)
- set gOwnsFandW to integer(char 10 of config)
- end if
- if gCFTBook = "Pasta" then
- set gOwnsCFTPasta to 1
- else
- if gCFTBook = "Vegi" then
- set gOwnsCFTVegi to 1
- else
- if gCFTBook = "Stir" then
- set gOwnsStir to 1
- else
- if gCFTBook = "Chick" then
- set gOwnsChick to 1
- else
- if gCFTBook = "Bundle" then
- set gOwnsBundle to 1
- end if
- end if
- end if
- end if
- end if
- if gOwnsBundle = 1 then
- set gOwnsCFTPasta to 1
- set gOwnsCFTVegi to 1
- set gOwnsCFTStir to 1
- set gOwnsCFTChick to 1
- end if
- set gRecipesAvailableList to []
- if gOwnsHealthy then
- repeat with i = 1 to 426
- add(gRecipesAvailableList, i)
- end repeat
- end if
- if gOwnsGAC then
- repeat with i = 1001 to 1453
- add(gRecipesAvailableList, i)
- end repeat
- repeat with i = 1501 to 1612
- add(gRecipesAvailableList, i)
- end repeat
- end if
- if gOwnsCFTPasta then
- repeat with i = 1701 to 1767
- add(gRecipesAvailableList, i)
- end repeat
- repeat with i = 1769 to 1772
- add(gRecipesAvailableList, i)
- end repeat
- end if
- if gOwnsCFTVegi then
- repeat with i = 1801 to 1868
- add(gRecipesAvailableList, i)
- end repeat
- end if
- if gOwnsCFTStir then
- repeat with i = 1901 to 1968
- add(gRecipesAvailableList, i)
- end repeat
- end if
- if gOwnsCFTChick then
- repeat with i = 2001 to 2068
- add(gRecipesAvailableList, i)
- end repeat
- end if
- if gOwnsFandW then
- repeat with i = 3000 to 3165
- add(gRecipesAvailableList, i)
- end repeat
- end if
- set gMyRecipesList to []
- if gCFTBook = "Pasta" then
- repeat with i = 1701 to 1767
- add(gMyRecipesList, i)
- end repeat
- repeat with i = 1769 to 1772
- add(gMyRecipesList, i)
- end repeat
- else
- if gCFTBook = "Vegi" then
- repeat with i = 1801 to 1868
- add(gMyRecipesList, i)
- end repeat
- else
- if gCFTBook = "Stir" then
- repeat with i = 1901 to 1968
- add(gMyRecipesList, i)
- end repeat
- else
- if gCFTBook = "Chick" then
- repeat with i = 2001 to 2068
- add(gMyRecipesList, i)
- end repeat
- else
- if gCFTBook = "Bundle" then
- repeat with i = 1701 to 1767
- add(gMyRecipesList, i)
- end repeat
- repeat with i = 1769 to 1772
- add(gMyRecipesList, i)
- end repeat
- repeat with i = 1801 to 1868
- add(gMyRecipesList, i)
- end repeat
- repeat with i = 1901 to 1968
- add(gMyRecipesList, i)
- end repeat
- repeat with i = 2001 to 2068
- add(gMyRecipesList, i)
- end repeat
- end if
- end if
- end if
- end if
- end if
- set gSearchList to gMyRecipesList
- end
-
- on CFTSetUp
- global gOriginalColorDepth, gCurrentRecipe, gCurrentRecipeFrame, gRecipeIDDB, gTermIDDB, gUtensilIDDB, gFoodIDDB, gStandardIDDB, gVideoIDDB, gTableIDDB, gPersonalIDDB, gShowAllNotes, gPastaBrowser, gVegiBrowser, gStirBrowser, gChickBrowser, gRecipesFoundBrowser, gBrowseChooser, gSendPlanner, gSendShopping, gSendPersonal, gShoppingTitles, gShoppingIngredients, gShoppingServings, gShoppingQuantities, gScaledIngredients, gScaledServings, gAllQuantities, gAllUnits, gAllRests, gPlannerRecipes, gPersonalRecipes
- cursor(4)
- cleanLegos()
- set gOriginalColorDepth to the colorDepth
- set the colorDepth to 8
- DBSetUp()
- set gCurrentRecipeFrame to "recipe1"
- set gPersonalIDDB to [:]
- set gShowAllNotes to 0
- set gRecipeIDDB to value(field "recipeIDDB")
- set gCFTRecipeIDDB to value(field "CFTrecipeIDDB")
- set gfandwIDDB to value(field "fandwIDDB")
- repeat with i = 1 to 67
- addProp(gRecipeIDDB, getOne(gCFTRecipeIDDB, 1700 + i), i + 1700)
- end repeat
- repeat with i = 69 to 72
- addProp(gRecipeIDDB, getOne(gCFTRecipeIDDB, 1700 + i), i + 1700)
- end repeat
- repeat with i = 1 to 68
- addProp(gRecipeIDDB, getOne(gCFTRecipeIDDB, 1800 + i), i + 1800)
- end repeat
- repeat with i = 1 to 68
- addProp(gRecipeIDDB, getOne(gCFTRecipeIDDB, 1900 + i), i + 1900)
- end repeat
- repeat with i = 1 to 68
- addProp(gRecipeIDDB, getOne(gCFTRecipeIDDB, 2000 + i), i + 2000)
- end repeat
- repeat with i = 1 to 223
- addProp(gRecipeIDDB, getOne(gfandwIDDB, 2999 + i), i + 2999)
- end repeat
- set gfandwIDDB to []
- set gCFTRecipeIDDB to []
- buildRecipesAvailable()
- set gTermIDDB to value(field "termIDDB")
- set gUtensilIDDB to value(field "utensilIDDB")
- set gFoodIDDB to value(field "foodIDDB")
- set gStandardIDDB to value(field "full standard ingredients")
- put gStandardIDDB
- set gVideoIDDB to value(field "videoIDDB")
- set gTableIDDB to value(field "tableIDDB")
- set gPastaBrowser to value(field "PastaBrowser")
- set gVegiBrowser to value(field "VegiBrowser")
- set gStirBrowser to value(field "StirBrowser")
- set gChickBrowser to value(field "ChickBrowser")
- set gRecipesFoundBrowser to [:]
- set gBrowseChooser to 0
- set gSendPlanner to 0
- set gSendShopping to 0
- set gSendPersonal to 0
- set gShoppingTitles to []
- set gShoppingIngredients to []
- set gShoppingServings to []
- set gShoppingQuantities to []
- set gScaledIngredients to []
- set gScaledServings to []
- set gAllQuantities to []
- set gAllUnits to []
- set gAllRests to []
- set gPlannerRecipes to []
- set gPersonalRecipes to []
- if the machineType = 256 then
- append(the searchPath, the pathName & "PCDB\")
- append(the searchPath, the pathName & "LILPIC\BEAUTY\PASTA\")
- append(the searchPath, the pathName & "LILPIC\BEAUTY\VEGI\")
- append(the searchPath, the pathName & "LILPIC\BEAUTY\STIR\")
- append(the searchPath, the pathName & "LILPIC\BEAUTY\CHICK\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE029\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE059\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE089\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE119\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE149\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE179\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE209\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE239\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE269\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE299\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE329\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE359\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE029\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE389\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE419\")
- append(the searchPath, the pathName & "LILPIC\RECIPES\GUIDE449\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS029\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS059\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS089\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS119\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS149\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS179\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS209\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS239\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS269\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS299\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS329\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS359\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS029\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS389\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS419\")
- append(the searchPath, the pathName & "LILPIC\TERMS\TERMS449\")
- append(the searchPath, the pathName & "PIC\BEAUTY\PASTA\")
- append(the searchPath, the pathName & "PIC\BEAUTY\VEGI\")
- append(the searchPath, the pathName & "PIC\BEAUTY\STIR\")
- append(the searchPath, the pathName & "PIC\BEAUTY\CHICK\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE029\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE059\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE089\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE119\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE149\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE179\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE209\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE239\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE269\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE299\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE329\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE359\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE029\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE389\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE419\")
- append(the searchPath, the pathName & "PIC\RECIPES\GUIDE449\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS029\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS059\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS089\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS119\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS149\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS179\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS209\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS239\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS269\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS299\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS329\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS359\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS029\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS389\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS419\")
- append(the searchPath, the pathName & "PIC\TERMS\TERMS449\")
- append(the searchPath, the pathName & "PIC\VIDEO\")
- append(the searchPath, the pathName & "PIC\VIDEO\VIDEO1\")
- append(the searchPath, the pathName & "PIC\VIDEO\VIDEO2\")
- append(the searchPath, the pathName & "PIC\VIDEO\VIDEO3\")
- append(the searchPath, the pathName & "PIC\VIDEO\VIDEO4\")
- append(the searchPath, the pathName & "PIC\UTENSILS\UTENSIL1\")
- append(the searchPath, the pathName & "PIC\UTENSILS\UTENSIL2\")
- append(the searchPath, the pathName & "VID\")
- append(the searchPath, the pathName & "VID\VIDEO1\")
- append(the searchPath, the pathName & "VID\VIDEO2\")
- append(the searchPath, the pathName & "VID\VIDEO3\")
- append(the searchPath, the pathName & "VID\VIDEO4\")
- else
- append(the searchPath, the pathName & "MACDB:")
- append(the searchPath, the pathName & "PIC:BEAUTY:PASTA:")
- append(the searchPath, the pathName & "PIC:BEAUTY:VEGI:")
- append(the searchPath, the pathName & "PIC:BEAUTY:STIR:")
- append(the searchPath, the pathName & "PIC:BEAUTY:CHICK:")
- append(the searchPath, the pathName & "PIC:VIDEO:")
- append(the searchPath, the pathName & "PIC:VIDEO:VIDEO1:")
- append(the searchPath, the pathName & "PIC:VIDEO:VIDEO2:")
- append(the searchPath, the pathName & "PIC:VIDEO:VIDEO3:")
- append(the searchPath, the pathName & "PIC:VIDEO:VIDEO4:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE059:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE089:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE119:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE149:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE179:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE209:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE239:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE269:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE299:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE329:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE359:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE029:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE389:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE419:")
- append(the searchPath, the pathName & "PIC:RECIPES:GUIDE449:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS029:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS059:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS089:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS119:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS149:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS179:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS209:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS239:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS269:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS299:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS329:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS359:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS029:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS389:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS419:")
- append(the searchPath, the pathName & "PIC:TERMS:TERMS449:")
- append(the searchPath, the pathName & "PIC:UTENSILS:UTENSIL1:")
- append(the searchPath, the pathName & "PIC:UTENSILS:UTENSIL2:")
- append(the searchPath, the pathName & "VID:")
- append(the searchPath, the pathName & "VID:VIDEO1:")
- append(the searchPath, the pathName & "VID:VIDEO2:")
- append(the searchPath, the pathName & "VID:VIDEO3:")
- append(the searchPath, the pathName & "VID:VIDEO4:")
- end if
- cursor(-1)
- end
-