Visualisation Control

From Official Kodi Wiki
Revision as of 23:21, 24 January 2007 by >DonJ
Jump to navigation Jump to search

The visualisation control is used for displaying those funky patterns that jump to the music in XBMC. You can choose the position, and size of the visualisation displayed. Note that the control is only rendered if music is being played.

Example

<xml> <control>

     <description>My first visualisation control</description>
     <type>visualisation</type>
     <id>1</id>
     <posx>80</posx>
     <posy>60</posy>
     <width>250</width>
     <height>200</height>
     <visible>true</visible>

</control> </xml>

Available Tags

Note that each tag is lower case only. This is important, as xml tags are case-sensitive.

description Only used to make things clear for the skinner. Not read by XBMC at all.
type Should be visualisation for a visualisation control.
id Specifies the control's id. The value is not important for the visualisation control, but should be unique from other controls.
posx Specifies where the left edge of the visualisation should be drawn. This is offset from the window's coordinates (normally the left edge of the screen, or 0).
posy Specifies where the top edge of the visualisation should be drawn. This is offset from the window's coordinates (normally the top edge of the screen, or 0).
width Specifies the width that should be used to draw the visualisation.
height Specifies the height that should be used to draw the visualisation.
visible

Specifies a condition as to when this control will be visible. Can be true, false, or a condition. See here for more information. Defaults to true.

animation

Specifies the animation to be run when the control enters a particular state. See here for more information.