home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Winzipper
/
Winzipper_ISO.iso
/
multimedia
/
scala
/
HELP
/
HELP-RUN.SCA
< prev
next >
Wrap
Text File
|
1996-05-14
|
4KB
|
194 lines
!ScalaScript
EVENT
EVENT
Group:
string(descr,text[11],title,pagename,pagedescr,subnum,last,lastsub,prefix);
string(layoutname[4],temp[5]);
integer(block,max,morex,backx,arrowX,arrowY,BoxX,BoxY,BoxW,BoxH,BoxX.1,BoxY.1,BoxX.2,BoxY.2,angle,counter,indexx,exitx);
subnum="1";prefix="Help:";last="";lastsub="0";wait();
Sequence:
:Main
EVENT
Group:
angle=0;block=1;max=1;morex=-100;backx=-100;
END
EVENT
Group:
if((scriptname="sound")and(length(subnum)=1));
Sequence:
subnum=subnum+"a";
END
EVENT
Group:
if(not exists("Scala:\help\"+scriptname+subnum+".sca"));
Sequence:
scriptname="index";subnum="1";
END
Script("Scala:\help\"+scriptname+SubNum+".sca");
goto(main);
Resources:
:SetUp
EVENT
EVENT
Group:
if(BoxX.2>0);
Sequence:
EVENT
Group:
if(BoxX=BoxX.1);
Sequence:
ArrowX=BoxW-21;ArrowY=5;angle=180;
END
EVENT
Group:
else();
Sequence:
ArrowX=5;ArrowY=BoxH-21;Angle=0;
END
END
EVENT
Group:
else();
Sequence:
ArrowX=-999;ArrowY=-999;
END
END
:DrawBox
EVENT
IndexX=999;
ExitX=999;
Use(DrawIndexExit);
EVENT
Group:
if(BoxX.2=0);
Sequence:
Button(Wipe("SmallBlinds",Speed(8),Direction(270)),Normal(Box(BoxX,BoxY,BoxW,BoxH,Style(Info))));
END
EVENT
Group:
else();
Sequence:
Button(Normal(Box(BoxX,BoxY,BoxW,BoxH,Style(Info))));
END
Button(Normal(Clip(BoxX+ArrowX,BoxY+ArrowY,"Scala:\help\graphics\arrow-dl.gif",Face(On,Pen(4)),Operation(On,Rotate(angle)))),Highlight(Clip(BoxX+ArrowX,BoxY+ArrowY,"Scala:\help\graphics\arrow-dl.gif",Face(On,Pen(1)),Operation(On,Rotate(angle)))),Select(Clip(BoxX+ArrowX,BoxY+ArrowY,"Scala:\help\graphics\arrow-dl.gif",Operation(On,Rotate(angle))),use(MoveBox)));
Text(BoxX+8,BoxY+7,"!Prefix !pagename",Style(Big));
EVENT
Group:
if(scriptname="sound");
Sequence:
Text(BoxX+10,BoxY+27,"!pagedescr",Style(Small),Wrap(On,Auto(340)),Live(off));
Text(BoxX+8,BoxY+125,"!title",Style(Mid));
Text(BoxX+10,BoxY+140,"!descr",Style(Small),Wrap(On,Auto(340)));
END
EVENT
Group:
else();
Sequence:
Text(BoxX+10,BoxY+43,"!pagedescr",Style(Small),Wrap(On,Auto(340)));
Text(BoxX+8,BoxY+83,"!title",Style(Mid));
Text(BoxX+10,BoxY+106,"!descr",Style(Small),Wrap(On,Auto(340)));
END
IndexX=117;
ExitX=50;
Use(DrawIndexExit);
END
:DrawIndexExit
EVENT
Button(MatchSize(On),Normal(Text(BoxX+BoxW-IndexX,BoxY+BoxH-20,"INDEX",Style(Control1))),Highlight(Text(BoxX+BoxW-IndexX,BoxY+BoxH-20,"INDEX",Style(Control2))),Select(Text(BoxX+BoxW-IndexX,BoxY+BoxH-20,"INDEX",Style(Control3)),use(index)));
Button(MatchSize(On),Normal(Text(BoxX+BoxW-ExitX,BoxY+BoxH-20,"EXIT",Style(Control1))),Highlight(Text(BoxX+BoxW-ExitX,BoxY+BoxH-20,"EXIT",Style(Control2))),Select(Text(BoxX+BoxW-ExitX,BoxY+BoxH-20,"EXIT",Style(Control3)),goto(leave)));
END
:MoveBox
EVENT
temp[0]=pagedescr;temp[1]=title;temp[2]=descr;temp[3]=pagename;temp[4]=prefix;pagedescr="";title="";descr="";pagename="";prefix="";
Group:
if(BoxX.2>0);
Sequence:
EVENT
EVENT
Group:
if(BoxX=BoxX.1);
Sequence:
BoxX=BoxX.2;BoxY=BoxY.2;
END
EVENT
Group:
else();
Sequence:
BoxX=BoxX.1;BoxY=BoxY.1;
END
END
Use(Setup);
Use(DrawBox);
pagedescr=temp[0];title=temp[1];descr=temp[2];pagename=temp[3];prefix=temp[4];
Use(SetPos);
END
:SetPos
EVENT
EVENT
Group:
if(block<max);
Sequence:
morex=106;
END
EVENT
Group:
else();
Sequence:
morex=-999;
END
Button(MatchSize(On),Normal(Text(BoxX+morex,BoxY+BoxH-20,"MORE",Style(Control1))),Highlight(Text(BoxX+morex,BoxY+BoxH-20,"MORE",Style(Control2))),Select(Text(BoxX+morex,BoxY+BoxH-20,"MORE",Style(Control3)),use(domore)));
EVENT
Group:
if(block>1);
Sequence:
backx=41;
END
EVENT
Group:
else();
Sequence:
backx=-999;
END
Button(MatchSize(On),Normal(Text(BoxX+backx,BoxY+BoxH-20,"BACK",Style(Control1))),Highlight(Text(BoxX+backx,BoxY+BoxH-20,"BACK",Style(Control2))),Select(Text(BoxX+backx,BoxY+BoxH-20,"BACK",Style(Control3)),use(doback)));
END
:DoMore
EVENT
Group:
if(block<max);
Sequence:
block=block+1;descr=text[block];Use(SetPos);
END
:DoBack
EVENT
Group:
if(block>1);
Sequence:
block=block-1;descr=text[block];Use(SetPos);
END
:Index
EVENT
last=scriptname;lastsub=subnum;scriptname="index";subnum="1";
quit(1);
END
:Backtolast
EVENT
EVENT
Group:
if(last="");
Sequence:
quit(3);
END
EVENT
Group:
else();
Sequence:
scriptname=last;subnum=lastsub;last="";lastsub="";
quit(1);
END
END
:Leave
quit(3);
END
END