home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / multimedia / scala / HELP / BRANCH3.SCA < prev    next >
Encoding:
Text File  |  1996-05-14  |  7.1 KB  |  181 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\branch3.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(4,286,167,25,Style(Norm))),Highlight(Box(4,286,167,25,Style(High))),Select(Box(4,286,167,25,Style(Sel)),Use(repeatselector)));
  26. Button(Normal(Box(176,286,459,25,Style(Norm))),Highlight(Box(176,286,459,25,Style(High))),Select(Box(176,286,459,25,Style(Sel)),Use(repeatexpression)));
  27. 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)));
  28. Button(Normal(Box(4,334,248,103,Style(Norm))),Highlight(Box(4,334,248,103,Style(High))),Select(Box(4,334,248,103,Style(Sel)),Use(varlist)));
  29. Button(Normal(Box(279,334,248,103,Style(Norm))),Highlight(Box(279,334,248,103,Style(High))),Select(Box(279,334,248,103,Style(Sel)),Use(functlist)));
  30. Button(Normal(Box(554,334,59,103,Style(Norm))),Highlight(Box(554,334,59,103,Style(High))),Select(Box(554,334,59,103,Style(Sel)),Use(operlist)));
  31. 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)));
  32. 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)));
  33. Wait();
  34. Sequence:
  35. Use(SetUp);
  36. Use(DrawBox);
  37. Button(Wipe("BlindsFantasy3",Speed(7),Direction(90)),Normal(Box(BoxX+BoxW+10,BoxY,115,(BoxH/2),Style(Info))));
  38. Text(BoxX+BoxW+18,BoxY+10,"This screen ^nhas 4 Layouts",Style(Mid),Wrap(Off,Auto(340)));
  39. 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)));
  40. 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)));
  41. Text(BoxX+BoxW+30,BoxY+75,"Repeat",Style(LayoutText));
  42. Button(MatchSize(On),Normal(Text(BoxX+BoxW+30,BoxY+90,"Go To",Style(Layout1))),Highlight(Text(BoxX+BoxW+30,BoxY+90,"Go To",Style(Layout2))),Select(Text(BoxX+BoxW+30,BoxY+90,"Go To",Style(Layout3)),goto(sub4)));
  43. Resources:
  44. :infobutton
  45. {
  46. title="Information button";
  47. text[1]="Switches Scala into Help mode. ";
  48. descr=text[1];
  49. block=1;
  50. max=1;
  51. Use(SetPos);
  52. }
  53. :setvariablebutton
  54. {
  55. title="Set Variable";
  56. text[1]="When selected, displays the Set Variable: prompt, at which you can set variable values.";
  57. descr=text[1];
  58. block=1;
  59. max=1;
  60. Use(SetPos);
  61. }
  62. :conditionbutton
  63. {
  64. title="Condition";
  65. 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.";
  66. descr=text[1];
  67. block=1;
  68. max=1;
  69. Use(SetPos);
  70. }
  71. :repeatbutton
  72. {
  73. title="Repeat";
  74. 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.";
  75. descr=text[1];
  76. block=1;
  77. max=1;
  78. Use(SetPos);
  79. }
  80. :repeatselector
  81. {
  82. title="Repeat selector";
  83. text[1]="Offers two types of repeats, Repeat While and Repeat Until. Either can repeat the event with which the Repeat branch is associated. For each, you provide an expression that is evaluated with each repetition to determine whether the event should be repeated. To repeat more than one event in a loop, group the events, and apply the Repeat to the group.";
  84. text[2]="Repeat Until^nRepeats the event associated with the Repeat as long as the expression remains True. The expression is evaluated after each time the repeat event is executed, so the event is always executed at least once, even if the expression is not true.";
  85. text[3]="Repeat While^nRepeats the event associated with the Repeat only if the expression is True. The expression is evaluated before each time the repeat event is executed, so the event will never execute if the repeat expression is not True to begin with.";
  86. descr=text[1];
  87. block=1;
  88. max=3;
  89. Use(SetPos);
  90. }
  91. :repeatexpression
  92. {
  93. title="Expression:";
  94. text[1]="Enter an expression at the prompt, using variables, functions, and operators. It must evaluate to a logical True/False value. For example, ^"A<3^" is a valid logical expression, ^"3+3^" is not.";
  95. descr=text[1];
  96. block=1;
  97. max=1;
  98. Use(SetPos);
  99. }
  100. :gotobutton
  101. {
  102. title="Go To";
  103. text[1]="When selected, displays selectors that allow you to jump script execution to a different place in the script.";
  104. descr=text[1];
  105. block=1;
  106. max=1;
  107. Use(SetPos);
  108. }
  109. :varlist
  110. {
  111. title="Variables list";
  112. text[1]="The variables scrolling list shows system variables and variables created within the current script, and shows the variable type (numeric, text, or logical). Click on a variable in the list to add it to the Set Variable, Show If Expression, or Repeat Expression text box at the cursor location.";
  113. descr=text[1];
  114. block=1;
  115. max=1;
  116. Use(SetPos);
  117. }
  118. :functlist
  119. {
  120. title="Functions list";
  121. text[1]="The Functions scrolling list shows system functions available for script use, and shows the type of variable (numeric, text, or logical) that it returns. Click on a function in the list to add it to the Set Variable, Show If Expression, or Repeat Expression text box at the cursor location.";
  122. descr=text[1];
  123. block=1;
  124. max=1;
  125. Use(SetPos);
  126. }
  127. :operlist
  128. {
  129. title="Operators list";
  130. text[1]="The Operators scrolling list shows standard arithmetic, relational, and logical operators. Click on an operator in the list to add it to the Set Variable, Show If Expression, or Repeat Expression text box at the cursor location. You can also type the operator. Only integer operations are performed. The fractional portion of non-integer input values and results is ignored.";
  131. descr=text[1];
  132. block=1;
  133. max=1;
  134. Use(SetPos);
  135. }
  136. :okbutton
  137. {
  138. title="OK";
  139. text[1]="Accepts editing changes and returns you to the Main or List menu.";
  140. descr=text[1];
  141. block=1;
  142. max=1;
  143. Use(SetPos);
  144. }
  145. :cancelbutton
  146. {
  147. title="Cancel";
  148. text[1]="Closes the Branch menu and returns you to the Main or List menu without saving any changes to the current page.";
  149. descr=text[1];
  150. block=1;
  151. max=1;
  152. Use(SetPos);
  153. }
  154. }
  155. Resources:
  156. :sub1
  157. {
  158. Group:
  159. SubNum="1";
  160. Quit(1);
  161. }
  162. :sub2
  163. {
  164. Group:
  165. SubNum="2";
  166. Quit(1);
  167. }
  168. :sub3
  169. {
  170. Group:
  171. SubNum="3";
  172. Quit(1);
  173. }
  174. :sub4
  175. {
  176. Group:
  177. SubNum="4";
  178. Quit(1);
  179. }
  180. }
  181.