set adjustOffset to 15 + the height of the member of sprite 10 + 10
set bugFix to the left of sprite 2
set myRect to the rect of sprite 2 + [0, 0, 0, adjustOffset]
set the rect of sprite 2 to myRect
repeat with i = 1 to 17
if not getOne([2, 13, 15, 10], i) then
set the locV of sprite i to the locV of sprite i + adjustOffset
end if
end repeat
set offsetPoint to point(getAt(the rect of the stage, 1) + ((640 - the width of myRect) / 2), getAt(the rect of the stage, 2) + ((480 - the height of myRect) / 2))
checkBtnLocations(the bottom of myRect)
set theRect to myRect + rect(offsetPoint, offsetPoint)
if not (the moreThanMax of sprite(12)) then
disable(sprite(14))
disable(sprite(16))
disable(sprite(17))
end if
if the maxLines of sprite(12) = 0 then
disable(sprite(4))
else
set theActiveLine to min(the pLastDirectorySelection of gObj5, the maxLines of sprite(12))
set the myParams of sprite(4) to theActiveLine
set the activeLine of sprite(12) to theActiveLine
if theActiveLine > 10 then
set the scrollTopValue of sprite(12) to (theActiveLine * 15) - 150
else
set the scrollTopValue of sprite(12) to 0
end if
set the scrollTop of member "directoryIndex" to the scrollTopValue of sprite(12)
updateHilite(sprite(12))
updateIndicator(sprite(12), 1)
end if
set the keyDownScript to "processKey(sprite 12, the key)"