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

  1. !ScalaScript
  2. {
  3. Sequence:
  4. :"SubScript"
  5. {
  6. Group:
  7. BoxX.1=139;
  8. BoxY.1=41;
  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,300,"scala:\help\graphics\palette.gif",transparent(off));
  18. pagename="Design Palette menu";
  19. pagedescr="Lets you control palette options related to the background image of a page and its elements.";
  20. descr="Click a button to get information about it!";
  21. title="";
  22. Button(Normal(Box(0,300,639,25,Style(Norm))),Highlight(Box(0,300,639,25,Style(High))),Select(Box(0,300,639,25,Style(Sel)),Use(titlebar)));
  23. Button(Normal(Box(620,300,19,25,Style(Norm))),Highlight(Box(620,300,19,25,Style(High))),Select(Box(620,300,19,25,Style(Sel)),Use(infobutton)));
  24. Button(Normal(Box(4,330,631,25,Style(Norm))),Highlight(Box(4,330,631,25,Style(High))),Select(Box(4,330,631,25,Style(Sel)),Use(colorbar)));
  25. Button(Normal(Box(4,360,207,25,Style(Norm))),Highlight(Box(4,360,207,25,Style(High))),Select(Box(4,360,207,25,Style(Sel)),Use(palettesel)));
  26. Button(Normal(Box(4,390,101,25,Style(Norm))),Highlight(Box(4,390,101,25,Style(High))),Select(Box(4,390,101,25,Style(Sel)),Use(addtouser)));
  27. Button(Normal(Box(110,390,101,25,Style(Norm))),Highlight(Box(110,390,101,25,Style(High))),Select(Box(110,390,101,25,Style(Sel)),Use(deletepal)));
  28. Button(Normal(Box(4,420,101,25,Style(Norm))),Highlight(Box(4,420,101,25,Style(High))),Select(Box(4,420,101,25,Style(Sel)),Use(pickpal)));
  29. Button(Normal(Box(110,420,101,25,Style(Norm))),Highlight(Box(110,420,101,25,Style(High))),Select(Box(110,420,101,25,Style(Sel)),Use(spreadpal)));
  30. 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(freecolors)));
  31. Button(Normal(Box(481,390,154,25,Style(Norm))),Highlight(Box(481,390,154,25,Style(High))),Select(Box(481,390,154,25,Style(Sel)),Use(optimize)));
  32. Button(Normal(Box(481,420,154,25,Style(Norm))),Highlight(Box(481,420,154,25,Style(High))),Select(Box(481,420,154,25,Style(Sel)),Use(rgbhsv)));
  33. 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)));
  34. 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)));
  35. 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)));
  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. Button(Normal(Box(216,360,128,83,Style(Norm))),Highlight(Box(216,360,128,83,Style(High))),Select(Box(216,360,128,83,Style(Sel)),Use(colorsliders)));
  39. Button(Normal(Box(348,360,67,86,Style(Norm))),Highlight(Box(348,360,67,86,Style(High))),Select(Box(348,360,67,86,Style(Sel)),Use(selectedcolor)));
  40. Button(Normal(Box(419,360,58,86,Style(Norm))),Highlight(Box(419,360,58,86,Style(High))),Select(Box(419,360,58,86,Style(Sel)),Use(rgbvalues)));
  41. Wait();
  42. Sequence:
  43. Use(SetUp);
  44. Use(DrawBox);
  45. Resources:
  46. :titlebar
  47. {
  48. title="Palette 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 Palette 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. :colorbar
  65. {
  66. title="Color bar";
  67. text[1]="Lets you move between color sets of 16 colors to define the color of graphic elements on the page. Move from one set to the next using the Color Set Switcher.";
  68. descr=text[1];
  69. block=1;
  70. max=1;
  71. Use(SetPos);
  72. }
  73. :palettesel
  74. {
  75. title="Palette selector";
  76. text[1]="Selects User, Background or Clip palettes. The Background palette is available only if the current background is a picture or animation. The Clip palette is available only if a clip is selected.^n^nPalette: User^nLets you define colors for text and clips. The User palette is independent of Background and Clip palettes and can have any number of colors.";
  77. text[2]="Palette: Background^nLets you view and work with the color palette of a page background picture.^n^nPalette: Clip^nLets you view and work with the color palette of the selected clip.";
  78. descr=text[1];
  79. block=1;
  80. max=2;
  81. Use(SetPos);
  82. }
  83. :addtouser
  84. {
  85. title="Add/Add to User palette";
  86. text[1]="Lets you create a new User palette color. When in the User palette, this is the Add button. Select a color from the color bar and then click Add. The new color matches the color you selected and appears next to it. You can adjust its color using the sliders. When in the Background or Clip palettes, this button is Add to User palette, and the Delete button disappears. Select a color and click Add to User palette to copy the color to the User palette.";
  87. descr=text[1];
  88. block=1;
  89. max=1;
  90. Use(SetPos);
  91. }
  92. :deletepal
  93. {
  94. title="Delete";
  95. text[1]="Removes the selected color from the User palette. Available only when in the User palette.";
  96. descr=text[1];
  97. block=1;
  98. max=1;
  99. Use(SetPos);
  100. }
  101. :pickpal
  102. {
  103. title="Pick";
  104. text[1]="Lets you change a selected color to match a specific color from the screen page. Clicking the button changes the pointer to a cross-hair, and you can then position it on the pixel whose color you want and click to pick it. The color that was selected in the color bar changes to the picked color and all pixels in the image that were the selected color become the picked color.";
  105. descr=text[1];
  106. block=1;
  107. max=1;
  108. Use(SetPos);
  109. }
  110. :spreadpal
  111. {
  112. title="Spread";
  113. text[1]="Creates a graduated series of colors based on start and end colors. Select a start color, click Spread, and select the end color.";
  114. descr=text[1];
  115. block=1;
  116. max=1;
  117. Use(SetPos);
  118. }
  119. :freecolors
  120. {
  121. title="Free Colors";
  122. text[1]="Displays the number of colors free in the palette. Changes when new colors are created, clips are added, etc.";
  123. descr=text[1];
  124. block=1;
  125. max=1;
  126. Use(SetPos);
  127. }
  128. :optimize
  129. {
  130. title="Optimize";
  131. text[1]="Analyzes the colors of the background and elements, and adjusts the colors and color distribution for the best possible display.";
  132. descr=text[1];
  133. block=1;
  134. max=1;
  135. Use(SetPos);
  136. }
  137. :rgbhsv
  138. {
  139. title="RGB/HSV selector";
  140. text[1]="Lets you choose either RGB or HSV color modes for editing colors. In RGB mode, the three sliders control the amounts of red, green, and blue that combine to make the color in the color block. In HSV mode, the three sliders control Hue (the basic color), Saturation (the intensity of the hue), and Value (overall brightness).";
  141. descr=text[1];
  142. block=1;
  143. max=1;
  144. Use(SetPos);
  145. }
  146. :preview
  147. {
  148. title="Preview";
  149. text[1]="Lets you view the current page, showing element wipes.";
  150. descr=text[1];
  151. block=1;
  152. max=1;
  153. Use(SetPos);
  154. }
  155. :editpopup
  156. {
  157. title="Edit pop-up";
  158. text[1]="Provides basic editing functions. In addition to Cut, Copy Paste and Delete, the Palette menu has:^n^nImport: to load a Scala .PAL palette file into the User palette.^n^nExport: to save the current User palette as a Scala .PAL file.";
  159. descr=text[1];
  160. block=1;
  161. max=1;
  162. Use(SetPos);
  163. }
  164. :designpopup
  165. {
  166. title="Design pop-up";
  167. text[1]="Lets you choose another Design menu to continue composing or refining a page.";
  168. descr=text[1];
  169. block=1;
  170. max=1;
  171. Use(SetPos);
  172. }
  173. :okbutton
  174. {
  175. title="OK";
  176. text[1]="Accepts editing changes to the current page and brings up the OK dialog box.";
  177. descr=text[1];
  178. block=1;
  179. max=1;
  180. Use(SetPos);
  181. }
  182. :cancelbutton
  183. {
  184. title="Cancel";
  185. text[1]="Closes the Design menu and returns to the Main menu without saving any changes to the current page.";
  186. descr=text[1];
  187. block=1;
  188. max=1;
  189. Use(SetPos);
  190. }
  191. :colorsliders
  192. {
  193. title="Color sliders";
  194. text[1]="Adjusts the color of the selected chip by controlling the red, green and blue (or hue, saturation and value) that combine to form a color.";
  195. descr=text[1];
  196. block=1;
  197. max=1;
  198. Use(SetPos);
  199. }
  200. :selectedcolor
  201. {
  202. title="Selected color";
  203. text[1]="The color of the selected chip.";
  204. descr=text[1];
  205. block=1;
  206. max=1;
  207. Use(SetPos);
  208. }
  209. :rgbvalues
  210. {
  211. title="RGB/HSV values";
  212. text[1]="Lets you edit the individual RGB/HSV components of the selected chip.";
  213. descr=text[1];
  214. block=1;
  215. max=1;
  216. Use(SetPos);
  217. }
  218. }
  219. Resources:
  220. }
  221.