From 80e51f195b3994daf8173ab58a443d65d42e10cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Teuli=C3=A8re?= Date: Tue, 6 Dec 2005 20:12:34 +0000 Subject: [PATCH] * doc/skins/skins2-howto.xml: A few fixes and additions. --- doc/skins/skins2-howto.xml | 62 +++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/doc/skins/skins2-howto.xml b/doc/skins/skins2-howto.xml index d7f4bedbf6..db883f763a 100644 --- a/doc/skins/skins2-howto.xml +++ b/doc/skins/skins2-howto.xml @@ -110,30 +110,30 @@ difficulty to understand how VLC skins work. Theme Main tag, for global attributes - + version Version of the DTD used when making the skin, such as "2.0" (you can find the version in the DTD itself). This number might be used in the future to provide a better backward compatibility with older skins. Required. - + tooltipfont Identifiant of a Font or BitmapFont, used for the tooltips (beware that any character not present in a BitmapFont will be printed as a space, so will be invisible). The default value uses a font provided with VLC, so you don't need to provide it with your skin. Default value: defaultfont - + magnet Allows to select the range of action (in pixels) of magnetism with borders of the screen: when the distance between the border of the screen and an anchor of a window is less than this value, the window will stick to the border. 0 disables magnetism with the screen borders. Default value: 15 - + alpha Sets the alpha transparency of the windows. The value must be between 1 (nearly total transparency) and 255 (total opacity). Low values should be avoided. This only works if transparency is not disabled in the preferences of the skins2 module. Default value: 255 - + movealpha - Sets the alpha transparency of the windows when they are moving. Same range as alpha. + Sets the alpha transparency of the windows when they are moving. Same range as alpha. This only works if transparency is not disabled in the preferences of the skins2 module. Default value: 255 @@ -142,22 +142,22 @@ difficulty to understand how VLC skins work. ThemeInfo You can enter here some information about you (but this information is currently unused by VLC...) - + name Skin name. Not supported yet. Implied. - + author Author of the skin. Not supported yet. Implied. - + email Email of the author. Not supported yet. Implied. - + webpage Web page in relation with the skin. Not supported yet. Default value: http://www.videolan.org/vlc/ @@ -177,18 +177,18 @@ difficulty to understand how VLC skins work. Indicates the path and name of the bitmap file used. This path can be absolute (but you should definitely avoid it), or relative to the path of the XML file. Required. - + alphacolor Transparency color of the bitmap. It must be indicated with the following format: "#RRGGBB", where RR stands for the hexadecimal value of the red component, GG for the green one, and BB for the blue one. If your PNG file specifies a transparency mask, it will be taken into account too. Default value: #000000 - + nbframes This attribute is needed to define animated bitmaps; it is the number of frames (images) contained in your animation. All the different frames are just images laid vertically in the bitmap. Animated GIFs are not supported at the moment. (since VLC 0.8.5) Default value: 1 - + fps Only used in animated bitmaps; it is the number of frames (images) per seconds of the animation. (since VLC 0.8.5) Default value: 0 @@ -226,12 +226,12 @@ difficulty to understand how VLC skins work. nbframes - Same as in Bitmap tag. + Same as in Bitmap tag. Default value: 1 fps - Same as in Bitmap tag. + Same as in Bitmap tag. @@ -249,7 +249,7 @@ difficulty to understand how VLC skins work. This is the file containing a TrueType font. Required. - + size This is the size of the font, in points. Default value: 12 @@ -269,7 +269,7 @@ difficulty to understand how VLC skins work. This is the file containing a bitmap font, à la Winamp. Required. - + type Type of font, one of "digits" or "text". Default value: digits @@ -299,14 +299,14 @@ difficulty to understand how VLC skins work. Initial top position of the window. Default value: 0 - + dragdrop Indicates whether drag and drop of media files is allowed on this window. Default value: true - + playondrop - Indicates whether a dropped file is played directly (true) or only enqueued (false). This attribute has no effect if dragdrop is set to "false". + Indicates whether a dropped file is played directly (true) or only enqueued (false). This attribute has no effect if dragdrop is set to "false". Default value: true @@ -363,7 +363,7 @@ difficulty to understand how VLC skins work. Anchor - Create a "magnetic point" (or curve) in the current window. If an anchor of another window enters in the range of action of this anchor, the 2 anchors will automatically be on the same place, and the windows are "sticked". Each anchor has a priority (priority attribute), and the anchor with the highest priority is the winner, which means that when moving its window all the other anchored windows will move too. To break the effect of 2 anchored windows, you need to move the window whose anchor has the lower priority. + Create a "magnetic point" (or curve) in the current window. If an anchor of another window enters in the range of action of this anchor, the 2 anchors will automatically be on the same place, and the windows are "sticked". Each anchor has a priority (priority attribute), and the anchor with the highest priority is the winner, which means that when moving its window all the other anchored windows will move too. To break the effect of 2 anchored windows, you need to move the window whose anchor has the lower priority. x Is it really necessary to explain ? @@ -374,7 +374,7 @@ difficulty to understand how VLC skins work. ... Default value: 0 - + priority Priority of anchor (see the previous description). Required. @@ -385,7 +385,7 @@ difficulty to understand how VLC skins work. You don't need to change this parameter if all you want is a ponctual anchor. Default value: (0,0) - + range Range of action of the anchor, in pixels. Default is "10". Default value: 10 @@ -442,7 +442,7 @@ difficulty to understand how VLC skins work. Identifiant of a Bitmap. Required. - + resize Since VLC 0.8.2. Specify the behaviour of the image when it is resized. Possible values are 'mosaic' (the image is repeated as many times as necessary to reach the wanted dimensions) and 'scale' (the image is actually rescaled). Beware that the 'scale' behaviour is much slower than the 'mosaic' one, so make sure to use it only when it's really needed. Default value: mosaic. @@ -452,6 +452,11 @@ difficulty to understand how VLC skins work. Action triggered by a click on the control. Possible values are 'move', to move the window, 'resizeE', to resize horizontally, 'resizeS' to resize vertically, and 'resizeSE' to resize both horizontally and vertically. Mnemonics: S, E and SE stand for South, East, and South-East. The 'resizeS' and 'resizeE' actions are available since VLC 0.8.5 only. Default value: none + + action2 + Action triggered by a double-click on the control. See Actions for a list of possible actions. (Since VLC 0.8.5). + Default value: none + @@ -601,7 +606,7 @@ difficulty to understand how VLC skins work. Points defining the Bezier curve followed by the slider cursor. Default value: none - + thickness Thickness of the slider curve. This attribute is used to determine whether the mouse is over the slider (hence whether a mouse click will have an effect on the cursor position). Default value: 10 @@ -889,6 +894,9 @@ difficulty to understand how VLC skins work. $D: Duration of the stream, when available (the output format is H:MM:SS). + + $t, $l, $d: Same as $T, $L and $D, except that the hour in the format is displayed only if its value is different from 0. These text variables were needed to support Winamp2 skins, but it is advised to use the uppercase ones. (Since VLC 0.8.5). + $H: Value of the help attribute of the control that is under the mouse. The main use of this escape character is to create a kind of status bar, providing contextual help. Escape sequences in the help string are also transformed (except $H itself, it would generate an infinite loop!). @@ -990,10 +998,10 @@ difficulty to understand how VLC skins work. Since VLC 0.8.5, it is also possible to archive your skin in a zip file. -It is advised to rename your .tar.gz (or .zip) archive with the .vlt extention, for 2 main reasons: +It is advised to rename your .tar.gz (or .zip) archive with the .vlt extension, for 2 main reasons: - on some systems, the "Change skin" dialog box only displays files which have a .vlt or .xml extention, + on some systems, the "Change skin" dialog box only displays files which have a .vlt or .xml extension, in the future, .vlt files could be associated to VLC in such a way that double-clicking a .vlt file would automatically load the skin in VLC. -- 2.39.2