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

  1. !ScalaScript
  2. {
  3. Sequence:
  4. :"SubScript"
  5. {
  6. Group:
  7. BoxX.1=139;
  8. BoxY.1=71;
  9. BoxX.2=0;
  10. BoxY.2=0;
  11. BoxX=BoxX.1;
  12. BoxY=BoxY.1;
  13. BoxW=360;
  14. BoxH=249;
  15. Descr="Click a button to get information about it!";
  16. Display(Size(640,480),Face(RGB(170)),UserPalette(RGBPen(1,0,16777215,12632256,5592405,8553090,11184810,10066329)));
  17. Clip(0,330,"scala:\help\graphics\backgro3.gif",transparent(off));
  18. pagename="Design Background menu";
  19. pagedescr="Lets you control options related to the background image of a page, specifically an animation.";
  20. descr="Click a button to get information about it!";
  21. title="";
  22. Button(Normal(Box(0,330,639,25,Style(Norm))),Highlight(Box(0,330,639,25,Style(High))),Select(Box(0,330,639,25,Style(Sel)),Use(titlebar)));
  23. Button(Normal(Box(620,330,19,25,Style(Norm))),Highlight(Box(620,330,19,25,Style(High))),Select(Box(620,330,19,25,Style(Sel)),Use(infobutton)));
  24. Button(Normal(Box(4,360,313,25,Style(Norm))),Highlight(Box(4,360,313,25,Style(High))),Select(Box(4,360,313,25,Style(Sel)),Use(animation)));
  25. Button(Normal(Box(322,390,313,25,Style(Norm))),Highlight(Box(322,390,313,25,Style(High))),Select(Box(322,390,313,25,Style(Sel)),Use(size)));
  26. Button(Normal(Box(322,420,313,25,Style(Norm))),Highlight(Box(322,420,313,25,Style(High))),Select(Box(322,420,313,25,Style(Sel)),Use(pageres)));
  27. Button(Normal(Box(322,360,154,25,Style(Norm))),Highlight(Box(322,360,154,25,Style(High))),Select(Box(322,360,154,25,Style(Sel)),Use(stoponfirst)));
  28. Button(Normal(Box(481,360,154,25,Style(Norm))),Highlight(Box(481,360,154,25,Style(High))),Select(Box(481,360,154,25,Style(Sel)),Use(playafter)));
  29. Button(Normal(Box(4,420,313,25,Style(Norm))),Highlight(Box(4,420,313,25,Style(High))),Select(Box(4,420,313,25,Style(Sel)),Use(framespersec)));
  30. Button(Normal(Box(4,390,313,25,Style(Norm))),Highlight(Box(4,390,313,25,Style(High))),Select(Box(4,390,313,25,Style(Sel)),Use(loopsanim)));
  31. Button(Normal(Box(110,450,101,25,Style(Norm))),Highlight(Box(110,450,101,25,Style(High))),Select(Box(110,450,101,25,Style(Sel)),Use(editpopup)));
  32. Button(Normal(Box(4,450,101,25,Style(Norm))),Highlight(Box(4,450,101,25,Style(High))),Select(Box(4,450,101,25,Style(Sel)),Use(preview)));
  33. Button(Normal(Box(216,450,207,25,Style(Norm))),Highlight(Box(216,450,207,25,Style(High))),Select(Box(216,450,207,25,Style(Sel)),Use(designpopup)));
  34. 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)));
  35. 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)));
  36. Wait();
  37. Sequence:
  38. Use(SetUp);
  39. Use(DrawBox);
  40. Button(Wipe("BlindsFantasy3",Speed(7),Direction(90)),Normal(Box(BoxX+BoxW+10,BoxY,115,(BoxH/2),Style(Info))));
  41. Text(BoxX+BoxW+18,BoxY+10,"This screen^nhas 3 layouts",Style(Mid),Wrap(Off,Auto(340)));
  42. Button(MatchSize(On),Normal(Text(BoxX+BoxW+30,BoxY+45,"Plain",Style(Layout1))),Highlight(Text(BoxX+BoxW+30,BoxY+45,"Plain",Style(Layout2))),Select(Text(BoxX+BoxW+30,BoxY+45,"Plain",Style(Layout3)),goto(sub1)));
  43. Button(MatchSize(On),Normal(Text(BoxX+BoxW+30,BoxY+60,"Picture",Style(Layout1))),Highlight(Text(BoxX+BoxW+30,BoxY+60,"Picture",Style(Layout2))),Select(Text(BoxX+BoxW+30,BoxY+60,"Picture",Style(Layout3)),goto(sub2)));
  44. Text(BoxX+BoxW+30,BoxY+75,"Animation",Style(LayoutText));
  45. Resources:
  46. :titlebar
  47. {
  48. title="Background menu title bar";
  49. text[1]="Displays the name of the current page. Use the Page Switcher to move to other pages in the script without exiting the Background menu. All changes made to the current page are automatically confirmed when you move.";
  50. descr=text[1];
  51. block=1;
  52. max=1;
  53. Use(SetPos);
  54. }
  55. :infobutton
  56. {
  57. title="Information button";
  58. text[1]="Switches Scala into Help mode. ";
  59. descr=text[1];
  60. block=1;
  61. max=1;
  62. Use(SetPos);
  63. }
  64. :animation
  65. {
  66. title="Animation:";
  67. text[1]="Indicates the current background type and, if not a plain background, the name of the picture or animation file. Clicking on this button takes you to the File menu where you can select another background.";
  68. descr=text[1];
  69. block=1;
  70. max=1;
  71. Use(SetPos);
  72. }
  73. :size
  74. {
  75. title="Size";
  76. text[1]="Shows the width and height of the background in pixels. ";
  77. descr=text[1];
  78. block=1;
  79. max=1;
  80. Use(SetPos);
  81. }
  82. :pageres
  83. {
  84. title="Page Resolution...";
  85. text[1]="Lets you change the page resolution. Brings up a dialog showing the available resolutions.";
  86. descr=text[1];
  87. block=1;
  88. max=1;
  89. Use(SetPos);
  90. }
  91. :stoponfirst
  92. {
  93. title="Stop On First?";
  94. text[1]="Selects whether, at the conclusion of an animation, the first frame of the animation shows. When this button is off, the animation's last frame remains visible after the animation has finished running.";
  95. descr=text[1];
  96. block=1;
  97. max=1;
  98. Use(SetPos);
  99. }
  100. :playafter
  101. {
  102. title="Play After?";
  103. text[1]="Selects whether the animation should play before or after the page elements appear on the screen. When this button is on, the elements on screen can be overwritten by changing parts of the animation.";
  104. descr=text[1];
  105. block=1;
  106. max=1;
  107. Use(SetPos);
  108. }
  109. :framespersec
  110. {
  111. title="Frames per Second";
  112. text[1]="Adjusts the speed of the animation, in terms of how many frames (individual images) are shown per second. The default comes from the animation file.";
  113. descr=text[1];
  114. block=1;
  115. max=1;
  116. Use(SetPos);
  117. }
  118. :loopsanim
  119. {
  120. title="Loops";
  121. text[1]="Specifies the number of times the animation should play before continuing with the rest of the script.";
  122. descr=text[1];
  123. block=1;
  124. max=1;
  125. Use(SetPos);
  126. }
  127. :editpopup
  128. {
  129. title="Edit pop-up";
  130. text[1]="Provides basic editing functions with the following options:^n^nImport: loads a file. Brings up the File menu for you to load a clip file.^n^nExport: saves a background to a file, with any sizing, cropping, and other changes you have made. A dialog asks if you want to replace the current background with the version you saved, including any elements you saved as part of the background image with Export All?.";
  131. text[2]="Copy: copies a background to the Scala clipboard.^n^nPaste: inserts the most recently copied element from the Scala clipboard onto the page.";
  132. descr=text[1];
  133. block=1;
  134. max=2;
  135. Use(SetPos);
  136. }
  137. :preview
  138. {
  139. title="Preview";
  140. text[1]="Lets you view the current page, showing element wipes.";
  141. descr=text[1];
  142. block=1;
  143. max=1;
  144. Use(SetPos);
  145. }
  146. :designpopup
  147. {
  148. title="Design pop-up";
  149. text[1]="Lets you choose another Design menu to continue composing or refining a page.";
  150. descr=text[1];
  151. block=1;
  152. max=1;
  153. Use(SetPos);
  154. }
  155. :okbutton
  156. {
  157. title="OK";
  158. text[1]="Accepts editing changes to the current page and brings up the OK dialog box.";
  159. descr=text[1];
  160. block=1;
  161. max=1;
  162. Use(SetPos);
  163. }
  164. :cancelbutton
  165. {
  166. title="Cancel";
  167. text[1]="Closes the Design menu and returns to the Main menu without saving any changes to the current page.";
  168. descr=text[1];
  169. block=1;
  170. max=1;
  171. Use(SetPos);
  172. }
  173. }
  174. Resources:
  175. :sub1
  176. {
  177. Group:
  178. SubNum="1";
  179. Quit(1);
  180. }
  181. :sub2
  182. {
  183. Group:
  184. SubNum="2";
  185. Quit(1);
  186. }
  187. :sub3
  188. {
  189. Group:
  190. SubNum="3";
  191. Quit(1);
  192. }
  193. }
  194.