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

  1. !ScalaScript
  2. {
  3. Sequence:
  4. :"SubScript"
  5. {
  6. Group:
  7. BoxX.1=139;
  8. BoxY.1=37;
  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. Picture("Scala:\help\graphics\soundbak.gif",UserPalette(RGBPen(1,0,16777215,12632256,5592405,8553090,11184810)));
  17. Clip(0,292,"Scala:\help\graphics\sound1A.gif",transparent(off));
  18. pagename="Sound Menu:Sample panels";
  19.     title="";
  20. pagedescr="Lets you control options related to sampled sounds. Use the Panel pop-up to choose from five functions available: Play, Wait, Stop, Volume and Pan.^n^nSample: Play^nPlays a sound sample file. Clicking the File: button opens the File menu, where you can load a .WAV sample file. You can hear selected files by clicking Preview.";
  21. Button(Normal(Box(620,292,19,25,Style(Norm))),Highlight(Box(620,292,19,25,Style(High))),Select(Box(620,292,19,25,Style(Sel)),Use(infobutton)));
  22. Button(Normal(Box(4,322,415,25,Style(Norm))),Highlight(Box(4,322,415,25,Style(High))),Select(Box(4,322,415,25,Style(Sel)),Use(soundtype)));
  23. Button(Normal(Box(426,322,209,25,Style(Norm))),Highlight(Box(426,322,209,25,Style(High))),Select(Box(426,322,209,25,Style(Sel)),Use(panelpopup)));
  24. Button(Normal(Box(4,450,100,25,Style(Norm))),Highlight(Box(4,450,100,25,Style(High))),Select(Box(4,450,100,25,Style(Sel)),Use(preview)));
  25. Button(Normal(Box(429,450,100,25,Style(Norm))),Highlight(Box(429,450,100,25,Style(High))),Select(Box(429,450,100,25,Style(Sel)),Use(okbutton)));
  26. 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)));
  27. Button(Normal(Box(325,356,310,25,Style(Norm))),Highlight(Box(325,356,310,25,Style(High))),Select(Box(325,356,310,25,Style(Sel)),Use(sampleplayrate)));
  28. Button(Normal(Box(325,386,310,25,Style(Norm))),Highlight(Box(325,386,310,25,Style(High))),Select(Box(325,386,310,25,Style(Sel)),Use(sampleplayloops)));
  29. Button(Normal(Box(4,416,155,22,Style(Norm))),Highlight(Box(4,416,155,22,Style(High))),Select(Box(4,416,155,22,Style(Sel)),Use(sampleplaypan)));
  30. Button(Normal(Box(164,416,156,22,Style(Norm))),Highlight(Box(164,416,156,22,Style(High))),Select(Box(164,416,156,22,Style(Sel)),Use(sampleplayvolume)));
  31. Button(Normal(Box(325,416,310,25,Style(Norm))),Highlight(Box(325,416,310,25,Style(High))),Select(Box(325,416,310,25,Style(Sel)),Use(sampleplayfade)));
  32. Button(Normal(Box(109,450,100,25,Style(Norm))),Highlight(Box(109,450,100,25,Style(High))),Select(Box(109,450,100,25,Style(Sel)),Use(sampleplaywait)));
  33. Button(Normal(Box(214,450,103,25,Style(Norm))),Highlight(Box(214,450,103,25,Style(High))),Select(Box(214,450,103,25,Style(Sel)),Use(sampleplayspool)));
  34. Button(Normal(Box(4,356,317,26,Style(Norm))),Highlight(Box(4,356,317,26,Style(High))),Select(Box(4,356,317,26,Style(Sel)),Use(sampleplayfile)));
  35. Wait();
  36. Sequence:
  37. Use(SetUp);
  38. Use(DrawBox);
  39. Button(Wipe("BlindsFantasy3",Speed(7),Direction(90)),Normal(Box(BoxX+BoxW+10,BoxY,115,BoxH,Style(Info))));
  40. Text(BoxX+BoxW+15,BoxY+5,"Sound Screens:",Style(Mid),Justify(Center,Top),Wrap(Off,Auto(340)));
  41. Text(BoxX+BoxW+17,BoxY+25,"Sample",Style(LayoutText));
  42. Button(MatchSize(On),Normal(Text(BoxX+BoxW+17,BoxY+36,"MIDI",Style(Layout1))),Highlight(Text(BoxX+BoxW+17,BoxY+36,"MIDI",Style(Layout2))),Select(Text(BoxX+BoxW+17,BoxY+36,"MIDI",Style(Layout3)),goto(sub2a)));
  43. Button(MatchSize(On),Normal(Text(BoxX+BoxW+17,BoxY+47,"CD",Style(Layout1))),Highlight(Text(BoxX+BoxW+17,BoxY+47,"CD",Style(Layout2))),Select(Text(BoxX+BoxW+17,BoxY+47,"CD",Style(Layout3)),goto(sub3a)));
  44. Button(MatchSize(On),Normal(Text(BoxX+BoxW+17,BoxY+58,"Mixer",Style(Layout1))),Highlight(Text(BoxX+BoxW+17,BoxY+58,"Mixer",Style(Layout2))),Select(Text(BoxX+BoxW+17,BoxY+58,"Mixer",Style(Layout3)),goto(sub4a)));
  45. Text(BoxX+BoxW+17,BoxY+75,"Sample: Play",Style(LayoutText));
  46. Button(MatchSize(On),Normal(Text(BoxX+BoxW+17,BoxY+86,"Sample: None",Style(Layout1))),Highlight(Text(BoxX+BoxW+17,BoxY+86,"Sample: None",Style(Layout2))),Select(Text(BoxX+BoxW+17,BoxY+86,"Sample: None",Style(Layout3)),goto(sub1b)));
  47. Button(MatchSize(On),Normal(Text(BoxX+BoxW+17,BoxY+97,"Sample: Wait",Style(Layout1))),Highlight(Text(BoxX+BoxW+17,BoxY+97,"Sample: Wait",Style(Layout2))),Select(Text(BoxX+BoxW+17,BoxY+97,"Sample: Wait",Style(Layout3)),goto(sub1c)));
  48. Button(MatchSize(On),Normal(Text(BoxX+BoxW+17,BoxY+108,"Sample: Stop",Style(Layout1))),Highlight(Text(BoxX+BoxW+17,BoxY+108,"Sample: Stop",Style(Layout2))),Select(Text(BoxX+BoxW+17,BoxY+108,"Sample: Stop",Style(Layout3)),goto(sub1d)));
  49. Button(MatchSize(On),Normal(Text(BoxX+BoxW+17,BoxY+119,"Sample: Volume",Style(Layout1))),Highlight(Text(BoxX+BoxW+17,BoxY+119,"Sample: Volume",Style(Layout2))),Select(Text(BoxX+BoxW+17,BoxY+119,"Sample: Volume",Style(Layout3)),goto(sub1e)));
  50. Button(MatchSize(On),Normal(Text(BoxX+BoxW+17,BoxY+130,"Sample: Pan",Style(Layout1))),Highlight(Text(BoxX+BoxW+17,BoxY+130,"Sample: Pan",Style(Layout2))),Select(Text(BoxX+BoxW+17,BoxY+130,"Sample: Pan",Style(Layout3)),goto(sub1f)));
  51. Resources:
  52. :infobutton
  53. {
  54. title="Information button";
  55. text[1]="Switches Scala into Help mode. ";
  56. descr=text[1];
  57. block=1;
  58. max=1;
  59. Use(SetPos);
  60. }
  61. :soundtype
  62. {
  63. title="Sound type buttons";
  64. text[1]="Select a type of sound event - Sample, MIDI, CD or Mixer. Each sound type has its own set of control panels. Clicking on a Sound button in the Main or List menus opens the Sound menu and activates the Sound control panel that applies to that event. If no sound event has been defined, Sample is selected.";
  65. descr=text[1];
  66. block=1;
  67. max=1;
  68. Use(SetPos);
  69. }
  70. :panelpopup
  71. {
  72. title="Panel pop-up";
  73. text[1]="Lets you access the control panels for the selected sound type events. ^"None^" on this button indicates that no sound event of that type is defined for the current element or page.^n^nChanges made in the sound settings are not displayed on the column button until you accept them and return to the Main menu, or move to another page.";
  74. descr=text[1];
  75. block=1;
  76. max=1;
  77. Use(SetPos);
  78. }
  79. :preview
  80. {
  81. title="Preview";
  82. text[1]="Lets you test a sound event by viewing the page with the sound event(s) you have added.";
  83. descr=text[1];
  84. block=1;
  85. max=1;
  86. Use(SetPos);
  87. }
  88. :okbutton
  89. {
  90. title="OK";
  91. text[1]="Accepts changes and exits the Sound menu.";
  92. descr=text[1];
  93. block=1;
  94. max=1;
  95. Use(SetPos);
  96. }
  97. :cancelbutton
  98. {
  99. title="Cancel";
  100. text[1]="Returns to the Main or List menu without applying changes.";
  101. descr=text[1];
  102. block=1;
  103. max=1;
  104. Use(SetPos);
  105. }
  106. :sampleplayrate
  107. {
  108. title="Rate (Hz)";
  109. text[1]="Lets you adjust the rate in Hertz (Hz) at which the sample is played. The higher the rate, the higher the pitch of the sound and the less time it takes to play.";
  110. descr=text[1];
  111. block=1;
  112. max=1;
  113. Use(SetPos);
  114. }
  115. :sampleplayloops
  116. {
  117. title="Loops";
  118. text[1]="Define the number of times (from 1 to 99, or infinite) the sample is repeated before the next page in the script is displayed or the sample stops.";
  119. descr=text[1];
  120. block=1;
  121. max=1;
  122. Use(SetPos);
  123. }
  124. :sampleplaypan
  125. {
  126. title="Pan slider";
  127. text[1]="Sets the left/right balance of the sound. Default: centered.";
  128. descr=text[1];
  129. block=1;
  130. max=1;
  131. Use(SetPos);
  132. }
  133. :sampleplayvolume
  134. {
  135. title="Volume slider";
  136. text[1]="Adjusts the loudness of the sound. Default: maximum.";
  137. descr=text[1];
  138. block=1;
  139. max=1;
  140. Use(SetPos);
  141. }
  142. :sampleplayfade
  143. {
  144. title="Fade In Time";
  145. text[1]="Defines the time in seconds from 0 to 99 that the sound takes to increase from no sound to the level set by the Volume slider. Wait? is available with a Fade-in Time other than zero.";
  146. descr=text[1];
  147. block=1;
  148. max=1;
  149. Use(SetPos);
  150. }
  151. :sampleplaywait
  152. {
  153. title="Wait?";
  154. text[1]="Controls the flow of a script. When on, Wait? prevents the script from proceeding until the current sound event finishes. It is on by default.";
  155. descr=text[1];
  156. block=1;
  157. max=1;
  158. Use(SetPos);
  159. }
  160. :sampleplayspool
  161. {
  162. title="Spool?";
  163. text[1]="Allows you to turn off spooling (playing of sample sound files directly from disk). With Spool? turned off, sounds are loaded into memory before playing. This can often allow animations that run at the same time as the sample to run more smoothly.";
  164. descr=text[1];
  165. block=1;
  166. max=1;
  167. Use(SetPos);
  168. }
  169. :sampleplayfile
  170. {
  171. title="File:...";
  172. text[1]="Indicates the current sound file.  Clicking on this button takes you to the File menu, where you can select another sound file.";
  173. descr=text[1];
  174. block=1;
  175. max=1;
  176. Use(SetPos);
  177. }
  178. }
  179. Resources:
  180. :sub2a
  181. {
  182. Group:
  183. SubNum="2a";
  184. Quit(1);
  185. }
  186. :sub3a
  187. {
  188. Group:
  189. SubNum="3a";
  190. Quit(1);
  191. }
  192. :sub4a
  193. {
  194. Group:
  195. SubNum="4a";
  196. Quit(1);
  197. }
  198. :sub1b
  199. {
  200. Group:
  201. SubNum="1b";
  202. Quit(1);
  203. }
  204. :sub1c
  205. {
  206. Group:
  207. SubNum="1c";
  208. Quit(1);
  209. }
  210. :sub1d
  211. {
  212. Group:
  213. SubNum="1d";
  214. Quit(1);
  215. }
  216. :sub1e
  217. {
  218. Group:
  219. SubNum="1e";
  220. Quit(1);
  221. }
  222. :sub1f
  223. {
  224. Group:
  225. SubNum="1f";
  226. Quit(1);
  227. }
  228. }
  229.