home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / multimedia / scala / HELP / BRANCH4.SCA < prev    next >
Encoding:
Text File  |  1996-05-14  |  6.1 KB  |  169 lines

  1. !ScalaScript
  2. {
  3. Sequence:
  4. :"SubScript"
  5. {
  6. Group:
  7. BoxX.1=139;
  8. BoxY.1=35;
  9. BoxX.2=0;
  10. BoxY.2=0;
  11. BoxX=BoxX.1;
  12. BoxY=BoxY.1;
  13. BoxW=360;
  14. BoxH=215;
  15. Descr="Click a button to get information about it!";
  16. Picture("Scala:\help\graphics\branch4.gif",UserPalette(RGBPen(1,0,16777215,12632256,5592405,8553090,11184810)));
  17. pagename="Branch menu";
  18. pagedescr="Lets you define variables and control the flow of activity in a script.";
  19. descr="Click a button to get information about it!";
  20. title="";
  21. Button(Normal(Box(620,226,19,25,Style(Norm))),Highlight(Box(620,226,19,25,Style(High))),Select(Box(620,226,19,25,Style(Sel)),Use(infobutton)));
  22. Button(Normal(Box(4,256,154,25,Style(Norm))),Highlight(Box(4,256,154,25,Style(High))),Select(Box(4,256,154,25,Style(Sel)),Use(setvariablebutton)));
  23. Button(Normal(Box(163,256,154,25,Style(Norm))),Highlight(Box(163,256,154,25,Style(High))),Select(Box(163,256,154,25,Style(Sel)),Use(conditionbutton)));
  24. Button(Normal(Box(322,256,154,25,Style(Norm))),Highlight(Box(322,256,154,25,Style(High))),Select(Box(322,256,154,25,Style(Sel)),Use(repeatbutton)));
  25. Button(Normal(Box(481,256,154,25,Style(Norm))),Highlight(Box(481,256,154,25,Style(High))),Select(Box(481,256,154,25,Style(Sel)),Use(gotobutton)));
  26. Button(Normal(Box(4,302,530,25,Style(Norm))),Highlight(Box(4,302,530,25,Style(High))),Select(Box(4,302,530,25,Style(Sel)),Use(gotopick)));
  27. Button(Normal(Box(4,332,530,25,Style(Norm))),Highlight(Box(4,332,530,25,Style(High))),Select(Box(4,332,530,25,Style(Sel)),Use(leavebookmark)));
  28. Button(Normal(Box(4,362,530,25,Style(Norm))),Highlight(Box(4,362,530,25,Style(High))),Select(Box(4,362,530,25,Style(Sel)),Use(level)));
  29. Button(Normal(Box(428,450,101,25,Style(Norm))),Highlight(Box(428,450,101,25,Style(High))),Select(Box(428,450,101,25,Style(Sel)),Use(okbutton)));
  30. Button(Normal(Box(534,450,101,25,Style(Norm))),Highlight(Box(534,450,101,25,Style(High))),Select(Box(534,450,101,25,Style(Sel)),Use(cancelbutton)));
  31. Button(Normal(Box(539,302,97,73,Style(Norm))),Highlight(Box(539,302,97,73,Style(High))),Select(Box(539,302,97,73,Style(Sel)),Use(thumbnail)));
  32. Wait();
  33. Sequence:
  34. Use(SetUp);
  35. Use(DrawBox);
  36. Button(Wipe("BlindsFantasy3",Speed(7),Direction(90)),Normal(Box(BoxX+BoxW+10,BoxY,115,(BoxH/2),Style(Info))));
  37. Text(BoxX+BoxW+18,BoxY+10,"This screen ^nhas 4 Layouts",Style(Mid),Wrap(Off,Auto(340)));
  38. Button(MatchSize(On),Normal(Text(BoxX+BoxW+30,BoxY+45,"Set Variable",Style(Layout1))),Highlight(Text(BoxX+BoxW+30,BoxY+45,"Set Variable",Style(Layout2))),Select(Text(BoxX+BoxW+30,BoxY+45,"Set Variable",Style(Layout3)),goto(sub1)));
  39. Button(MatchSize(On),Normal(Text(BoxX+BoxW+30,BoxY+60,"Condition",Style(Layout1))),Highlight(Text(BoxX+BoxW+30,BoxY+60,"Condition",Style(Layout2))),Select(Text(BoxX+BoxW+30,BoxY+60,"Condition",Style(Layout3)),goto(sub2)));
  40. Button(MatchSize(On),Normal(Text(BoxX+BoxW+30,BoxY+75,"Repeat",Style(Layout1))),Highlight(Text(BoxX+BoxW+30,BoxY+75,"Repeat",Style(Layout2))),Select(Text(BoxX+BoxW+30,BoxY+75,"Repeat",Style(Layout3)),goto(sub3)));
  41. Text(BoxX+BoxW+30,BoxY+90,"Go To",Style(LayoutText));
  42. Resources:
  43. :infobutton
  44. {
  45. title="Information button";
  46. text[1]="Switches Scala into Help mode. ";
  47. descr=text[1];
  48. block=1;
  49. max=1;
  50. Use(SetPos);
  51. }
  52. :setvariablebutton
  53. {
  54. title="Set Variable";
  55. text[1]="When selected, displays the Set Variable: prompt, at which you can set variable values.";
  56. descr=text[1];
  57. block=1;
  58. max=1;
  59. Use(SetPos);
  60. }
  61. :conditionbutton
  62. {
  63. title="Condition";
  64. text[1]="When selected, displays the Show If Expression: prompt, which allows you to determine whether the event this Branch setting is associated with is played.";
  65. descr=text[1];
  66. block=1;
  67. max=1;
  68. Use(SetPos);
  69. }
  70. :repeatbutton
  71. {
  72. title="Repeat";
  73. text[1]="When selected, displays a selector that lets you choose one of two types of repeat, and a text box in which to enter an expression that is the repeat condition.";
  74. descr=text[1];
  75. block=1;
  76. max=1;
  77. Use(SetPos);
  78. }
  79. :gotobutton
  80. {
  81. title="Go To";
  82. text[1]="When selected, displays selectors that allow you to jump script execution to a different place in the script.";
  83. descr=text[1];
  84. block=1;
  85. max=1;
  86. Use(SetPos);
  87. }
  88. :gotopick
  89. {
  90. title="Go To:";
  91. text[1]="Specifies the page or element that is the Go To destination. Click the arrows to cycle through the pages available on the current level. The page/element number appears between the arrows, its name appears to the left, and a Shuffler image of the page/element appears in the space to the right. Additional choices are None (no Go To is performed), Return to Bookmark?, which returns to the event that follows the most recent Go To/Leave Bookmark event, and Exit from Script, which exits a sub-script.";
  92. descr=text[1];
  93. block=1;
  94. max=1;
  95. Use(SetPos);
  96. }
  97. :leavebookmark
  98. {
  99. title="Leave Bookmark?";
  100. text[1]="When on, leaves a ^"bookmark^", a marker that allows script execution to later return after executing some events at the Go To location. When a Go To: Return to Bookmark is encountered, script execution returns to the event immediately following the most recent Go To that left a bookmark. Not available when Go To: None, Go To: Return to Bookmark?, or Go To: Exit from Script is also selected.";
  101. descr=text[1];
  102. block=1;
  103. max=1;
  104. Use(SetPos);
  105. }
  106. :level
  107. {
  108. title="Level:";
  109. text[1]="Specifies the script level (group or sub-script) on which the Go To destination page/element is located. Click the arrows to cycle through accessible levels. If the script has no groups or sub-scripts, the selector reads ^"<this script>^" and is unavailable. The selected level name appears to the left.";
  110. descr=text[1];
  111. block=1;
  112. max=1;
  113. Use(SetPos);
  114. }
  115. :okbutton
  116. {
  117. title="OK";
  118. text[1]="Accepts editing changes and returns you to the Main or List menu.";
  119. descr=text[1];
  120. block=1;
  121. max=1;
  122. Use(SetPos);
  123. }
  124. :cancelbutton
  125. {
  126. title="Cancel";
  127. text[1]="Closes the Branch menu and returns you to the Main or List menu without saving any changes to the current page.";
  128. descr=text[1];
  129. block=1;
  130. max=1;
  131. Use(SetPos);
  132. }
  133. :thumbnail
  134. {
  135. title="Go To Shuffler Icon";
  136. text[1]="Indicates the destination page chosen in the Go To Selector.";
  137. descr=text[1];
  138. block=1;
  139. max=1;
  140. Use(SetPos);
  141. }
  142. }
  143. Resources:
  144. :sub1
  145. {
  146. Group:
  147. SubNum="1";
  148. Quit(1);
  149. }
  150. :sub2
  151. {
  152. Group:
  153. SubNum="2";
  154. Quit(1);
  155. }
  156. :sub3
  157. {
  158. Group:
  159. SubNum="3";
  160. Quit(1);
  161. }
  162. :sub4
  163. {
  164. Group:
  165. SubNum="4";
  166. Quit(1);
  167. }
  168. }
  169.