home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club KidSoft Volume 3 #3
/
CKSPCV33.BIN
/
movies
/
catalog.dir
/
00047_Script_47
< prev
next >
Wrap
Text File
|
1995-07-19
|
2KB
|
58 lines
-- "CatalogInit" + 1
on exitFrame
-- Make boxes (which are currently hidden) into sprites
global SFirstBox
repeat with i = 0 to 4
puppetSprite (SFirstBox + i), TRUE
end repeat
-- Setup box swap variable
global boxSet
set boxSet = "A"
-- If we're here because we're returning from a detail screen then
-- we want to return to the same page number we came from, else
-- we want to go to page 1
--** puppetTransition 2, 1, 40, FALSE
global returnFromDetail, KidDemosOnly, KidDemosPageOn
if returnFromDetail = TRUE then
set returnFromDetail = FALSE -- turn the flag off
global gDetailProductSelected, gTitlesSelected
if gTitlesSelected <> [] then
set prodNumber = getPos(gTitlesSelected, gDetailProductSelected)
else
set prodNumber to 0
end if
if prodNumber = 0 then
-- Couldn't find it in the currently selected titles, so just return to the last summary page they were on
global gSummaryScreenPageNumber
ResetSummaryScreenInfo(gSummaryScreenPageNumber)
else
-- Found it! Calculate the correct page...
set curScreen = integer((prodNumber -1)/ 5) + 1
ResetSummaryScreenInfo(curScreen)
end if
else if KidDemosOnly = TRUE then
ResetSummaryScreenInfo(KidDemosPageOn)
else
ResetSummaryScreenInfo(1)
end if
-- Get ready for balloons
global KidDemosOnly
if KidDemosOnly = TRUE then
CheckBalloonChange("KidDemos")
else
CheckBalloonChange("Basic")
end if
-- Get ready for click me sprite
global lastBoxOver, lastBoxOverStartTime
set lastBoxOver = 0
set lastBoxOverStartTime = the ticks + 60
end