comparison DOCS/skin.html @ 8316:6548f6a4216b

sync
author gabucino
date Fri, 29 Nov 2002 21:32:41 +0000
parents 988498df1996
children 7b6b7fb76965
comparison
equal deleted inserted replaced
8315:51165bda4b5b 8316:6548f6a4216b
104 </pre> 104 </pre>
105 105
106 106
107 <h3><a name="images">2.2 Image formats</a></h3> 107 <h3><a name="images">2.2 Image formats</a></h3>
108 108
109 Images must be truecolor (24 or 32 bpp) and can be in BMP, PNG or uncompressed 109 Images must be truecolor (24 or 32 bpp) PNG.
110 TGA format. The preferred format is PNG as it compresses very well.
111 110
112 <p> 111 <p>
113 In the main window (see below) you can use images with `transparency': 112 In the main window (see below) you can use images with `transparency':
114 Regions filled with the color #FF00FF (<font color="#FF00FF">magenta</font>) 113 Regions filled with the color #FF00FF (<font color="#FF00FF">magenta</font>)
115 are fully transparent when viewed by MPlayer. This means that you can even 114 are fully transparent when viewed by MPlayer. This means that you can even
163 </p> 162 </p>
164 163
165 <p> 164 <p>
166 <em class=note> 165 <em class=note>
167 <b>Note:</b> all images can have full transparency as described in the 166 <b>Note:</b> all images can have full transparency as described in the
168 section about <a href="#images">image formats</a>. 167 section about <a href="#images">image formats</a>. If the X Server doesn't
168 support the XShape extension, the parts marked transparent will be black. If
169 you'd like to use this feature, the width of the main window's background image
170 must be dividable by 8.
169 </em> 171 </em>
170 </p> 172 </p>
171 </li> 173 </li>
172 174
173 <li> 175 <li>
305 window = sub 307 window = sub
306 ; ... items for subwindow ... 308 ; ... items for subwindow ...
307 end 309 end
308 310
309 window = menu 311 window = menu
310 ; ... items for skin menu ... 312 ; ... items for menu ...
311 end 313 end
312 end 314 end
313 </pre></td></tr></table> 315 </pre></td></tr></table>
314 316
315 <p> 317 <p>
316 The name of an image file must be given without leading directories - images are 318 The name of an image file must be given without leading directories - images are
317 searched for in the <code>Skin</code> directory. You may (but you need not) 319 searched for in the <code>Skin</code> directory. You may (but you need not)
318 specify the extension of the file. If the file does not exist, MPlayer 320 specify the extension of the file. If the file does not exist, MPlayer
319 tries to load the file <code>&lt;filename&gt;.&lt;ext&gt;</code>, where 321 tries to load the file <code>&lt;filename&gt;.&lt;ext&gt;</code>, where
320 <code>tga</code>, <code>TGA</code>, <code>bmp</code>, <code>BMP</code>, 322 <code>png</code> and <code>PNG</code> are tried for <code>&lt;ext&gt;</code>
321 <code>png</code> and <code>PNG</code> is tried for <code>&lt;ext&gt;</code>
322 (in this order). The first matching file will be used. 323 (in this order). The first matching file will be used.
323 </p> 324 </p>
324 325
325 <p> 326 <p>
326 Finally some words about positioning. The main window and the subwindow can be 327 Finally some words about positioning. The main window and the subwindow can be
348 <pre> 349 <pre>
349 base = main, -1, -1 350 base = main, -1, -1
350 </pre> 351 </pre>
351 </blockquote> 352 </blockquote>
352 353
353 MPlayer tries to load <code>main</code>, <code>main.tga</code>, 354 MPlayer tries to load <code>main</code>, <code>main.png</code>,
354 <code>main.TGA</code>, <code>main.bmp</code> etc, so that <code>main.png</code> 355 <code>main.PNG</code> files.
355 will be found.
356 <br> 356 <br>
357 If (by accident) you wrote
358 <blockquote>
359 <pre>
360 base = main.bmp, -1, -1
361 </pre>
362 </blockquote>
363 then <code>main.bmp</code>, <code>main.bmp.tga</code>, <code>main.bmp.TGA</code>,
364 <code>main.bmp.bmp</code> would be searched for and MPlayer would finally
365 give up because there is no <code>main.bmp</code> in the directory, only
366 <code>main.png</code>.
367 </td></tr></table> 357 </td></tr></table>
368 358
369 359
370 <h3><a name="mainwin">3.1 Main window</a></h3> 360 <h3><a name="mainwin">3.1 Main window</a></h3>
371 361
381 The window will appear at the given <code>X,Y</code> position on the screen 371 The window will appear at the given <code>X,Y</code> position on the screen
382 The window will have the size of the image. 372 The window will have the size of the image.
383 <div> 373 <div>
384 <em class=warn> 374 <em class=warn>
385 <b>Warning:</b> Transparent regions in the image (colored #FF00FF) appear 375 <b>Warning:</b> Transparent regions in the image (colored #FF00FF) appear
386 black on X servers without the XShape extension. 376 black on X servers without the XShape extension. The image's width must be
377 dividable by 8.
387 </em> 378 </em>
388 </div> 379 </div>
389 </dd> 380 </dd>
390 381
391 <dt><a name="main.button"> 382 <dt><a name="main.button">
575 </td></tr> 566 </td></tr>
576 <tr><td align=center><kbd>$e</kbd></td> 567 <tr><td align=center><kbd>$e</kbd></td>
577 <td>the "e" character (if playback is paused and the font has the "e" 568 <td>the "e" character (if playback is paused and the font has the "e"
578 character) 569 character)
579 </td></tr> 570 </td></tr>
571 <tr><td align=center><kbd>$x</kbd></td>
572 <td>movie width
573 </td></tr>
574 <tr><td align=center><kbd>$y</kbd></td>
575 <td>movie height
576 </td></tr>
577 <tr><td align=center><kbd>$C</kbd></td>
578 <td>used codec's name
579 </td></tr>
580 </table> 580 </table>
581 581
582 <em class="note"> 582 <em class="note">
583 <b>Note:</b> The <kbd>$a</kbd>, <kbd>$T</kbd>, <kbd>$p</kbd>, <kbd>$s</kbd> 583 <b>Note:</b> The <kbd>$a</kbd>, <kbd>$T</kbd>, <kbd>$p</kbd>, <kbd>$s</kbd>
584 and <kbd>$e</kbd> variables all return characters that should be displayed 584 and <kbd>$e</kbd> variables all return characters that should be displayed
739 <td align=left>stream is a DVD</td></tr> 739 <td align=left>stream is a DVD</td></tr>
740 <tr><td align=center><kbd>u</kbd></td> 740 <tr><td align=center><kbd>u</kbd></td>
741 <td align=left>stream is a URL</td></tr> 741 <td align=left>stream is a URL</td></tr>
742 </table> 742 </table>
743 743
744 <p>
745 <em class="note">
746 <b>Note:</b> Currently only 'p', 's', 'e', 'n', 'm' and 't' are used.
747 </em>
748 </p>
749 744
750 <h2><a name="guimsg">Appendix A: GUI messages</a></h2> 745 <h2><a name="guimsg">Appendix A: GUI messages</a></h2>
751 746
752 These are the messages that can be generated by buttons, potmeters and 747 These are the messages that can be generated by buttons, potmeters and
753 menu entries. 748 menu entries.
866 <blockquote> 861 <blockquote>
867 <dl> 862 <dl>
868 <dt><b>evAbout</b> 863 <dt><b>evAbout</b>
869 <dd>Open the about window. 864 <dd>Open the about window.
870 865
866 <dt><b>evDropSubtitle</b>
867 <dd>Disables the currently used subtitle.
868
871 <dt><b>evEqualizer</b> 869 <dt><b>evEqualizer</b>
872 <dd>Turn the equalizer on/off. 870 <dd>Turn the equalizer on/off.
873 871
874 <dt><b>evExit</b> 872 <dt><b>evExit</b>
875 <dd>Quit the program. 873 <dd>Quit the program.
883 881
884 <dt><b>evLoadPlay</b> 882 <dt><b>evLoadPlay</b>
885 <dd>Does the same as <code>evLoad</code>, but it automatically starts 883 <dd>Does the same as <code>evLoad</code>, but it automatically starts
886 playing after the file is loaded. 884 playing after the file is loaded.
887 885
886 <dt><b>evLoadSubtitle</b>
887 <dd>Loads a subtitle file (with the fileselector)
888
889 <dt><b>evLoadAudioFile</b>
890 <dd>Loads an audio file (with the fileselector)
891
888 <dt><b>evNone</b> 892 <dt><b>evNone</b>
889 <dd>Empty message, it has no effect (except maybe in CVS versions :-)). 893 <dd>Empty message, it has no effect (except maybe in CVS versions :-)).
890 894
891 <dt><b>evPlayList</b> 895 <dt><b>evPlayList</b>
892 <dd>Open/close the playlist window. 896 <dd>Open/close the playlist window.
893 897
898 <dt><b>evPlayDVD</b>
899 <dd>Tries to open the disc in the given DVDROM drive.
900
901 <dt><b>evPlayVCD</b>
902 <dd>Tries to open the disc in the given CDROM drive.
903
894 <dt><b>evPreferences</b> 904 <dt><b>evPreferences</b>
895 <dd>Open the preferences window. 905 <dd>Open the preferences window.
906
907 <dt><b>evSetAspect</b>
908 <dd>Sets displayed image aspect.
909
910 <dt><b>evSetURL</b>
911 <dd>Displays the URL dialog window.
896 912
897 <dt><b>evSkinBrowser</b> 913 <dt><b>evSkinBrowser</b>
898 <dd>Open the skin browser window. 914 <dd>Open the skin browser window.
899 </dl> 915 </dl>
900 </blockquote> 916 </blockquote>