home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / multimedia / scala / HELP / BRANCH2.SCA < prev    next >
Encoding:
Text File  |  1996-05-14  |  6.0 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\branch2.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(619,226,20,25,Style(Norm))),Highlight(Box(619,226,20,25,Style(High))),Select(Box(619,226,20,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(4,286,631,25,Style(Norm))),Highlight(Box(4,286,631,25,Style(High))),Select(Box(4,286,631,25,Style(Sel)),Use(showifprompt)));
  25. 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)));
  26. 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)));
  27. 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)));
  28. 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)));
  29. 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)));
  30. 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)));
  31. 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)));
  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. Text(BoxX+BoxW+30,BoxY+60,"Condition",Style(LayoutText));
  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. 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)));
  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. :showifprompt
  71. {
  72. title="Show If Expression: prompt";
  73. text[1]="Allows you to enter an expression. If the expression evaluates as True, the event with the Condition event is shown. You can use any variables, functions, and operators in the expression.";
  74. descr=text[1];
  75. block=1;
  76. max=1;
  77. Use(SetPos);
  78. }
  79. :repeatbutton
  80. {
  81. title="Repeat";
  82. 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.";
  83. descr=text[1];
  84. block=1;
  85. max=1;
  86. Use(SetPos);
  87. }
  88. :gotobutton
  89. {
  90. title="Go To";
  91. text[1]="When selected, displays selectors that allow you to jump script execution to a different place in the script.";
  92. descr=text[1];
  93. block=1;
  94. max=1;
  95. Use(SetPos);
  96. }
  97. :varlist
  98. {
  99. title="Variables list";
  100. 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.";
  101. descr=text[1];
  102. block=1;
  103. max=1;
  104. Use(SetPos);
  105. }
  106. :functlist
  107. {
  108. title="Functions list";
  109. 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.";
  110. descr=text[1];
  111. block=1;
  112. max=1;
  113. Use(SetPos);
  114. }
  115. :operlist
  116. {
  117. title="Orators list";
  118. 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.";
  119. descr=text[1];
  120. block=1;
  121. max=1;
  122. Use(SetPos);
  123. }
  124. :okbutton
  125. {
  126. title="OK";
  127. text[1]="Accepts editing changes and returns you to the Main or List menu.";
  128. descr=text[1];
  129. block=1;
  130. max=1;
  131. Use(SetPos);
  132. }
  133. :cancelbutton
  134. {
  135. title="Cancel";
  136. text[1]="Closes the Branch menu and returns you to the Main or List menu without saving any changes to the current page.";
  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.