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

  1. !ScalaScript
  2. {
  3. Sequence:
  4. :"SubScript"
  5. {
  6. Group:
  7. BoxX.1=139;
  8. BoxY.1=10;
  9. BoxX.2=0;
  10. BoxY.2=0;
  11. BoxX=BoxX.1;
  12. BoxY=BoxY.1;
  13. BoxW=360;
  14. BoxH=240;
  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,256,"scala:\help\graphics\buttons.gif",transparent(off));
  18. Clip(20,20,"scala:\help\graphics\clip-btn.gif",transparent(off));
  19. pagename="Design Buttons menu";
  20. pagedescr="Lets you create and modify buttons on a page.";
  21. descr="Click a button to get information about it!";
  22. title="";
  23. Button(Normal(Box(0,256,639,26,Style(Norm))),Highlight(Box(0,256,639,26,Style(High))),Select(Box(0,256,639,26,Style(Sel)),Use(titlebar)));
  24. Button(Normal(Box(620,256,19,25,Style(Norm))),Highlight(Box(620,256,19,25,Style(High))),Select(Box(620,256,19,25,Style(Sel)),Use(infobutton)));
  25. Button(Normal(Box(4,286,208,25,Style(Norm))),Highlight(Box(4,286,208,25,Style(High))),Select(Box(4,286,208,25,Style(Sel)),Use(buttonpopup)));
  26. Button(Normal(Box(4,330,208,25,Style(Norm))),Highlight(Box(4,330,208,25,Style(High))),Select(Box(4,330,208,25,Style(Sel)),Use(buttonstate)));
  27. Button(Normal(Box(4,360,186,85,Style(Norm))),Highlight(Box(4,360,186,85,Style(High))),Select(Box(4,360,186,85,Style(Sel)),Use(buttonopts)));
  28. Button(Normal(Box(217,286,418,25,Style(Norm))),Highlight(Box(217,286,418,25,Style(High))),Select(Box(217,286,418,25,Style(Sel)),Use(applypreset)));
  29. Button(Normal(Box(217,330,317,25,Style(Norm))),Highlight(Box(217,330,317,25,Style(High))),Select(Box(217,330,317,25,Style(Sel)),Use(gotoselector)));
  30. Button(Normal(Box(217,360,317,25,Style(Norm))),Highlight(Box(217,360,317,25,Style(High))),Select(Box(217,360,317,25,Style(Sel)),Use(levelselector)));
  31. Button(Normal(Box(217,390,317,25,Style(Norm))),Highlight(Box(217,390,317,25,Style(High))),Select(Box(217,390,317,25,Style(Sel)),Use(leavebmark)));
  32. Button(Normal(Box(217,420,317,25,Style(Norm))),Highlight(Box(217,420,317,25,Style(High))),Select(Box(217,420,317,25,Style(Sel)),Use(hotkey)));
  33. 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)));
  34. 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)));
  35. 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)));
  36. 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)));
  37. 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)));
  38. Wait();
  39. Sequence:
  40. Use(SetUp);
  41. Use(DrawBox);
  42. Resources:
  43. :titlebar
  44. {
  45. title="Buttons menu title bar";
  46. text[1]="Displays the name of the current page. Use the Page Switcher to move to other pages in the script without exiting the Button menu. All changes made to one page are automatically confirmed before moving.";
  47. descr=text[1];
  48. block=1;
  49. max=1;
  50. Use(SetPos);
  51. }
  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. :buttonpopup
  62. {
  63. title="Button:  pop-up";
  64. text[1]="Not a Button^nTurns the selected button back into a plain clip or text element.^n^nNormal Only^nMakes the selected element into a one-state button. It responds to being selected, but cannot give any visible response to the mouse passing over it or clicking it.";
  65. text[2]="Normal + Select^nMakes the selected element into a two-state button. The button can have a different appearance, sound and variable for its normal, idle state and when it is clicked by the mouse.^n^nNormal + Highlight + Select^nMakes the selected element into a three-state button. It can have separate appearances, sounds, etc., for normal, highlighted (mouse pointer touching it but not clicked, or highlighted by using arrow keys) and selected (clicked-on) states.";
  66. descr=text[1];
  67. block=1;
  68. max=2;
  69. Use(SetPos);
  70. }
  71. :buttonstate
  72. {
  73. title="Button State selector";
  74. text[1]="Normal^nLets you edit the characteristics of an interactive button in its Normal state, when it is not highlighted or selected.^n^nHighlight^nLets you edit the characteristics of an interactive button in its Highlight state, when someone moves the mouse pointer over it, or when it is highlighted by using arrow keys.";
  75. text[2]="Select^nLets you edit the characteristics of an interactive button in its Select state, when it is chosen by a mouse click, the keyboard, or touch screen.";
  76. descr=text[1];
  77. block=1;
  78. max=2;
  79. Use(SetPos);
  80. }
  81. :buttonopts
  82. {
  83. title="Button options";
  84. text[1]="Backdrop:^nOpens the File menu, where you can choose a predefined backdrop image to put underneath a text element or clip.^n^nSound:^nOpens the Sound menu, where you can choose and adjust a sound for the current button state.^n^nVariable:^nOpens the Branch menu, where you can specify variable values to be set when a button is highlighted or selected.";
  85. text[2]="Pointer:^nLets you change how you want the mouse pointer to appear on the button for the current button state. Opens the File menu, where you can select and import a clip to use as the mouse pointer.^n^nImage:^nOpens the File menu, where you can choose a clip to import as a face image for the current button state.";
  86. text[3]="Shift: value control^nLets you center a button face within a backdrop, or to make an ^"indenting^" 3-D button look more realistic. Use the value control to specify an offset, in pixels horizontally and vertically, to move  the button face (text or clip) from its normal position in relation to its bounding box.";
  87. text[4]="Boxed Hit Area?^nLets you adjust the hit area of your interactive button that is, the area in and around the button that responds when the mouse pointer moves over it or clicks on it. When on, the hit area is a rectangle that encloses the button. When off, it is the shape of the non-background areas of  the button.^n^nLink Sizes?^nWhen on, forces any size changes you make in one button state to be reflected in the other state(s) so that their sizes match.";
  88. text[5]="Link Positions?^nWhen on, retains the relative positions of all button states when any state is moved to a new position.";
  89. descr=text[1];
  90. block=1;
  91. max=5;
  92. Use(SetPos);
  93. }
  94. :applypreset
  95. {
  96. title="Apply Preset:";
  97. text[1]="Opens the File menu, where you can choose a button preset file to apply to an existing button. Preset files contain coordinated backdrops with appropriate Shift offsets.";
  98. descr=text[1];
  99. block=1;
  100. max=1;
  101. Use(SetPos);
  102. }
  103. :gotoselector
  104. {
  105. title="Go To: selector";
  106. text[1]="Specifies the destination page or event (depending on the state of the Level: selector) for a button's Go To event. You can set a Go To for both Highlight and Select states. A shuffler image of the destination page is shown in the box to the right of the selector. Use the selector to cycle through the available destinations.";
  107. descr=text[1];
  108. block=1;
  109. max=1;
  110. Use(SetPos);
  111. }
  112. :levelselector
  113. {
  114. title="Level: selector";
  115. text[1]="Specifies the level (group or sub-script) for a Go To destination. Use the selector to cycle through the available levels. If a script has no groups or sub-scripts, the only choices are ^"<this script>^" and ^"<this page>^".";
  116. descr=text[1];
  117. block=1;
  118. max=1;
  119. Use(SetPos);
  120. }
  121. :leavebmark
  122. {
  123. title="Leave Bookmark?";
  124. text[1]="Lets you return from a Go To event. Click on it to turn it on, then insert a Go To: Return to Bookmark event at the point in the script where you want to return to the button location.";
  125. descr=text[1];
  126. block=1;
  127. max=1;
  128. Use(SetPos);
  129. }
  130. :hotkey
  131. {
  132. title="Hotkey";
  133. text[1]="Creates a ^"hotkey^" on the keyboard to select an interactive button instead of using the mouse. Use the value control to cycle through the hotkey options.";
  134. descr=text[1];
  135. block=1;
  136. max=1;
  137. Use(SetPos);
  138. }
  139. :editpopup
  140. {
  141. title="Edit pop-up";
  142. text[1]="Provides basic editing functions. Cut, Paste, Delete, Select All, Bring Forward and Send Backward all function the same way in the Buttons menu as in other menus. The following functions have special results in the Buttons menu:^n^nCopy: copies selected buttons to the Scala clipboard. Copied buttons retain all of their styles, Go To destinations, etc., except in cases where it is not possible.";
  143. text[2]="Import: Opens the File menu for you to load a predefined button file.^n^nExport: saves a button as a file. Brings up the File menu for you to save the selected button as a separate .BTN file, with all its settings retained.";
  144. descr=text[1];
  145. block=1;
  146. max=2;
  147. Use(SetPos);
  148. }
  149. :designpopup
  150. {
  151. title="Design pop-up";
  152. text[1]="Lets you choose another Design menu to continue composing or refining a button.";
  153. descr=text[1];
  154. block=1;
  155. max=1;
  156. Use(SetPos);
  157. }
  158. :preview
  159. {
  160. title="Preview";
  161. text[1]="Lets you view (and hear) your interactive button in its Normal, Highlight, and Select states. (It does not, however, execute a Go To.)";
  162. descr=text[1];
  163. block=1;
  164. max=1;
  165. Use(SetPos);
  166. }
  167. :okbutton
  168. {
  169. title="OK";
  170. text[1]="Accepts editing changes to the current page and brings up the OK dialog box.";
  171. descr=text[1];
  172. block=1;
  173. max=1;
  174. Use(SetPos);
  175. }
  176. :cancelbutton
  177. {
  178. title="Cancel";
  179. text[1]="Closes the Design menu and returns to the Main menu without saving any changes to the current page.";
  180. descr=text[1];
  181. block=1;
  182. max=1;
  183. Use(SetPos);
  184. }
  185. }
  186. Resources:
  187. }
  188.