set the rect of member "mainmenu" to rect(0, 0, 130, 235)
set the boxType of member "mainmenu" to #fixed
set the textAlign of member "mainmenu" to "left"
set the textSize of member "mainmenu" to 12
set the textHeight of member "mainmenu" to 20
set the member of sprite SLImainmenutextnumber to member "mainmenu"
set the ink of sprite SLImainmenutextnumber to 36
set the loc of sprite SLImainmenutextnumber to point(the locH of sprite SLImainmenubacknumber + 5, the locV of sprite SLImainmenubacknumber)
set the loc of sprite SLImainmenutextnumber to point(2000, 2000)
set mainmenuitems to list()
set numberprogs to 0
repeat with i = 1 to count(SLIdatabaselist)
put string(getPropAt(SLIdatabaselist, i)) after field "mainmenu"
if i < count(SLIdatabaselist) then
put RETURN after field "mainmenu"
end if
set text1 to "set numberprogs = count(the " & string(getPropAt(SLIdatabaselist, i)) & " of SLIdatabaselist)"
do(text1)
copyToClipBoard(member "secondarymenutemplate")
pasteClipBoardInto(member (the number of castMembers + 1))
set the name of member the number of castMembers to string(getPropAt(SLIdatabaselist, i))
put EMPTY into field the number of castMembers
repeat with j = 1 to numberprogs
set realname to EMPTY
set briefdesc to EMPTY
set text2 to "set realname = the realname of the prog" & j & " of the " & string(getPropAt(SLIdatabaselist, i)) & " of SLIdatabaselist"
do(text2)
set text3 to "set briefdesc = the briefdescription of the prog" & j & " of the " & string(getPropAt(SLIdatabaselist, i)) & " of SLIdatabaselist"
do(text3)
set linelength to 75
if (the number of chars in realname + the number of chars in briefdesc) > linelength then
set briefdesc to char 1 to the number of chars in briefdesc - (the number of chars in briefdesc - (linelength - the number of chars in realname)) of briefdesc
end if
put realname & " - " & briefdesc after field the number of castMembers
if j < numberprogs then
put RETURN after field the number of castMembers
end if
set the foreColor of member the number of castMembers to 256
set the textFont of member the number of castMembers to "arial"
set the textSize of member the number of castMembers to 12
set the textHeight of member the number of castMembers to 20
set the rect of member the number of castMembers to rect(0, 0, 450, the number of lines in field the name of member the number of castMembers * the textHeight of member the number of castMembers)
end repeat
set the foreColor of member "mainmenu" to 256
set the textFont of member "mainmenu" to "arial"
set the textSize of member "mainmenu" to 12
set the textHeight of member "mainmenu" to 20
set the rect of member "mainmenu" to rect(0, 0, 145, the number of lines in field "mainmenu" * the textHeight of member "mainmenu")
end repeat
set the rect of sprite SLImainmenubacknumber to rect(0, 82, 157, 222)
set the loc of sprite SLImainmenubacknumber to point(0, 82)
set the loc of sprite SLImainmenutextnumber to point(the locH of sprite SLImainmenubacknumber + 5, the locV of sprite SLImainmenubacknumber)
put "(the loc of sprite SLImainmenutextnumber) = " & the loc of sprite SLImainmenutextnumber
put "SLImainmenutextnumber = " & SLImainmenutextnumber